﻿:root {
    --navy-900: #0F1822;
    --navy-800: #6089BC;
    --navy-700: #243447;
    --navy-600: #2E4259;
    --orange: #F3A505;
    --orange-bright: #FFB933;
    --blue: #005FAA;
    --blue-light: #2B8AD9;
    --cream: #F7F3EB;
    --paper: #FAF8F4;
    --ink: #131A24;
    --muted: #6B7785;
    --line: #E4DED2;
    --rule: rgba(255, 255, 255, 0.08);
    --SplitSize: 0.6fr 1fr;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
}

label {
    margin-bottom: 0;
}

.shell {
    display: grid;
    grid-template-columns: var(--SplitSize);
    min-height: 100vh;
}

/* ------------ LEFT PANEL (brand / context) ------------ */
.stage {
    position: relative;
    background: var(--navy-800);
    color: #E8EEF6;
    padding: 10px 56px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .stage::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 18% 88%, rgba(243, 165, 5, 0.18), transparent 45%), radial-gradient(circle at 95% 10%, rgba(43, 138, 217, 0.16), transparent 50%);
        pointer-events: none;
    }

    .stage::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
        pointer-events: none;
    }

    .stage > * {
        position: relative;
        z-index: 1;
    }

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.compass {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .wordmark .top {
        font-family: 'Fraunces', serif;
        font-weight: 700;
        font-size: 22px;
        letter-spacing: -0.02em;
        color: var(--orange);
    }

    .wordmark .sub {
        font-size: 10px;
        letter-spacing: 0.32em;
        text-transform: uppercase;
        color: var(--blue-light);
        margin-top: 6px;
        font-weight: 500;
    }

.stage-body {
    padding-block: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

    .eyebrow .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #4ADE80;
        box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
        animation: pulse 2.4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

.headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 2vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 14ch;
    color: #fff;
}

    .headline em {
        font-style: normal;
        color: var(--orange-bright);
        font-weight: 600;
    }

.lede {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 42ch;
}

/* metrics ticker */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 36px;
    border-top: 1px solid var(--rule);
    padding-top: 28px;
    max-width: 460px;
}

.metric .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

    .metric .num span {
        color: var(--orange);
    }

.metric .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.stage-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

    .stage-foot a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
        padding-bottom: 1px;
    }

        .stage-foot a:hover {
            color: var(--orange-bright);
        }

/* ------------ RIGHT PANEL (form) ------------ */
.form-panel {
    background: var(--paper);
    padding: 10px 56px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/*
    .form-panel::before {
        content: "";
        position: absolute;
        top: 44px;
        right: 56px;
        width: 60px;
        height: 1px;
        background: var(--ink);
    }
*/

.top-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

    .top-meta .pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
    }

        .top-meta .pill svg {
            width: 12px;
            height: 12px;
        }

.form-wrap {
    max-width: 100%;
    width: 100%;
    align-self: center;
}

.greeting {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

h1.title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 10px;
}

    h1.title em {
        font-style: normal;
        font-weight: 600;
        color: var(--blue);
    }

.subtitle {
    color: var(--muted);
    font-size: 15px;
}

.field {
    margin-bottom: 18px;
}

    .field label {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink);
        margin-bottom: 8px;
    }

        .field label .hint {
            color: var(--muted);
            font-size: 10px;
            letter-spacing: 0.08em;
            text-transform: none;
        }

.input-shell {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

    .input-shell:focus-within {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(0, 95, 170, 0.14);
    }

    .input-shell input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 14px 44px 14px 16px;
        font-size: 15px;
        font-family: inherit;
        color: var(--ink);
        letter-spacing: -0.005em;
    }

        .input-shell input::placeholder {
            color: #B8B0A0;
        }

    .input-shell .icon {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: var(--muted);
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        outline: none;
    }

        .input-shell .icon:hover {
            color: var(--ink);
        }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 28px 0;
}

/* custom checkbox */
.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--ink);
}

    .check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .check .box {
        width: 18px;
        height: 18px;
        border: 1.5px solid var(--line);
        border-radius: 4px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 160ms ease;
    }

        .check .box svg {
            width: 12px;
            height: 12px;
            stroke: #fff;
            stroke-width: 3;
            fill: none;
            opacity: 0;
            transition: opacity 140ms ease;
        }

    .check input:checked + .box {
        background: var(--ink);
        border-color: var(--ink);
    }

        .check input:checked + .box svg {
            opacity: 1;
        }

    .check input:focus-visible + .box {
        box-shadow: 0 0 0 3px rgba(0, 95, 170, 0.18);
    }

.forgot {
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    transition: border-color 160ms ease;
    font-weight: 600;
}


.submit {
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: background 200ms ease, transform 120ms ease;
}

    .submit::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--orange);
        transition: width 220ms ease;
    }

    .submit:hover {
        background: #000;
    }

        .submit:hover::after {
            width: 100%;
            opacity: 0.12;
        }

    .submit:active {
        transform: translateY(1px);
    }

    .submit span {
        position: relative;
        z-index: 1;
    }

    .submit .arrow {
        position: relative;
        z-index: 1;
        width: 16px;
        height: 16px;
        transition: transform 200ms ease;
    }

    .submit:hover .arrow {
        transform: translateX(3px);
    }

.divider {
    display: none !important;
    margin: 10px 0 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.support {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .support a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
        text-decoration: none;
        color: var(--ink);
        font-size: 13px;
        transition: border-color 160ms ease, transform 160ms ease;
    }

        .support a:hover {
            border-color: var(--ink);
            transform: translateY(-1px);
        }

        .support a svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            color: var(--blue);
        }

        .support a .lbl-top {
            font-family: 'JetBrains Mono', monospace;
            font-size: 9px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--muted);
            display: block;
            margin-bottom: 2px;
        }

        .support a .lbl-main {
            font-weight: 500;
        }

#LoginContainer {
    margin-bottom: 15px;
}

footer {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
    background-color: rgba(0,0,0,0.7);
    display: grid;
    grid-template-columns: var(--SplitSize);
    z-index: 10;
}

    footer div:first-child {
        color: rgba(255, 255, 255, 0.4);
        padding: 15px;
        background-color: #6D8BA9;
    }

    footer div:last-child {
        display: flex;
        gap: 15px;
        color: var(--muted);
        background-color: var(--paper);
        padding: 15px;
        justify-content: end;
    }

.form-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    position: fixed;
    bottom: 15px;
}

    .form-foot a {
        color: var(--ink);
        text-decoration: none;
    }

        .form-foot a:hover {
            color: var(--blue);
        }

    .form-foot .links {
        display: flex;
        gap: 18px;
    }

    .form-foot.stage-foot {
        color: rgba(255, 255, 255, 0.4);
        left: 0;
        padding: 0 15px;
    }

/* fade-in on load */
/*
.stage > *, .form-wrap > * {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 700ms cubic-bezier(.2,.7,.2,1) forwards;
}

    .stage > *:nth-child(1) {
        animation-delay: 80ms;
    }

    .stage > *:nth-child(2) {
        animation-delay: 160ms;
    }

    .stage > *:nth-child(3) {
        animation-delay: 240ms;
    }

    .form-wrap > *:nth-child(1) {
        animation-delay: 200ms;
    }

    .form-wrap > *:nth-child(2) {
        animation-delay: 260ms;
    }

    .form-wrap > *:nth-child(3) {
        animation-delay: 320ms;
    }

    .form-wrap > *:nth-child(4) {
        animation-delay: 380ms;
    }

    .form-wrap > *:nth-child(5) {
        animation-delay: 440ms;
    }

    .form-wrap > *:nth-child(6) {
        animation-delay: 500ms;
    }

    .form-wrap > *:nth-child(7) {
        animation-delay: 560ms;
    }

    .form-wrap > *:nth-child(8) {
        animation-delay: 620ms;
    }

    .form-wrap > *:nth-child(9) {
        animation-delay: 680ms;
    }
@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    */

/* responsive */
@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .stage {
        padding: 32px 28px;
        min-height: 280px;
    }

    .form-panel {
        padding: 32px 28px;
    }

        .form-panel::before {
            display: none;
        }

    .stage-body {
        padding-block: 32px;
    }

    .headline {
        font-size: 32px;
    }

    .metrics {
        gap: 22px;
    }
}

@media (max-width: 520px) {
    .stage, .form-panel {
        padding: 28px 22px;
    }

    .support {
        grid-template-columns: 1fr;
    }

    .form-foot {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    h1.title {
        font-size: 34px;
    }
}

.who {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rule);
    border-radius: 8px;
    max-width: 460px;
}

    .who .avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--orange);
        color: var(--navy-900);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Fraunces', serif;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: -0.01em;
        flex-shrink: 0;
    }

    .who .info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .who .switch {
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
        text-decoration: none;
        border: 1px solid var(--rule);
        padding: 6px 10px;
        border-radius: 4px;
        transition: all 160ms ease;
        flex-shrink: 0;
    }

.steps {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--rule);
    padding-top: 28px;
    max-width: 460px;
}

.step.done {
    color: rgba(255, 255, 255, 0.55);
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

    .step.active {
        color: #fff;
    }

        .step.active .num {
            background: var(--orange);
            border-color: var(--orange);
            color: var(--navy-900);
            font-weight: 600;
        }

    .step.done .num {
        background: rgba(74, 222, 128, 0.15);
        border-color: rgba(74, 222, 128, 0.5);
        color: #4ADE80;
    }

    .step .num {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid var(--rule);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        flex-shrink: 0;
    }

    .step .check {
        width: 12px;
        height: 12px;
        stroke: #4ADE80;
        stroke-width: 3;
        fill: none;
    }

.top-meta .kbd kbd {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 2px;
    font-family: inherit;
    font-size: 10px;
    color: var(--ink);
    font-weight: 500;
}

.search {
    position: relative;
    margin-bottom: 22px;
}

    .search svg {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--muted);
        pointer-events: none;
    }

    .search input {
        width: 100%;
        padding: 14px 14px 14px 44px;
        font-size: 14px;
        font-family: inherit;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        outline: none;
        transition: all 160ms ease;
    }

.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.chip {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: all 160ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.group {
    margin-bottom: 15px;
    margin-top: 0;
}

.group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

    .group-label .star {
        width: 12px;
        height: 12px;
        color: var(--orange);
        fill: var(--orange);
    }

.db-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-item.selected {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.db-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: all 160ms ease;
}

    .db-item input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.db-district-name {
    margin-left: auto;
}

.db-update-available {
    max-width: 98px;
    background-color: var(--SoniaBlue);
    color: white;
    border-radius: 6px;
    padding: 3px 10px;
    line-height: normal;
    font-size: 12px;
    cursor: pointer;
}

.modal-window {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: flex;
    width: fit-content;
}

.modal-window h2 {
    font-size: 1rem;
}

.modal-window .close {
    cursor: pointer;
}
