/* The signed-out pages (log in, sign up, single sign-on, password reset, invitations, the
   code step, errors): `layout::auth_page`, after /css/app.css. They look like the public
   site at `/` (public/css/site.css) without loading it: the same header lockup, type,
   paper and wash, lake-blue primary button, square corners and 46px controls, and the
   town drawing faded along the bottom. Light only, as the site is (`data-theme="light"`
   on <html>, so app.css's light tokens apply to everything inside). Colours come from
   app.css's tokens plus the two site tokens app.css doesn't have (`--wash`, `--lake-d`). */

body.signin {
  --wash: #F2F5F1;
  --lake-d: #255681;
  --si-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --si-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --si-mark: "Jost", "Futura", "Avenir Next", sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.55 var(--si-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.signin :focus-visible { outline: 2px solid var(--lake); outline-offset: 2px; }

/* Header: the site's lockup (dome, ARGUS FOIA, by Tesseract); the mark goes home. */
.si-top { border-bottom: 1px solid var(--line); background: var(--surface); }
.si-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.si-brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.si-brand svg { width: 34px; height: 34px; flex: none; }
.si-lock { display: flex; align-items: baseline; gap: 7px; }
.si-lock em { font-style: normal; font-family: var(--si-mark); font-weight: 500; font-size: 10.5px; letter-spacing: .26em; color: var(--text-3); }
.si-lock span { font-family: var(--si-mark); font-weight: 500; font-size: 19px; letter-spacing: .14em; }
.si-maker { display: inline-flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--text-3); font-size: 13px; text-decoration: none; white-space: nowrap; }
.si-maker:hover { color: var(--text); }
.si-maker svg { width: 11px; height: 11px; }
.si-home { margin-left: auto; color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.si-home:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .si-maker { display: none; } .si-bar { gap: 14px; } .si-home { font-size: 14px; } }

/* The form: one wash panel on paper, as the site's closing card. */
.signin .auth { flex: 1 0 auto; min-height: 0; display: block; padding: 56px 16px 0; }
.signin .auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 40px 40px 36px;
}
@media (max-width: 560px) {
  .signin .auth { padding: 28px 16px 0; }
  .signin .auth-card { padding: 28px 20px 26px; }
}
.signin .auth-card h1 {
  font-family: var(--si-display);
  font-weight: 750;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text);
}
@media (max-width: 560px) { .signin .auth-card h1 { font-size: 26px; } }
.signin .auth-card p { margin: 0 0 14px; }
.signin .auth-card .muted { color: var(--text-2); }
.signin .auth-card .small { font-size: 13.5px; }
.signin .auth-card strong { font-weight: 650; }
.signin .auth-card a { color: var(--link); text-underline-offset: 2px; }

/* Controls: the site's deadline picker (46px, white, square), with a border dark
   enough to find (3:1, WCAG 1.4.11). */
.signin .field { display: grid; gap: 6px; margin: 0 0 18px; }
.signin .field label { font-weight: 600; font-size: 14.5px; color: var(--text); }
.signin .field .hint { color: var(--text-2); font-size: 13.5px; }
.signin .field .error { color: var(--late); font-size: 13.5px; font-weight: 600; }
.signin input[type="text"], .signin input[type="email"], .signin input[type="password"],
.signin select {
  height: 46px;
  min-height: 46px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-control);
  border-radius: 0;
  width: 100%;
  min-width: 0;
}
/* The pilot request's short message. */
.signin textarea {
  min-height: 112px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-control);
  border-radius: 0;
  width: 100%;
  min-width: 0;
  resize: vertical;
}
.signin .field .optional { font-weight: 400; color: var(--text-2); }
/* The honeypot: off-screen for people, there for bots (as the requester's form). */
.signin .si-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signin input[aria-invalid="true"], .signin textarea[aria-invalid="true"] { border-color: var(--late); box-shadow: inset 3px 0 0 var(--late); }
.signin input[readonly] { background: var(--raised); color: var(--text-2); }
.signin .code-input { max-width: 11rem; font-size: 19px; }
.signin fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.signin fieldset + fieldset { margin-top: 18px; }
.signin legend { padding: 0; margin: 0 0 12px; font-family: var(--si-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-transform: none; color: var(--text); }

/* Buttons: the site's primary (lake) and quiet (paper) ones. */
.signin .button {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid var(--lake);
  background: var(--lake);
  color: var(--on-hue);
  filter: none;
  transition: background .15s, border-color .15s;
}
.signin .button:hover { background: var(--lake-d); border-color: var(--lake-d); filter: none; }
.signin .button.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.signin .button.secondary:hover { background: var(--surface); border-color: var(--text-3); }
.signin .button.block { width: 100%; }
.signin form .button.block { margin-top: 4px; }
.signin .link-button { color: var(--link); }
/* A link styled as a button keeps the button's colours (not the card's link colour). */
.signin .auth-card a.button { color: var(--on-hue); text-decoration: none; }
.signin .auth-card a.button.secondary { color: var(--text); }

/* Sign in with Google: a quiet button with Google's mark. */
.signin .button.google { gap: 10px; }
.signin .button.google svg { width: 18px; height: 18px; flex: none; margin: 0; }
.signin .auth-card .si-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 18px; color: var(--text-3); font-size: 13.5px; }
.si-or::before, .si-or::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }

/* Notices and errors: square, left rule (app.css), at the site's size. */
.signin .flash { font-size: 15px; padding: 12px 14px; margin: 0 0 18px; }
.signin .plan-chosen { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; font-size: 14.5px; margin: 0 0 20px; }

/* The ways out under the form. */
.signin .switch { margin: 18px 0 0; color: var(--text-2); font-size: 14.5px; }
.signin .switch + .switch { margin-top: 8px; }
.signin .auth-terms, .auth-card .auth-terms { margin: 10px 0 0; text-align: center; color: var(--text-2); }
.signin .auth-card > form + .switch { padding-top: 18px; border-top: 1px solid var(--line); }

/* Lists of choices (agency picker, several SSO agencies). */
.signin .list a, .signin .choices a { display: block; }
.signin .list a { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; color: var(--text); text-decoration: none; }
.signin .list a:hover { border-color: var(--lake); }
.signin .auth-card .list { margin: 0 0 20px; }
.signin .choices { margin: 0 0 18px; padding-left: 20px; }

/* The town, faded along the bottom (the site's footer band). Decoration only. */
.si-town {
  flex: none;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 48px;
  pointer-events: none;
}
.si-town img {
  display: block;
  flex: none;
  width: min(100%, 1040px);
  height: auto;
  max-width: none;
  opacity: .42;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 45%);
  mask-composite: intersect;
}
@media (max-width: 760px) { .si-town { margin-top: 36px; } .si-town img { width: 720px; } }
@media print { .si-town, .si-top { display: none; } }
