:root {
  --blue: #145f83;
  --blue-dark: #0c3e5a;
  --blue-pale: #edf7fb;
  --ink: #173342;
  --muted: #607784;
  --line: #cadbe3;
  --green: #16744e;
  --green-bg: #eaf7f0;
  --amber: #8b5c12;
  --amber-bg: #fff7e5;
  --red: #a92f38;
  --red-bg: #fff0f1;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f6fafb; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: #f6fafb; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.public-shell, .login-shell { min-height: 100vh; padding: clamp(14px, 4vw, 38px); display: grid; place-items: center; }
.public-card, .login-card { width: min(100%, 580px); padding: clamp(24px, 6vw, 42px); background: white; border: 1px solid #dce7eb; border-radius: 18px; box-shadow: 0 14px 45px rgba(18, 70, 94, .09); }
.public-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 18px; }
.heading-mark { width: 52px; height: 52px; display: grid; place-items: center; color: var(--blue); background: var(--blue-pale); border-radius: 50%; font-size: 1.45rem; font-weight: 800; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--blue-dark); font-size: clamp(1.55rem, 4vw, 2.05rem); line-height: 1.15; letter-spacing: -.025em; }
.intro { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
form { grid-column: 1 / -1; margin-top: 28px; display: grid; gap: 9px; }
label { margin-top: 7px; font-size: .82rem; font-weight: 750; }
input { width: 100%; height: 49px; padding: 0 13px; color: var(--ink); background: white; border: 1px solid #b9ccd5; border-radius: 9px; outline: 0; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,95,131,.11); }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.captcha-row img { width: 190px; height: 62px; border: 1px solid var(--line); border-radius: 8px; }
.refresh-button { min-height: 40px; padding: 0 12px; color: var(--blue); background: white; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 700; }
.primary-button { min-height: 50px; margin-top: 13px; padding: 0 20px; color: white; background: var(--blue-dark); border: 0; border-radius: 9px; cursor: pointer; font-weight: 750; }
.primary-button:hover { background: var(--blue); }
button:focus-visible { outline: 3px solid rgba(20,95,131,.25); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: wait; }
.message { grid-column: 1 / -1; margin-top: 22px; padding: 15px 16px; color: var(--amber); background: var(--amber-bg); border-left: 4px solid #d99b2b; border-radius: 7px; line-height: 1.5; font-weight: 650; }
.message.is-paid { color: var(--green); background: var(--green-bg); border-color: var(--green); }
.message.is-partial { color: var(--amber); background: var(--amber-bg); border-color: #d99b2b; }
.message.is-unpaid { color: var(--red); background: var(--red-bg); border-color: var(--red); }
.message.is-error { color: var(--red); background: var(--red-bg); border-color: var(--red); }
.privacy-note { grid-column: 1 / -1; margin: 18px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.staff-link, .back-link { display: inline-block; margin-top: 18px; color: var(--blue); font-size: .8rem; }
.staff-link { grid-column: 1 / -1; justify-self: end; }
.login-card { width: min(100%, 430px); }
.login-form { margin-top: 24px; }
.back-link { text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .public-shell, .login-shell { padding: 8px; align-items: start; }
  .public-card, .login-card { padding: 23px 19px; border-radius: 12px; box-shadow: none; }
  .public-card { grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; }
  .heading-mark { width: 42px; height: 42px; }
  .captcha-row { align-items: flex-start; flex-direction: column; }
}
