/* ===== AUTH PAGES ===== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a0a2e 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
}

/* Фоновые блики */
.auth-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.g1 {
    width: 400px; height: 400px;
    background: rgba(107, 138, 255, 0.12);
    top: -100px; left: -100px;
}
.g2 {
    width: 350px; height: 350px;
    background: rgba(139, 122, 255, 0.12);
    bottom: -80px; right: -80px;
}
.g3 {
    width: 250px; height: 250px;
    background: rgba(171, 106, 255, 0.08);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Обёртка */
.auth-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    padding: 16px 0;
}

/* Лого */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--txt);
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: var(--tr);
}
.auth-logo:hover { transform: translateY(-2px); }
.auth-logo em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.2);
}

/* Карточка */
.auth-card {
    width: 100%;
    background: rgba(26, 26, 80, 0.7);
    border: 1.5px solid rgba(90, 124, 255, 0.2);
    border-radius: 24px;
    padding: 32px 36px;
    backdrop-filter: blur(30px);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(107, 138, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    animation: cardIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* Иконка */
.auth-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(107,138,255,0.2), rgba(139,122,255,0.2));
    border: 1.5px solid rgba(107, 138, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin: 0 auto 16px;
    box-shadow: 0 6px 24px rgba(107, 138, 255, 0.2);
}

/* Заголовок */
.auth-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.6px;
}
.auth-sub {
    text-align: center;
    color: var(--txt2);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

/* Форма */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Поле */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--txt);
    margin: 0;
}

/* Обёртка инпута */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    pointer-events: none;
    transition: var(--tr);
    z-index: 1;
}
.input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(90, 124, 255, 0.18);
    border-radius: 12px;
    color: var(--txt);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--tr);
    outline: none;
}
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap input:focus {
    border-color: var(--accent);
    background: rgba(107, 138, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(107, 138, 255, 0.1);
}
.input-wrap:focus-within .input-icon { color: var(--accent); }

/* Кнопка показа пароля */
.toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: var(--tr);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
}
.toggle-pass:hover {
    color: var(--accent);
    background: rgba(107, 138, 255, 0.1);
}

/* Силомер */
.strength-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.strength-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}
.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.4s ease;
}
.strength-txt {
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
    transition: var(--tr);
}

/* Кнопка */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, #6b8aff, #8b7aff, #ab6aff);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(107, 138, 255, 0.35);
}
.auth-btn:hover {
    background: linear-gradient(135deg, #7b9aff, #9b8aff, #bb7aff);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(107, 138, 255, 0.5);
}
.auth-btn:active { transform: translateY(0); }

/* Разделитель */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(107, 138, 255, 0.12);
}
.auth-divider span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

/* Ссылка */
.auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: var(--txt2);
    margin: 0;
}
.auth-switch a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: var(--tr);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.auth-switch a:hover {
    text-decoration: underline;
}
.auth-switch a i { font-size: 0.75rem; }

/* Копирайт */
.auth-copy {
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

/* Мобилки */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
    .auth-title { font-size: 1.4rem; }
    .auth-form { gap: 12px; }
}