:root { --brand: #2a3990; --brand-hover: #22307a; --ink: #1f2329; --muted: #5d6472; --line: #dfe3ea; --canvas: #f4f6fa; --bad: #b42318; --bad-light: #fdecea; --ok: #18794e; --ok-light: #e6f4ec; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; background: var(--canvas); color: var(--ink); font: 16px/1.5 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; }
.card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px 22px; box-shadow: 0 4px 24px rgba(30, 40, 90, .06); }
.logo { height: 44px; width: auto; display: block; margin-bottom: 14px; }
h1 { font: 800 24px/1.2 Montserrat, sans-serif; color: var(--brand); margin: 0; }
.sub { color: var(--muted); margin: 6px 0 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 5px; }
input { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c9cfda; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus { outline: 3px solid #c9d2f5; border-color: var(--brand); }
.code { letter-spacing: .18em; text-transform: uppercase; font-weight: 700; font-size: 18px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
button { width: 100%; margin-top: 18px; font: 700 16px "Source Sans 3", sans-serif; padding: 12px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; }
button:hover, button:focus-visible { background: var(--brand-hover); }
button[disabled] { opacity: .6; cursor: default; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; }
.links a { color: var(--brand); }
#msg .bad, #msg .ok { border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 6px; }
#msg .bad { background: var(--bad-light); color: var(--bad); }
#msg .ok { background: var(--ok-light); color: var(--ok); }
footer { color: var(--muted); font-size: 13px; text-align: center; max-width: 420px; }
.show { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.show input { width: auto; }
