:root {
    color-scheme: light;
    --ink: #102e2a;
    --ink-soft: #4e625e;
    --green: #0d2f2a;
    --green-hover: #17433d;
    --mint: #c8e5dc;
    --mint-deep: #83b9aa;
    --cream: #f3f0e7;
    --paper: #fffcf7;
    --line: rgba(16, 46, 42, .14);
    --line-strong: rgba(16, 46, 42, .24);
    --danger: #a34339;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --shadow: 0 26px 80px rgba(26, 48, 43, .12);
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
input { -webkit-tap-highlight-color: transparent; }

.login-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    position: relative;
    overflow: hidden;
}

.brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(34px, 5vw, 76px);
    overflow: hidden;
    background: var(--green);
    color: #f7f4ed;
}

.brand-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(58vw, 780px);
    aspect-ratio: 1;
    right: clamp(-390px, -23vw, -230px);
    top: clamp(-240px, -12vw, -100px);
    border: 1px solid rgba(211, 236, 228, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 92px rgba(211, 236, 228, .035), 0 0 0 184px rgba(211, 236, 228, .022);
}

.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    left: 9%;
    bottom: -195px;
    transform: rotate(45deg);
    border: 1px solid rgba(211, 236, 228, .1);
}

.brand-content {
    width: min(100%, 730px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 64px;
}

.login-logo {
    position: relative;
    width: 190px;
    height: 162px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    background: #f7f4ed;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .13);
}

.login-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: cover;
    transform: scale(1.03);
    transform-origin: center;
}

.brand-message { max-width: 650px; }

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 25px;
    color: var(--mint);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}

h1 {
    max-width: 640px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3rem, 5vw, 5.75rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.047em;
    text-wrap: balance;
}

.brand-copy {
    max-width: 590px;
    margin: 26px 0 0;
    color: rgba(247, 244, 237, .68);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: clamp(44px, 7vh, 76px);
}

.signal {
    min-height: 124px;
    padding: 20px;
    border: 1px solid rgba(223, 240, 235, .13);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(8px);
}

.signal-index {
    display: block;
    margin-bottom: 28px;
    color: var(--mint-deep);
    font-family: var(--display);
    font-size: 1.1rem;
}

.signal-label {
    color: rgba(247, 244, 237, .82);
    font-size: .84rem;
    font-weight: 650;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.form-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(28px, 5vw, 72px);
    background:
        linear-gradient(rgba(16, 46, 42, .036) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 46, 42, .036) 1px, transparent 1px),
        var(--cream);
    background-size: 44px 44px;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(246, 243, 237, .25), rgba(246, 243, 237, .88) 54%, var(--cream));
    pointer-events: none;
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
}

.mobile-brand { display: none; }

.login-kicker {
    margin: 0 0 10px;
    color: #5d746e;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .115em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.login-intro {
    max-width: 420px;
    margin: 16px 0 36px;
    color: var(--ink-soft);
    font-size: .98rem;
}

.login-card {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, .86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 720;
}

.input-shell { position: relative; }

.field input {
    width: 100%;
    min-height: 56px;
    padding: 0 52px 0 48px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    outline: none;
    background: var(--paper);
    color: var(--ink);
    caret-color: var(--green);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder { color: #8a9995; }

.field input:focus {
    border-color: var(--green);
    background: #fffefa;
    box-shadow: 0 0 0 4px rgba(13, 47, 42, .085);
}

.field input[aria-invalid="true"] { border-color: rgba(163, 67, 57, .62); }

.field-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #71837f;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #657974;
    cursor: pointer;
}

.password-toggle:hover { background: rgba(13, 47, 42, .055); color: var(--green); }

.password-toggle:focus-visible,
.submit-button:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(61, 129, 113, .35);
    outline-offset: 3px;
}

.password-toggle svg { width: 19px; height: 19px; }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 26px;
    font-size: .88rem;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--green);
}

.demo-label {
    color: var(--green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.submit-button {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: var(--green);
    color: #fffdf7;
    font-weight: 760;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.submit-button:hover {
    background: var(--green-hover);
    box-shadow: 0 12px 24px rgba(13, 47, 42, .16);
    transform: translateY(-1px);
}

.submit-button:active { transform: translateY(0); }
.submit-button svg { width: 18px; height: 18px; }

.form-message {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--danger);
    background: rgba(163, 67, 57, .09);
    color: #73322b;
    font-size: .86rem;
}

.access-note {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    margin-top: 22px;
    padding: 18px 2px 0;
    border-top: 1px solid var(--line);
}

.access-note svg {
    width: 23px;
    height: 23px;
    margin-top: 1px;
    color: #426f64;
}

.access-note strong {
    display: block;
    margin-bottom: 3px;
    font-size: .86rem;
}

.access-note p {
    margin: 0;
    color: #657671;
    font-size: .82rem;
    line-height: 1.52;
}

.support-line {
    margin: 24px 0 0;
    color: #71817d;
    font-size: .84rem;
    text-align: center;
}

@media (max-width: 1020px) {
    .login-shell { grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); }
    .brand-panel { padding: 40px; }
    h1 { font-size: clamp(2.8rem, 5vw, 4.25rem); }
    .signal-row { grid-template-columns: 1fr; gap: 8px; }
    .signal { min-height: auto; display: flex; align-items: center; gap: 16px; padding: 15px 17px; }
    .signal-index { margin: 0; }
}

@media (max-width: 760px) {
    .login-shell { display: block; }
    .brand-panel { display: none; }
    .form-panel {
        min-height: 100vh;
        min-height: 100svh;
        align-items: start;
        padding: 24px 20px 38px;
    }
    .login-wrap { width: 100%; max-width: 520px; }
    .mobile-brand { display: block; margin-bottom: clamp(38px, 8vh, 62px); }
    .mobile-brand .login-logo {
        width: 132px;
        height: 112px;
        margin-inline: auto;
        border-color: var(--line);
        box-shadow: 0 14px 34px rgba(26, 48, 43, .09);
    }
    .login-card { padding: 24px 20px; }
}

@media (max-width: 430px) {
    h2 { font-size: 2.35rem; }
    .login-intro { margin-bottom: 28px; }
    .form-options { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
}
