@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url('/login.inter.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-display: swap; src: url('/login.instrument.woff2') format('woff2'); }
:root {
  color-scheme: light dark;
  --bg: oklch(0.975 0.005 230); --surface: oklch(1 0 0); --surface-3: oklch(0.92 0.009 230);
  --ink: oklch(0.22 0.03 235); --ink-2: oklch(0.44 0.025 235); --line: oklch(0.22 0.03 235 / 0.18);
  --brand: oklch(0.34 0.075 233); --on-brand: oklch(0.985 0.03 140); --reject: oklch(0.53 0.18 27);
  font-family: Inter, system-ui, sans-serif; font-synthesis: none; color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: oklch(0.16 0.014 235); --surface: oklch(0.205 0.016 235); --surface-3: oklch(0.29 0.02 235); --ink: oklch(0.95 0.006 230); --ink-2: oklch(0.78 0.012 230); --line: oklch(0.38 0.02 235); --brand: oklch(0.93 0.055 140); --on-brand: oklch(0.27 0.06 233); --reject: oklch(0.72 0.16 25); }
}
* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; }
.login-card { display: flex; flex-direction: column; gap: 16px; width: min(380px, 100%); }
p, h1, fieldset { margin: 0; }
h1 { font-family: 'Instrument Sans', Inter, system-ui, sans-serif; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin-top: -8px; }
.login-brand { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.dim, .field { color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; border: 0; padding: 0; min-width: 0; }
legend { margin-bottom: 6px; padding: 0; }
.seg { display: flex; padding: 2px; border-radius: 10px; background: var(--surface-3); }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 32px; border-radius: 8px; font-weight: 500; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 3px oklch(0.22 0.03 235 / 0.1); }
input[type=password] { width: 100%; height: 44px; padding: 8px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
input[aria-invalid=true] { border-color: var(--reject); }
button { font: inherit; cursor: pointer; }
.primary { min-height: 48px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 500; }
.primary:disabled { opacity: 0.65; cursor: wait; }
.primary:active { transform: scale(0.98); }
.field-error { min-height: 36px; font-size: 13px; line-height: 1.5; color: var(--reject); }
.login-foot { font-size: 12px; text-align: center; text-wrap: balance; }
:focus-visible, .seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (pointer: coarse) { .seg span { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .primary:active { transform: none; } }
