:root {
  color-scheme: dark;
  --bg: #0d0f0e;
  --panel: #171a18;
  --line: #303632;
  --text: #f5f7f5;
  --muted: #a8b0aa;
  --accent: #8fdf77;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--accent); }
.site-header { height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; image-rendering: pixelated; }
.challenge-mark { display: block; width: 72px; height: 72px; margin: 0 0 18px; border-radius: 12px; image-rendering: pixelated; }
.identity { color: var(--muted); margin-left: auto; font-size: .875rem; }
.shell { width: min(100% - 32px, 480px); margin: 9vh auto; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: var(--panel); box-shadow: 0 22px 70px #0008; }
h1 { margin: 4px 0 14px; font-size: 1.8rem; letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
label { display: block; margin: 16px 0 7px; font-size: .85rem; font-weight: 650; }
input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #0f1210; color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.button { display: block; width: 100%; margin-top: 18px; border: 1px solid var(--accent); border-radius: 8px; padding: 11px 14px; background: var(--accent); color: #0c130b; text-align: center; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button.secondary, .button.provider { background: transparent; color: var(--text); border-color: var(--line); }
.providers .button { margin-top: 9px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-button { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; color: var(--muted); font-size: .75rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.footnote { text-align: center; font-size: .85rem; }
.site-footer { padding: 0 24px 28px; color: var(--muted); font-size: .8rem; text-align: center; }
.legal h2 { margin: 26px 0 8px; font-size: 1.05rem; }
.legal ul { color: var(--muted); line-height: 1.55; padding-left: 20px; }
.legal li + li { margin-top: 7px; }
.hint { margin: 6px 0 0; font-size: .75rem; }
.flash, .errors { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; border: 1px solid #537251; background: #162117; }
.flash.alert, .errors { border-color: #814949; background: #281616; }
.test-banner { display: grid; gap: 3px; margin: 18px 0; padding: 12px 14px; border: 1px solid #a77b2e; border-radius: 8px; background: #2b2110; color: #f4d795; }
.test-banner span { font-size: .875rem; }
.errors ul { margin-bottom: 0; }
dl { margin: 22px 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
code { font-size: 1.05em; color: var(--text); }
@media (max-width: 520px) { .shell { margin-top: 32px; } .card { padding: 22px; } .identity { display: none; } }
