/* ========================================
   AUTH SHELL — viewport-locked two-column layout
   ======================================== */

html.wf-auth-html,
.wf-auth-html body.wf-auth-body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: block;
}

.wf-auth-desktop {
    --auth-pad-x: clamp(28px, 3.5vw, 44px);
    --auth-pad-y: clamp(20px, 2.5vh, 32px);
    --auth-gap-xl: 24px;
    --auth-gap-lg: 18px;
    --auth-gap-md: 14px;
    --auth-gap-sm: 10px;
    --auth-radius-lg: 12px;
    --auth-radius-md: 8px;
    --auth-border: var(--overlay-brand-08);
    --auth-border-light: var(--overlay-white-10);
    --auth-surface: var(--white);
    --auth-brand-muted: var(--overlay-white-78);
    --auth-brand-subtle: var(--overlay-white-55);
}

.wf-auth-desktop .wf-auth-body {
    font-family: var(--font-family-primary);
    font-size: 15px;
    line-height: 1.5;
    color: var(--navy);
    background: var(--navy-dark);
    -webkit-font-smoothing: antialiased;
}

/* ── Main canvas — locked to 100dvh, no body scroll ── */
.wf-auth-desktop .wf-auth {
    display: flex;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/* Ambient layer — absolutely positioned, clipped to brand column width */
.wf-auth-desktop .wf-auth__ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wf-auth-desktop .wf-auth__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
}

.wf-auth-desktop .wf-auth__glow--gold {
    width: min(480px, 42vw);
    height: min(480px, 42vw);
    top: -12%;
    left: 8%;
    background: radial-gradient(circle, var(--overlay-accent-40) 0%, transparent 68%);
}

.wf-auth-desktop .wf-auth__glow--blue {
    width: min(360px, 34vw);
    height: min(360px, 34vw);
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--overlay-info-15) 0%, transparent 70%);
}

.wf-auth-desktop .wf-auth__grain {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ── Brand column — 42% width, no scroll ── */
.wf-auth-desktop .wf-auth-brand {
    position: relative;
    z-index: 1;
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--white);
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, var(--overlay-accent-14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, var(--overlay-info-12) 0%, transparent 50%),
        linear-gradient(155deg, var(--navy) 0%, var(--blue-900) 42%, var(--navy-dark) 100%);
    box-shadow:
        inset -1px 0 0 var(--overlay-white-06),
        4px 0 32px var(--overlay-black-18);
}

.wf-auth-desktop .wf-auth-brand__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    padding: 36px 32px;
    gap: var(--auth-gap-xl);
    overflow: hidden;
    box-sizing: border-box;
}

/* Logo */
.wf-auth-desktop .wf-auth-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    flex-shrink: 0;
}

.wf-auth-desktop .wf-auth-brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-family-secondary);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px var(--overlay-black-25);
    flex-shrink: 0;
}

.wf-topbar__logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    transform: scale(2);
}

.wf-auth-desktop .wf-auth-brand__logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wf-auth-desktop .wf-auth-brand__name {
    font-family: var(--font-family-secondary);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.wf-auth-desktop .wf-auth-brand__tagline {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--auth-brand-subtle);
}

/* Hero block — expands to fill available vertical space */
.wf-auth-desktop .wf-auth-brand__hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--auth-gap-sm);
    min-height: 0;
}

.wf-auth-desktop .wf-auth-brand__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--auth-brand-subtle);
}

.wf-auth-desktop .wf-auth-brand__title {
    margin: 0;
    font-family: var(--font-family-secondary);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.wf-auth-desktop .wf-auth-brand__lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--auth-brand-muted);
}

/* Feature rows — horizontal icon + text, lean and compact */
.wf-auth-desktop .wf-auth-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.wf-auth-desktop .wf-auth-feature {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--overlay-white-08);
    border: 1px solid var(--overlay-white-08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wf-auth-desktop .wf-auth-feature:hover {
    background: var(--overlay-white-10);
    border-color: var(--overlay-accent-28);
}

.wf-auth-desktop .wf-auth-feature__icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--overlay-accent-16);
    color: var(--gold-light);
    align-self: center;
}

.wf-auth-desktop .wf-auth-feature__icon svg {
    width: 16px;
    height: 16px;
}

.wf-auth-desktop .wf-auth-feature__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-auth-desktop .wf-auth-feature__desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.4;
    color: var(--auth-brand-subtle);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .wf-auth-desktop .wf-auth-brand {
        display: none;
    }

    .wf-auth-desktop .wf-auth-stage {
        flex: 1 !important;
        width: 100% !important;
    }
}

@media (max-height: 760px) {
    .wf-auth-desktop {
        --auth-pad-y: 16px;
        --auth-gap-xl: 16px;
        --auth-gap-lg: 12px;
    }

    .wf-auth-desktop .wf-auth-brand__title {
        font-size: 24px;
    }

    .wf-auth-desktop .wf-auth-feature {
        padding: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wf-auth-desktop .wf-auth-feature {
        transition: none;
    }
}
