.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #07131f;
}

.app-ui.auth-page > .shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

.auth-experience {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-frame {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 46px minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #07131f;
    color: #f5f9ff;
    box-shadow: 0 28px 80px rgba(0, 8, 18, .48);
}

.auth-frame-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;
    border-bottom: 1px solid #26384b;
    background: #07111b;
}

.auth-frame-principles {
    color: #8da2b7;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .28em;
}

.auth-frame-body {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.08fr);
    min-height: 0;
}

.auth-identity {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    padding: clamp(34px, 5vw, 70px);
    border-right: 1px solid #26384b;
    background:
        radial-gradient(circle at 52% 57%, rgba(29, 126, 255, .22), transparent 9%),
        radial-gradient(circle at 54% 58%, rgba(21, 100, 187, .12), transparent 40%),
        #061522;
}

.auth-wordmark {
    position: relative;
    z-index: 2;
    color: #fff;
    font: 800 clamp(2.2rem, 4.4vw, 4rem)/1 "Space Grotesk", sans-serif;
    letter-spacing: -.065em;
}

.auth-wordmark span { color: #238cff; }

.auth-network {
    position: absolute;
    inset: 125px -20px 0;
    width: calc(100% + 40px);
    height: calc(100% - 125px);
    opacity: .9;
}

.auth-network path { fill: none; stroke: #1279de; stroke-width: 1.15; opacity: .66; }
.auth-network circle { fill: #18a3ff; stroke: #9bd7ff; stroke-width: 1.4; }
.auth-network .auth-network-core { fill: #148dff; stroke-width: 3; filter: drop-shadow(0 0 9px #138cff); }
.auth-network text { fill: #bcd8ed; font: 700 10px "Manrope", sans-serif; letter-spacing: 2px; }

.auth-investigation-map { opacity: .94; }
.auth-investigation-map .auth-map-grid { opacity: .18; }
.auth-investigation-map .auth-map-grid-line { stroke: #1b4c75; stroke-width: .65; }
.auth-investigation-map .auth-map-roads path { stroke: #164e7d; stroke-width: 2.1; opacity: .55; }
.auth-investigation-map .auth-map-river { stroke: #0c3456; stroke-width: 25; opacity: .58; }
.auth-investigation-map .auth-map-route { stroke: #43baff; stroke-width: 2.3; stroke-dasharray: 7 8; opacity: .95; }
.auth-investigation-map .auth-map-route-dots circle { fill: #71ceff; stroke: none; }
.auth-investigation-map .auth-map-marker { filter: url(#auth-pin-glow); }
.auth-investigation-map .auth-map-marker path { fill: #1e9eff; stroke: #a4ddff; stroke-width: 1.6; opacity: 1; }
.auth-investigation-map .auth-map-marker > circle:not(.auth-map-pulse) { fill: #071b2a; stroke: #bce8ff; stroke-width: 1.3; }
.auth-investigation-map .auth-map-pulse { fill: rgba(32, 158, 255, .12); stroke: #2b9ae6; stroke-width: 1; opacity: .8; }
.auth-investigation-map .auth-map-evidence rect { fill: #071a2b; stroke: #248bd0; stroke-width: 1.2; }
.auth-investigation-map .auth-map-evidence path { fill: none; stroke: #4cb9f7; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }

.auth-form-side {
    display: grid;
    align-content: center;
    padding: clamp(34px, 7vw, 96px);
    background: linear-gradient(145deg, #0c1825, #07131f 70%);
}

.auth-form-side h1 {
    margin: 0 0 34px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
}

.auth-form-side .auth-intro {
    max-width: 560px;
    margin: -18px 0 34px;
    color: #c0cedc;
    line-height: 1.65;
}

.auth-form-side .field { margin-bottom: 20px; }
.auth-form-side label { color: #e9f2fb; font-size: .82rem; }
.auth-form-side input {
    min-height: 52px;
    border-color: #587087;
    border-radius: 6px;
    background: #07121d;
    color: #fff;
}
.auth-form-side input:focus { border-color: #218eff; box-shadow: 0 0 0 3px rgba(33, 142, 255, .16); }
.auth-form-side .primary { width: 100%; min-height: 54px; margin-top: 8px; background: #1787f5; border-color: #2696ff; }

.auth-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.auth-field-header label { margin: 0; }
.auth-field-header a, .auth-recovery-toggle { color: #27a1ff; font-size: .78rem; font-weight: 700; }

.auth-code-input {
    font: 700 1.5rem "Space Grotesk", sans-serif;
    letter-spacing: .72em;
    text-align: center;
    padding-left: calc(.72em + 14px) !important;
}

.auth-recovery-toggle {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: underline;
}

.auth-recovery-divider {
    margin-top: 38px;
    border-top: 1px solid #42556a;
}

.auth-recovery-panel {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #42556a;
}
.auth-recovery-panel[hidden] { display: none; }
.auth-recovery-panel h2 { margin: 0 0 8px; font-size: 1.05rem; }
.auth-recovery-panel p { margin: 0 0 16px; color: #93a7ba; font-size: .78rem; line-height: 1.55; }
.auth-alert { margin: 0 0 20px; padding: 12px 14px; border: 1px solid rgba(251, 191, 36, .35); border-radius: 6px; background: rgba(251, 191, 36, .08); color: #f8d478; font-size: .78rem; }

@media (max-width: 850px) {
    .auth-page { overflow: auto; }
    .auth-frame { min-height: 100vh; min-height: 100dvh; }
    .auth-frame-body { grid-template-columns: 1fr; }
    .auth-identity { min-height: 170px; padding: 32px; border-right: 0; border-bottom: 1px solid #26384b; }
    .auth-network { inset: 35px 0 -120px 40%; width: 65%; height: 300px; }
    .auth-form-side { padding: 38px clamp(22px, 7vw, 64px); }
}

@media (max-width: 520px) {
    .auth-frame-topbar { justify-content: center; padding: 0 12px; }
    .auth-frame-principles { font-size: .52rem; letter-spacing: .18em; }
    .auth-identity { min-height: 128px; }
    .auth-network { display: none; }
    .auth-wordmark { font-size: 2.35rem; }
}
