/* ===== auth.css – стили для страницы входа и модалок ===== */

/* Контейнер формы */
.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    margin-bottom: 24px;
    color: #333333;
    text-align: center;
    font-size: 24px;
}

/* Группа пароля (с иконкой глаза) */
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 62%; /* выравнивание относительно инпута + label */
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    z-index: 2;
    transition: transform 0.1s ease;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.9);
}

/* Опции (запомнить / забыли пароль) */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: #555555;
}

.options a {
    color: #764ba2;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* Ссылка на регистрацию */
.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}

.signup-link a {
    color: #764ba2;
    font-weight: bold;
}

/* ===== Модальные окна ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaaaaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #333333;
}

/* Текст внутри модалки восстановления */
.modal-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== Адаптивность для мобильных ===== */
@media (max-width: 480px) {
    .login-container {
        padding: 25px;
    }
    .options {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .toggle-password {
        top: 58%;
    }
    .modal-content {
        max-width: 95%;
    }
}
