.auth-layout {
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    display: grid;
    overflow: hidden;
    background: linear-gradient(145deg, #d8e8f1, #b4cbdc 60%, #e2eef5);
}
[data-theme="dark"] .auth-layout {
    background: linear-gradient(145deg, #233c57, #14253c 65%, #213653);
}
.auth-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}
.auth-theme {
    position: absolute;
    top: 1.2rem;
    right: 1.35rem;
    z-index: 2;
    border-radius: 50%;
    color: var(--accent);
    background: var(--surface);
}
.auth-showcase { display: none; min-width: 0; }
.auth-stage {
    position: relative;
    width: min(100%, 980px, calc((100dvh - 5rem) * 1.3));
    aspect-ratio: 1200 / 920;
    --animate-duration: 1.1s;
}
.auth-wordmark, .auth-tagline {
    position: absolute;
    z-index: 2;
    left: 50%;
    translate: -50%;
    text-align: center;
}
.auth-wordmark {
    bottom: calc(80% + 1.25rem);
    padding: .5rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2eff799;
    background: linear-gradient(135deg, #d6e8efa8, #8daebc70);
    box-shadow: inset 0 1px #fff5, 0 6px 18px #22435824;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
[data-theme="dark"] .auth-wordmark {
    border-color: #92b9db50;
    background: linear-gradient(135deg, #283f59b0, #152439a0);
}
.auth-tagline { top: 20%; color: var(--ink); font-size: .875rem; font-style: italic; width: 100%; }
.auth-animation, .auth-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-animation {
    opacity: .85;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
    mask-composite: intersect;
}
[data-theme="dark"] .auth-animation { opacity: .7; }
.auth-fallback { object-fit: contain; padding: 16%; }
.auth-symbol {
    position: absolute;
    left: 50.1725%;
    top: 33.875%;
    translate: -50% -50%;
    width: 8%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #204878;
    pointer-events: none;
}
.auth-symbol img { width: 80%; height: 80%; object-fit: contain; }
.auth-animation[hidden] + .auth-symbol { display: none; }
.auth-content {
    display: grid;
    place-items: center;
    padding: 4.5rem 1.25rem 2rem;
    background: linear-gradient(145deg, #fff9, #edf6f781);
    backdrop-filter: blur(4px) saturate(110%);
}
[data-theme="dark"] .auth-content {
    background: linear-gradient(110deg, #354e6ca0, #0f1e31df 32%, #0f1e31ee);
}
.auth-card { width: min(100%, 360px); }
.auth-logo { display: block; width: min(250px, 85%); height: auto; margin: 0 auto 1.5rem; }
.auth-card h1 { font-size: 1.5rem; text-align: center; letter-spacing: -.03em; }
.auth-card > p { text-align: center; margin-top: .55rem; font-size: .9375rem; }
.auth-card form { display: grid; gap: .65rem; margin-top: 1.7rem; }
.auth-password { display: flex; align-items: center; position: relative; }
.auth-password > .icon { position: absolute; left: .85rem; color: var(--muted); pointer-events: none; }
.auth-password input { min-height: 46px; padding-inline: 2.55rem 3.65rem; border-color: #83a5ab; background: #f2f7f7; }
[data-theme="dark"] .auth-password input { border-color: var(--border); background: #141f34; }
.auth-reveal {
    position: absolute;
    right: .15rem;
    top: .15rem;
    bottom: .15rem;
    min-width: 43px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}
.auth-reveal:hover { color: var(--accent); }
.auth-card .primary { margin-top: .4rem; }
.auth-save { text-align: center; font-size: .875rem; }
@media (min-width: 1024px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr) clamp(380px, 31vw, 465px); }
    .auth-showcase { display: grid; place-items: center; padding: 1rem; }
    .auth-content { border-left: 1px solid #e2eff777; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-video { display: none; }
}
