/* modal-override.css - Переопределение стилей модальных окон для всех страниц */

/* Основной контейнер модального окна */
.modal {
    position: fixed !important;
    z-index: 1000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    overflow: auto !important;
    backdrop-filter: blur(5px) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.modal.show {
    opacity: 1 !important;
    display: flex !important;
}

/* Содержимое модального окна */
.modal-content {
    background: linear-gradient(135deg, #1a2035 0%, #121828 100%) !important;
    padding: 30px !important;
    width: 90% !important;
    max-width: 450px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 199, 44, 0.1) !important;
    color: #fff !important;
    position: relative !important;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 199, 44, 0.1) !important;
    transform: scale(0.95) !important;
    transition: transform 0.3s ease !important;
}

.modal.show .modal-content {
    transform: scale(1) !important;
}

/* Анимация появления модального окна */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Заголовок модального окна */
.modal-header {
    border-bottom: 2px solid rgba(255, 199, 44, 0.1) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
    position: relative !important;
}

.modal-header h2 {
    margin: 0 !important;
    color: #ffc72c !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(255, 199, 44, 0.2) !important;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    font-size: 28px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.close-btn:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: rotate(90deg) !important;
}

/* Стили для формы */
.form-group {
    margin-bottom: 20px !important;
    position: relative !important;
}

.modal .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.modal .form-group input[type="text"],
.modal .form-group input[type="email"],
.modal .form-group input[type="password"],
.modal .form-group input[type="date"] {
    width: 100% !important;
    padding: 12px 15px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.modal .form-group input[type="text"]:focus,
.modal .form-group input[type="email"]:focus,
.modal .form-group input[type="password"]:focus,
.modal .form-group input[type="date"]:focus {
    border-color: rgba(255, 199, 44, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.1) !important;
    outline: none !important;
}

/* Стили для чекбоксов */
.remember-me-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.remember-checkbox {
    display: flex !important;
    align-items: center !important;
}

.remember-checkbox input[type="checkbox"] {
    margin-right: 8px !important;
    accent-color: #ffc72c !important;
}

.forgot-link a {
    color: #ffc72c !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s !important;
}

.forgot-link a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.terms-checkbox {
    display: flex !important;
    align-items: flex-start !important;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 8px !important;
    margin-top: 3px !important;
    accent-color: #ffc72c !important;
}

.terms-checkbox label {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.terms-checkbox a {
    color: #ffc72c !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.terms-checkbox a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Кнопка отправки формы */
.btn-submit {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #ffc72c 0%, #f59e0b 100%) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 199, 44, 0.4) !important;
}

.btn-submit:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(255, 199, 44, 0.2) !important;
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #8c7430 0%, #6e5a20 100%) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Футер модального окна */
.modal-footer {
    margin-top: 25px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-footer a {
    color: #ffc72c !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    font-weight: 500 !important;
}

.modal-footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Сообщения об ошибках */
.error-message {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    margin-bottom: 15px !important;
    font-size: 14px !important;
    display: none !important;
    border-left: 3px solid #ef4444 !important;
}

.error-message.show {
    display: block !important;
    animation: fadeIn 0.3s ease !important;
}
