/* ============================================================
   СТИЛИ ТОЛЬКО ДЛЯ СТРАНИЦ ВХОДА/РЕГИСТРАЦИИ
   ============================================================ */

/* Импорт шрифтов */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/* Переменные */
:root {
    --white-color: #fff;
    --font-body: "Poppins", sans-serif;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ОБЁРТКА ДЛЯ ВСЕЙ СТРАНИЦЫ ВХОДА */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--font-body);
    background: #0a0a1a;
    position: relative;
}

/* ФОН (размытая картинка) */
.login-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url("../img/login-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
}

/* ЗАТЕМНЕНИЕ */
.login-page::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
}

/* КАРТОЧКА */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    color: var(--white-color);
}

.login-card h1 {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.login-card .subtitle {
    font-size: 0.813rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

/* ПОЛЯ ВВОДА */
.field-group {
    position: relative;
    margin-bottom: 28px;
}

.field-group label {
    position: absolute;
    left: 0;
    bottom: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    transition: all 0.3s;
    cursor: text;
    pointer-events: none;
}

.field-group input {
    width: 100%;
    padding: 8px 0 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--white-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.field-group input:focus {
    border-bottom-color: #6c5ce7;
}

/* Эффект "плавающего" лейбла */
.field-group input:focus ~ label,
.field-group input:not(:placeholder-shown) ~ label {
    transform: translateY(-24px);
    font-size: 0.813rem;
    color: #6c5ce7;
}

.field-group input::placeholder {
    color: transparent;
}

/* ЧЕКБОКС И ССЫЛКИ */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 0.813rem;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.options label input[type="checkbox"] {
    accent-color: #6c5ce7;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.options a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    text-decoration: none;
}

.options a:hover {
    color: #a29bfe;
}

/* КНОПКА */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ССЫЛКА НА РЕГИСТРАЦИЮ */
.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.5);
}

.register-link a {
    color: #a29bfe;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #6c5ce7;
}

/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        margin: 16px 0;
    }
    .login-card h1 {
        font-size: 1.5rem;
    }
    .options {
        flex-wrap: wrap;
        gap: 12px;
    }
}