/* Sign-in pages: the form on paper at left, a navy panel at right where the Gauge sweeps into the green. Phones get the form alone. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/assets/fonts/outfit.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2'); }

:root {
    --fs-navy: #0F2540;
    --fs-navy-deep: #07111F;
    --fs-mint: #6CC47A;
    --fs-green: #4CA65A;
    --fs-forest: #2F7D3F;
    --fs-on-navy: #EEF3F0;
    --fs-on-navy-muted: #A9B8CB;
    --fs-line: rgba(255, 255, 255, 0.14);
    --fs-glass: rgba(15, 37, 64, 0.72);
}

.fr-split-body {
    display: block;
    min-height: 100vh;
    padding: 0;
}

.fr-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.fr-split > .fr-auth-wrap,
.fr-split > .pp-auth-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 24px;
}

.fr-split > .fr-auth-wrap {
    max-width: none;
    width: auto;
    align-items: center;
}

.fr-split > .fr-auth-wrap > .fr-card,
.fr-split > .fr-auth-wrap > .fr-split__legal {
    width: 100%;
    max-width: 400px;
}

.fr-split__legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    font-size: 13px;
}

.fr-split__legal a {
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
}

.fr-split__legal a:hover {
    opacity: 1;
}

.fr-split__visual {
    display: none;
}

@media (min-width: 960px) {
    .fr-split {
        grid-template-columns: minmax(440px, 1fr) minmax(0, 1.15fr);
    }

    .fr-split__visual {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 56px;
        margin: 12px 12px 12px 0;
        overflow: hidden;
        border-radius: 24px;
        color: var(--fs-on-navy);
        background:
            radial-gradient(60% 50% at 50% 40%, rgba(108, 196, 122, 0.22), transparent 70%),
            radial-gradient(40% 35% at 85% 90%, rgba(76, 166, 90, 0.16), transparent 70%),
            linear-gradient(180deg, var(--fs-navy), var(--fs-navy-deep));
    }

    .fr-split__visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
        background-size: 24px 24px;
        -webkit-mask-image: radial-gradient(65% 60% at 50% 42%, #000000, transparent 80%);
        mask-image: radial-gradient(65% 60% at 50% 42%, #000000, transparent 80%);
    }

    /* Two faint gauge arcs behind the card: the brand mark as landscape. */
    .fr-split__visual::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 42%;
        width: 760px;
        height: 760px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 1px solid var(--fs-line);
        box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.015), 0 0 0 91px var(--fs-line);
        -webkit-mask-image: linear-gradient(180deg, #000000 50%, transparent 50%);
        mask-image: linear-gradient(180deg, #000000 50%, transparent 50%);
    }
}

.fr-split__stage {
    position: relative;
    z-index: 1;
    width: 360px;
}

.fr-split__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 18px;
    border: 1px solid var(--fs-line);
    border-radius: 20px;
    background: var(--fs-glass);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.fr-split__meta {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--fs-on-navy-muted);
}

.fr-split__meta b {
    margin-left: 6px;
    font-weight: 500;
    color: var(--fs-on-navy);
}

.fr-split__meta--end {
    align-self: flex-end;
}

.fr-split__reading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fr-split__gauge {
    flex: none;
    width: 112px;
    height: 112px;
    overflow: visible;
}

.fr-split__track,
.fr-split__fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.fr-split__track {
    stroke: rgba(255, 255, 255, 0.22);
}

.fr-split__fill {
    stroke: var(--fs-mint);
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.fr-split__needle line {
    stroke: var(--fs-on-navy);
    stroke-width: 7;
    stroke-linecap: round;
}

.fr-split__needle circle {
    fill: var(--fs-on-navy);
}

.fr-split__needle {
    transform-box: view-box;
    transform-origin: 50px 68px;
}

.fr-split__nums {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Outfit', system-ui, sans-serif;
}

.fr-split__nums small {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fs-on-navy-muted);
}

.fr-split__nums span {
    font-size: 16px;
    font-weight: 500;
    color: var(--fs-on-navy-muted);
}

.fr-split__nums b {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--fs-on-navy);
    font-variant-numeric: tabular-nums;
}

.fr-split__nums b.fr-split__hi {
    color: var(--fs-mint);
}

.fr-split__lo::after { content: '$42K'; }
.fr-split__hi::after { content: '$165K'; }

.fr-split__rail {
    position: relative;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
}

.fr-split__rail i {
    position: absolute;
    left: 14%;
    width: 46%;
    top: 0;
    bottom: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--fs-forest), var(--fs-mint));
}

.fr-split__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--fs-line);
    border-radius: 999px;
    background: var(--fs-navy);
    font-size: 12.5px;
    color: var(--fs-on-navy-muted);
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.fr-split__chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fs-mint);
    box-shadow: 0 0 0 3px rgba(108, 196, 122, 0.22);
}

.fr-split__chip b {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    color: var(--fs-on-navy);
}

.fr-split__chip--a { top: -22px; right: -48px; }
.fr-split__chip--b { top: 72%; left: -124px; }
.fr-split__chip--c { bottom: -20px; right: -30px; }

.fr-split__tag {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 24px;
    text-align: center;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--fs-on-navy);
}

.fr-split__tag span {
    color: var(--fs-mint);
}

@property --fs-lo { syntax: '<integer>'; inherits: false; initial-value: 42; }
@property --fs-hi { syntax: '<integer>'; inherits: false; initial-value: 165; }

@media (prefers-reduced-motion: no-preference) {
    .fr-split__needle { animation: fs-needle 9s cubic-bezier(.3, 0, .1, 1) infinite; }
    .fr-split__fill { animation: fs-fill 9s cubic-bezier(.6, 0, .2, 1) infinite; }
    .fr-split__rail i { animation: fs-rail 9s cubic-bezier(.2, .8, .2, 1) infinite; }
    .fr-split__lo { animation: fs-lo 9s ease-out infinite; counter-reset: lo var(--fs-lo); }
    .fr-split__hi { animation: fs-hi 9s ease-out infinite; counter-reset: hi var(--fs-hi); }
    .fr-split__lo::after { content: '$' counter(lo) 'K'; }
    .fr-split__hi::after { content: '$' counter(hi) 'K'; }
    .fr-split__chip--a { animation: fs-float 6s ease-in-out infinite; }
    .fr-split__chip--b { animation: fs-float 7s ease-in-out -2s infinite; }
    .fr-split__chip--c { animation: fs-float 6.5s ease-in-out -4s infinite; }
}

/* Rest on the reading, then replay it: the first frame always shows the full range. */
@keyframes fs-needle { 0%, 66% { transform: rotate(0) } 70% { transform: rotate(-135deg) } 84% { transform: rotate(9deg) } 90%, 100% { transform: rotate(0) } }
@keyframes fs-fill { 0%, 66% { stroke-dashoffset: 0 } 70% { stroke-dashoffset: 100 } 86%, 100% { stroke-dashoffset: 0 } }
@keyframes fs-rail { 0%, 66% { left: 14%; width: 46% } 70% { left: 48%; width: 4% } 88%, 100% { left: 14%; width: 46% } }
@keyframes fs-lo { 0%, 66% { --fs-lo: 42 } 70% { --fs-lo: 0 } 86%, 100% { --fs-lo: 42 } }
@keyframes fs-hi { 0%, 66% { --fs-hi: 165 } 70% { --fs-hi: 0 } 88%, 100% { --fs-hi: 165 } }
@keyframes fs-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
