/* The sign-in pages. Same colours and type as the landing page (index.html). */
:root {
  --navy: #0b1f4d;
  --text: #4b5567;
  --muted: #6b7280;
  --link: #1d4ed8;
  --accent: #1f9d8a;
  --accent-soft: #e2f4f0;
  --accent-ink: #16786a;
  --gold: #f5b301;
  --gold-soft: #fff7e0;
  --warn-ink: #9a3412;
  --page: #f6f9fd;
  --card: #ffffff;
  --card-border: #e3eaf3;
  --field-border: #cdd7e4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--link); }

/* ---------- Header ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  box-shadow: 0 1px 0 var(--card-border);
}
.brand { display: flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; }
.brand svg { width: 34px; height: 36px; flex: none; }
.brand-text { line-height: 1; display: flex; flex-direction: column; }
.brand-name { font-size: 22px; letter-spacing: 0.2px; }
.brand-name strong { font-weight: 800; }
.brand-tag { margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: 1.1px; }
.back-link { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; }
.back-link:hover { color: var(--link); }

/* ---------- Card ---------- */
.shell { flex: 1; display: flex; justify-content: center; padding: 48px 16px 32px; }
.panel {
  width: 100%;
  max-width: 480px;
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 10px 30px rgba(11, 31, 77, 0.06);
}
.panel.wide { max-width: 640px; }
.panel h1 {
  margin: 0 0 10px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--navy);
}
.panel p { line-height: 1.55; margin: 0 0 14px; }
.lede { color: var(--muted); }

/* ---------- Form ---------- */
.field { margin: 0 0 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.field .hint.is-nudge { color: var(--accent-ink); }
.field .error, .form-error { font-size: 13px; color: var(--warn-ink); margin-top: 5px; }
.form-error { background: #fdf0ea; padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row.city-state { grid-template-columns: 1.3fr 1fr; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
}
.btn:hover { background: #17336f; }
.btn.is-gold { background: var(--gold); color: var(--navy); }
.btn.is-gold:hover { background: #f9c623; }
.btn.is-quiet { background: var(--accent-soft); color: var(--accent-ink); }
.btn.is-quiet:hover { background: var(--accent); color: #fff; }
.btn.is-small { width: auto; padding: 7px 14px; font-size: 12.5px; }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--card-border); }

.notice { padding: 12px 14px; border-radius: 10px; margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.notice.is-info { background: #eaf3fc; color: var(--navy); }
.notice.is-ok { background: var(--accent-soft); color: var(--accent-ink); }
.notice.is-warn { background: var(--gold-soft); color: var(--warn-ink); }

.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 16px; }
.switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--card-border); font-size: 14px; text-align: center; }
.turnstile { margin: 4px 0 14px; }

.foot { text-align: center; padding: 0 16px 28px; font-size: 12.5px; }
.foot a { color: var(--muted); }

.prose h2 { font-size: 16px; color: var(--navy); margin: 22px 0 6px; }
.prose ul { padding-left: 20px; line-height: 1.55; }

@media (max-width: 520px) {
  .topbar { padding: 0 12px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 7.5px; }
  .shell { padding: 20px 12px; }
  .panel { padding: 24px 18px 22px; border-radius: 14px; }
  .panel h1 { font-size: 26px; }
  .row, .row.city-state { grid-template-columns: 1fr; }
}
