/* Modal Authentication Styles */

/* Основные стили для модальных окон авторизации */
.modal-auth {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-auth .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.modal-auth .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.modal-auth .modal-body {
    padding: 1.5rem;
}

/* Стили для форм */
.modal-auth .form-group {
    margin-bottom: 1rem;
}

.modal-auth .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-auth .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-auth .form-control.is-invalid {
    border-color: #dc3545;
}

.modal-auth .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Стили для кнопок показать/скрыть пароль */
.modal-auth .input-group-append .btn {
    border-left: 0;
    border-color: #ced4da;
    background-color: #f8f9fa;
    color: #6c757d;
}

.modal-auth .input-group-append .btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* Стили для кнопок */
.modal-auth .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.modal-auth .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.modal-auth .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

/* Стили для ссылок */
.modal-auth a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.modal-auth a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Стили для алертов */
.modal-auth .alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.modal-auth .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.modal-auth .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Стили для валидации */
.modal-auth .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Стили для чекбоксов */
.modal-auth .form-check {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.modal-auth .form-check-input {
    margin-left: -1.25rem;
    margin-top: 0.3rem;
}

.modal-auth .form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Анимация загрузки */
.modal-auth .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 576px) {
    .modal-auth .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-auth .modal-body {
        padding: 1rem;
    }
    
    .modal-auth .modal-header {
        padding: 0.75rem 1rem;
    }
}

/* Стили для переключения между модальными окнами */
.modal-auth .text-center {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.modal-auth .text-center p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Улучшенные стили для полей ввода */
.modal-auth .form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Стили для подсказок */
.modal-auth .form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Стили для разделителей в дропдауне навигации */
.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

/* Стили для элементов дропдауна */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.375rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #16181b;
    background-color: #f8f9fa;
    text-decoration: none;
}

.dropdown-item i {
    width: 1rem;
    text-align: center;
}