/* ══════════════════════════════════════
   AUTH — auth.css v3
   ══════════════════════════════════════ */

/* ── Overlay ── */
.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2.2vh, 24px);
    background: linear-gradient(135deg, #EEF4F1 0%, #F4F8F5 50%, #EAF7E3 100%);
    animation: fadeUp .3s ease;
    overflow-y: auto;
}
.auth-screen.hidden { display: none; }

/* ── Окно по центру ── */
.auth-split {
    display: grid;
    grid-template-columns: 56% 44%;
    width: 100%;
    max-width: 1080px;
    height: min(610px, calc(100vh - 32px));
    min-height: 540px;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,.14), 0 4px 20px rgba(0,0,0,.06);
    overflow: hidden;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   ЛЕВАЯ ПАНЕЛЬ
   ══════════════════════════════════════ */

.auth-left {
    --auth-person-top: clamp(142px, 23vh, 170px);
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(30,60,20,.18) 100%),
        linear-gradient(160deg, #EEF4F1 0%, #D9F0CA 50%, #B8E49A 100%);
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4.2vh, 36px) clamp(20px, 3vw, 32px) 0;
    display: flex;
    flex-direction: column;
}

/* Декоративные свечения */
.auth-left::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(168,231,106,.4) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: 60px; left: -50px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(97,143,59,.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Логотип — над девушкой ── */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}
.auth-logo-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    object-fit: contain;
}
.auth-logo-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #111111;
}

/* ── Заголовок — над девушкой ── */
.auth-hero {
    margin-top: 20px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}
.auth-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 2.35vw, 24px);
    font-weight: 800;
    color: #111111;
    line-height: 1.25;
    margin-bottom: 10px;
}
.auth-hero-title span { color: #3d8c0f; }
.auth-hero-sub {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
}

/* ── Персонаж — основа левого блока ──
   Начинается НИЖЕ текста, выше плашки статистики.
   z-index: 2 — над fc-1 (за которым лицо), ниже fc-2/3/4.
── */
.auth-person {
    position: absolute;
    top: var(--auth-person-top);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: calc(100% - var(--auth-person-top));
    max-height: 480px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    /* Маска убрана — плашка статистики перекрывает низ девушки */
}

/* ── Парящие карточки ── */
.auth-fc {
    position: absolute;
    background:
        linear-gradient(135deg, rgba(255,255,255,.8), rgba(255,255,255,.58));
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 16px;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 16px 36px rgba(25,55,18,.08);
    max-width: 198px;
}
.auth-fc-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(168,231,106,.18);
    color: #3d8c0f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-fc-icon-dark {
    background: rgba(17,17,17,.12);
    color: #111111;
}
.auth-fc-title {
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
}
.auth-fc-desc {
    font-size: 11px;
    color: #6B7280;
    margin-top: 2px;
    line-height: 1.4;
}

/* ── Позиции карточек ──

   fc-1 (AI Менеджер): правый верх, z-index: 1 — ЗА девушкой (лицо поверх)
   fc-2 (AI Маркетолог): левый край, z-index: 3 — чуть заходит на девушку справа от карточки
   fc-3 (AI Аудит): левый нижний, z-index: 3
   fc-4 (CRM, акцент): правый нижний, z-index: 3
── */
.auth-fc-1 {
    top: 26%;
    right: 4%;
    z-index: 1; /* ЗА девушкой */
}
.auth-fc-2 {
    top: 36%;
    left: 3%;
    z-index: 3;
}
.auth-fc-3 {
    bottom: 20%;
    left: 3%;
    z-index: 3;
}

.auth-fc-accent {
    bottom: 24%;
    right: 4%;
    z-index: 3;
}

/* Анимация парения */
@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.auth-fc-1 { animation: authFloat 4.0s ease-in-out infinite; }
.auth-fc-2 { animation: authFloat 4.6s ease-in-out .7s infinite; }
.auth-fc-3 { animation: authFloat 3.8s ease-in-out 1.2s infinite; }
.auth-fc-4 { animation: authFloat 4.3s ease-in-out .4s infinite; }

/* ── Статистика — плашка на том же фоне ──
   НЕ белая. Тот же градиентный фон, чуть светлее/стеклянная.
── */
.auth-stats {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,255,255,.62));
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 18px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
    height: 76px;
    box-sizing: border-box;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.78),
        0 20px 46px rgba(25,55,18,.1);
}
.auth-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-stat-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(168,231,106,.18);
    color: #3d8c0f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #111111;
    line-height: 1;
}
.auth-stat-label {
    font-size: 10px;
    color: #4B5563;
    margin-top: 3px;
    line-height: 1.3;
}

/* ══════════════════════════════════════
   ПРАВАЯ ПАНЕЛЬ — форма
   ══════════════════════════════════════ */

.auth-right {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vh, 44px) clamp(28px, 4.5vw, 48px);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 360px;
}

/* ── Заголовок ── */
.auth-card-hd {
    text-align: center;
    margin-bottom: 26px;
}
.auth-card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #111111;
    line-height: 1.25;
    margin-bottom: 6px;
    white-space: nowrap;
}
.auth-card-title span { color: #3d8c0f; }
.auth-card-sub {
    font-size: 13px;
    color: #6B7280;
}

/* ── Вкладки ── */
.auth-tab-row {
    display: flex;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 9px;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #6B7280;
    transition: all .15s;
}
.auth-tab.active {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* ── Панели ── */
.auth-panel        { display: none; }
.auth-panel.active { display: block; }

/* ── Яндекс ID ── */
.auth-yandex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: 4px;
}
.auth-yandex:hover {
    border-color: #FC3F1D;
    background: #FFF8F7;
}

/* ── Разделитель «или» ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9CA3AF;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* ── Форма ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Строка «Пароль — Забыли пароль?» */
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.auth-label-row .form-label { margin-bottom: 0; }

.auth-forgot {
    font-size: 12px;
    color: #3d8c0f;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}
.auth-forgot:hover { color: #A8E76A; }

/* ── Кнопка «Войти» ── */
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #A8E76A;
    color: #111111;
    border: none;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 4px;
}
.auth-submit:hover  { background: #B7F176; transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }

/* ── Поля ввода: заполненные и autofill → прозрачный зелёный ── */
.auth-screen .form-input:not(:placeholder-shown) {
    background: #EAF7E3;
}
.auth-screen .form-input:-webkit-autofill,
.auth-screen .form-input:-webkit-autofill:hover,
.auth-screen .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #EAF7E3 inset;
    box-shadow: 0 0 0px 1000px #EAF7E3 inset;
    -webkit-text-fill-color: #111111;
}

/* ── Нижняя ссылка ── */
.auth-foot {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    margin-top: 18px;
}
.auth-foot a {
    color: #3d8c0f;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s;
}
.auth-foot a:hover { color: #A8E76A; }

/* ══════════════════════════════════════
   DESKTOP RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1280px) {
    .auth-split {
        max-width: 1000px;
        grid-template-columns: 55% 45%;
    }

    .auth-fc {
        max-width: 165px;
        padding: 9px 12px;
    }

    .auth-stats {
        left: 14px;
        right: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 1100px) {
    .auth-split {
        max-width: calc(100vw - 32px);
        grid-template-columns: 52% 48%;
        border-radius: 24px;
    }

    .auth-left {
        --auth-person-top: clamp(132px, 22vh, 156px);
    }

    .auth-hero {
        margin-top: 16px;
    }

    .auth-hero-title {
        font-size: 20px;
    }

    .auth-hero-sub {
        font-size: 12px;
        line-height: 1.5;
    }

    .auth-person {
        max-height: 430px;
    }

    .auth-fc {
        max-width: 150px;
        gap: 8px;
    }

    .auth-fc-title {
        font-size: 10.8px;
    }

    .auth-fc-desc {
        font-size: 9.4px;
    }

    .auth-fc-1 {
        right: 2.5%;
    }

    .auth-fc-2,
    .auth-fc-3 {
        left: 2.5%;
    }

    .auth-fc-accent {
        right: 2.5%;
    }

    .auth-right {
        padding-inline: 30px;
    }
}

@media (max-width: 980px) {
    .auth-split {
        grid-template-columns: 46% 54%;
        max-width: calc(100vw - 24px);
    }

    .auth-left {
        --auth-person-top: 132px;
        padding-inline: 18px;
    }

    .auth-logo-icon {
        width: 30px;
        height: 30px;
    }

    .auth-logo-name {
        font-size: 14px;
    }

    .auth-hero-title {
        font-size: 18px;
    }

    .auth-hero-sub {
        max-width: 300px;
    }

    .auth-person {
        max-height: 390px;
    }

    .auth-fc {
        max-width: 132px;
        border-radius: 14px;
        padding: 8px 10px;
    }

    .auth-fc-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .auth-fc-desc {
        display: none;
    }

    .auth-fc-1 {
        top: 28%;
    }

    .auth-fc-2 {
        top: 39%;
    }

    .auth-fc-3 {
        bottom: 24%;
    }

    .auth-fc-accent {
        bottom: 26%;
    }

    .auth-stats {
        height: 68px;
        padding: 10px 12px;
    }

    .auth-stat {
        gap: 7px;
    }

    .auth-stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .auth-stat-num {
        font-size: 12px;
    }

    .auth-stat-label {
        font-size: 9px;
    }

    .auth-card {
        max-width: 340px;
    }

    .auth-right {
        padding-inline: 24px;
    }
}

@media (max-width: 900px) {
    .auth-screen {
        align-items: flex-start;
        padding: 18px;
    }

    .auth-split {
        grid-template-columns: 1fr;
        width: min(100%, 720px);
        max-width: 720px;
        height: auto;
        min-height: 0;
        border-radius: 26px;
        overflow: hidden;
    }

    .auth-left {
        --auth-person-top: 132px;
        height: clamp(390px, 52vw, 450px);
        min-height: 390px;
        padding: 24px 28px 0;
    }

    .auth-hero {
        margin-top: 14px;
        max-width: 360px;
    }

    .auth-hero-title {
        font-size: clamp(20px, 3vw, 24px);
    }

    .auth-hero-sub {
        font-size: 13px;
        line-height: 1.55;
    }

    .auth-person {
        left: 52%;
        height: calc(100% - var(--auth-person-top));
        max-height: none;
    }

    .auth-fc {
        max-width: 188px;
        border-radius: 16px;
        padding: 10px 12px;
    }

    .auth-fc-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .auth-fc-title {
        font-size: 11.5px;
    }

    .auth-fc-desc {
        display: block;
        font-size: 9.8px;
        line-height: 1.4;
    }

    .auth-fc-1 {
        top: 88px;
        right: 34px;
        z-index: 3;
    }

    .auth-fc-2 {
        top: 176px;
        left: 28px;
    }

    .auth-fc-3 {
        bottom: 102px;
        left: 46px;
    }

    .auth-fc-accent {
        bottom: 92px;
        right: 38px;
    }

    .auth-stats {
        bottom: 16px;
        left: 22px;
        right: 22px;
        height: 70px;
        padding: 10px 16px;
    }

    .auth-stat {
        gap: 9px;
    }

    .auth-stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .auth-stat-num {
        font-size: 13px;
    }

    .auth-stat-label {
        font-size: 9.5px;
    }

    .auth-right {
        padding: 32px 34px 36px;
        overflow: visible;
    }

    .auth-card {
        max-width: 420px;
    }
}

@media (max-width: 700px) {
    .auth-screen {
        padding: 12px;
    }

    .auth-split {
        border-radius: 22px;
    }

    .auth-left {
        --auth-person-top: 126px;
        height: 390px;
        min-height: 390px;
        padding: 20px 18px 0;
    }

    .auth-hero {
        max-width: 300px;
    }

    .auth-hero-title {
        font-size: 19px;
    }

    .auth-hero-sub {
        font-size: 12px;
    }

    .auth-person {
        left: 56%;
    }

    .auth-fc {
        max-width: 150px;
        padding: 8px 10px;
    }

    .auth-fc-desc {
        display: none;
    }

    .auth-fc-1 {
        top: 92px;
        right: 18px;
    }

    .auth-fc-2 {
        top: 178px;
        left: 16px;
    }

    .auth-fc-3 {
        bottom: 98px;
        left: 24px;
    }

    .auth-fc-accent {
        bottom: 104px;
        right: 18px;
    }

    .auth-stats {
        left: 14px;
        right: 14px;
        height: 64px;
        padding: 9px 12px;
    }

    .auth-stat {
        gap: 6px;
    }

    .auth-stat-icon {
        width: 28px;
        height: 28px;
    }

    .auth-stat-num {
        font-size: 11.5px;
    }

    .auth-stat-label {
        font-size: 8.5px;
    }

    .auth-right {
        padding: 28px 20px 32px;
    }

    .auth-card-title {
        white-space: normal;
    }
}

@media (min-width: 701px) and (max-width: 900px) and (orientation: portrait) {
    .auth-split {
        width: min(100%, 760px);
        max-width: 760px;
    }

    .auth-left {
        --auth-person-top: 150px;
        height: 500px;
        min-height: 500px;
        padding: 24px 32px 0;
    }

    .auth-hero {
        max-width: 360px;
        position: relative;
        z-index: 5;
    }

    .auth-person {
        left: 54%;
        height: calc(100% - var(--auth-person-top));
        top: var(--auth-person-top);
    }

    .auth-fc {
        max-width: 166px;
        padding: 9px 11px;
    }

    .auth-fc-icon {
        width: 28px;
        height: 28px;
    }

    .auth-fc-title {
        font-size: 11px;
    }

    .auth-fc-desc {
        font-size: 9.2px;
        line-height: 1.35;
    }

    .auth-fc-1 {
        top: 98px;
        right: 28px;
    }

    .auth-fc-2 {
        top: 226px;
        left: 28px;
    }

    .auth-fc-3 {
        bottom: 120px;
        left: 42px;
    }

    .auth-fc-accent {
        bottom: 118px;
        right: 30px;
    }

    .auth-stats {
        left: 22px;
        right: 22px;
        bottom: 18px;
        height: 76px;
        padding: 12px 20px;
    }

    .auth-right {
        padding: 30px 36px 36px;
    }
}

@media (max-width: 600px) {
    .auth-screen {
        position: fixed;
        display: block;
        padding: 0;
        background: #F3F8F0;
    }

    .auth-split {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-left {
        --auth-person-top: 150px;
        height: 590px;
        min-height: 590px;
        padding: 18px 18px 0;
        border-radius: 0 0 28px 28px;
    }

    .auth-left::before {
        width: 220px;
        height: 220px;
        top: -70px;
        right: -80px;
    }

    .auth-left::after {
        width: 190px;
        height: 190px;
        bottom: 20px;
        left: -80px;
    }

    .auth-logo {
        gap: 8px;
    }

    .auth-logo-icon {
        width: 30px;
        height: 30px;
    }

    .auth-logo-name {
        font-size: 14px;
    }

    .auth-hero {
        margin-top: 16px;
        max-width: 300px;
    }

    .auth-hero-title {
        font-size: 21px;
        line-height: 1.22;
        margin-bottom: 8px;
    }

    .auth-hero-sub {
        font-size: 12px;
        line-height: 1.45;
        max-width: 270px;
    }

    .auth-person {
        top: 168px;
        left: 78%;
        height: 390px;
        max-height: none;
        opacity: .74;
    }

    .auth-fc {
        width: min(218px, calc(100% - 36px));
        max-width: 218px;
        padding: 8px 10px;
        border-radius: 13px;
        gap: 7px;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.75),
            0 10px 24px rgba(25,55,18,.08);
    }

    .auth-fc-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .auth-fc-title {
        font-size: 10px;
        white-space: nowrap;
    }

    .auth-fc-desc {
        display: none;
    }

    .auth-fc-1 {
        top: 302px;
        left: 18px;
        right: auto;
    }

    .auth-fc-2 {
        top: 352px;
        left: 18px;
    }

    .auth-fc-3 {
        display: flex;
        top: 402px;
        left: 18px;
    }

    .auth-fc-accent {
        display: flex;
        top: 452px;
        left: 18px;
        right: auto;
    }

    .auth-stats {
        left: 14px;
        right: 14px;
        bottom: 18px;
        height: 66px;
        padding: 9px 12px;
        border-radius: 18px;
    }

    .auth-stat {
        gap: 6px;
        min-width: 0;
    }

    .auth-stat-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .auth-stat-num {
        font-size: 11px;
    }

    .auth-stat-label {
        font-size: 8px;
        line-height: 1.2;
    }

    .auth-right {
        background: transparent;
        padding: 34px 18px 34px;
        overflow: visible;
    }

    .auth-card {
        max-width: none;
        width: 100%;
    }

    .auth-card-hd {
        margin-bottom: 18px;
    }

    .auth-card-title {
        white-space: normal;
        font-size: 18px;
        line-height: 1.25;
    }

    .auth-tab-row {
        border-radius: 14px;
        padding: 4px;
        margin-bottom: 18px;
    }

    .auth-tab {
        min-height: 44px;
        border-radius: 11px;
        font-size: 14px;
    }

    .auth-yandex {
        min-height: 48px;
        border-radius: 13px;
        font-size: 14px;
    }

    .auth-divider {
        margin: 16px 0;
    }

    .auth-form {
        gap: 13px;
    }

    .auth-label-row {
        align-items: flex-end;
        gap: 10px;
    }

    .auth-forgot {
        font-size: 12px;
        white-space: nowrap;
    }

    .auth-screen .form-input {
        min-height: 48px;
        font-size: 16px;
        border-radius: 13px;
    }

    .auth-submit {
        min-height: 52px;
        border-radius: 14px;
        font-size: 15px;
        margin-top: 6px;
    }

    .auth-foot {
        margin-top: 18px;
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .auth-left {
        --auth-person-top: 142px;
        height: 560px;
        min-height: 560px;
        padding-inline: 16px;
    }

    .auth-hero {
        max-width: 280px;
    }

    .auth-hero-title {
        font-size: 19px;
    }

    .auth-hero-sub {
        font-size: 11.5px;
        max-width: 250px;
    }

    .auth-person {
        top: 166px;
        left: 82%;
        height: 360px;
    }

    .auth-fc-1 {
        top: 292px;
        left: 14px;
        right: auto;
    }

    .auth-fc-2 {
        top: 340px;
        left: 14px;
    }

    .auth-fc-3 {
        top: 388px;
        left: 14px;
    }

    .auth-fc-accent {
        top: 436px;
        left: 14px;
        right: auto;
    }

    .auth-stats {
        left: 10px;
        right: 10px;
        bottom: 14px;
        height: 62px;
        padding: 8px 9px;
    }

    .auth-stat {
        gap: 4px;
    }

    .auth-stat-icon {
        width: 24px;
        height: 24px;
    }

    .auth-stat-num {
        font-size: 10px;
    }

    .auth-stat-label {
        font-size: 7.4px;
    }

    .auth-right {
        padding: 24px 14px 32px;
    }

    .auth-card-title {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .auth-left {
        --auth-person-top: 128px;
        height: 500px;
        min-height: 500px;
    }

    .auth-hero-title {
        font-size: 18px;
    }

    .auth-hero-sub {
        font-size: 11px;
        max-width: 220px;
    }

    .auth-person {
        top: 150px;
        left: 86%;
        height: 320px;
    }

    .auth-fc-1 {
        top: 250px;
    }

    .auth-fc-2 {
        top: 296px;
    }

    .auth-fc-3,
    .auth-fc-accent {
        top: 342px;
    }

    .auth-fc-accent {
        top: 388px;
    }

    .auth-stats {
        display: none;
    }

    .auth-right {
        padding-top: 22px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .auth-split {
        height: calc(100vh - 24px);
        min-height: 0;
    }

    .auth-left {
        --auth-person-top: clamp(118px, 20vh, 142px);
        padding-top: 20px;
    }

    .auth-hero {
        margin-top: 12px;
    }

    .auth-hero-title {
        font-size: 18px;
        margin-bottom: 7px;
    }

    .auth-hero-sub {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .auth-person {
        max-height: 390px;
    }

    .auth-fc {
        padding: 8px 10px;
        max-width: 145px;
    }

    .auth-fc-icon {
        width: 26px;
        height: 26px;
    }

    .auth-fc-title {
        font-size: 10.5px;
    }

    .auth-fc-desc {
        font-size: 9px;
        line-height: 1.35;
    }

    .auth-fc-1 {
        top: 25%;
    }

    .auth-fc-2 {
        top: 37%;
    }

    .auth-fc-3 {
        bottom: 22%;
    }

    .auth-fc-accent {
        bottom: 24%;
    }

    .auth-stats {
        bottom: 12px;
        height: 64px;
        padding: 9px 14px;
    }

    .auth-stat-icon {
        width: 28px;
        height: 28px;
    }

    .auth-stat-num {
        font-size: 12px;
    }

    .auth-stat-label {
        font-size: 9px;
    }

    .auth-right {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .auth-card-hd {
        margin-bottom: 18px;
    }

    .auth-tab-row {
        margin-bottom: 16px;
    }

    .auth-form {
        gap: 10px;
    }

    .auth-divider {
        margin: 14px 0;
    }

    .auth-foot {
        margin-top: 14px;
    }
}

@media (max-height: 640px) and (min-width: 901px) {
    .auth-screen {
        align-items: flex-start;
    }

    .auth-split {
        height: 616px;
        margin-block: 12px;
    }
}

/* Keep the hero silhouette anchored like the full-size composition. */
.auth-person {
    top: auto;
    bottom: 0;
    height: min(72%, 520px);
    max-height: none;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .auth-person {
        left: 52%;
        height: min(70%, 450px);
    }
}

@media (max-width: 900px) {
    .auth-person {
        top: auto;
        bottom: 0;
        left: 54%;
        height: 72%;
    }
}

@media (max-width: 700px) {
    .auth-person {
        left: 56%;
        height: 70%;
    }
}

@media (max-width: 600px) {
    .auth-person {
        top: auto;
        bottom: 0;
        left: 58%;
        height: 430px;
        opacity: .78;
    }
}

@media (max-width: 430px) {
    .auth-person {
        top: auto;
        bottom: 0;
        left: 62%;
        height: 390px;
    }
}

@media (max-width: 380px) {
    .auth-person {
        top: auto;
        bottom: 0;
        left: 64%;
        height: 350px;
    }
}

/* Final size override for floating AI cards. Positions stay unchanged. */
.auth-fc {
    max-width: 194px;
    padding: 11px 14px;
    gap: 10px;
}

.auth-fc-icon {
    width: 33px;
    height: 33px;
}

.auth-fc-title {
    font-size: 12.6px;
}

.auth-fc-desc {
    font-size: 10.7px;
}

@media (max-width: 980px) {
    .auth-fc {
        max-width: 148px;
        padding: 9px 11px;
        gap: 9px;
    }

    .auth-fc-icon {
        width: 28px;
        height: 28px;
    }

    .auth-fc-title {
        font-size: 11.4px;
    }
}

@media (max-width: 600px) {
    .auth-fc {
        width: min(228px, calc(100% - 36px));
        max-width: 228px;
        padding: 9px 11px;
    }

    .auth-fc-icon {
        width: 28px;
        height: 28px;
    }

    .auth-fc-title {
        font-size: 11px;
    }
}
