/* The pages before you are signed in (AUT-251 sign-in; AUT-256 the rest):
   sign up, password reset, email confirmation. One card on the design
   system's tokens, the environment said before anyone types a password.
   tokens.css is loaded first; every colour here is a token, so dark mode
   follows. Replaces account/css/style.css. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font-family); background: var(--bg); color: var(--ink-900);
    display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.card {
    width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-2); padding: 28px 28px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.env {
    font-size: 10px; font-weight: 700; letter-spacing: .06em; background: var(--env-bg); color: var(--env-fg);
    padding: 2px 6px; border-radius: 4px;
}
h1 { font-size: 20px; font-weight: 650; margin: 0 0 4px; }
p.lead { margin: 0 0 18px; color: var(--ink-500); font-size: 13px; }
p.text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-700); }
label { display: block; font-size: 12px; color: var(--ink-500); font-weight: 500; margin: 0 0 4px; }
.field { position: relative; margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
input[type=email], input[type=password], input[type=text] {
    width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-1);
    padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink-900); background: var(--surface);
}
/* Room for the eye whichever type the toggle has set (a shown password is
   type=text: has-toggle was never applied, AUT-387). */
input[type=password], .control input { padding-right: 40px; }
input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
/* The eye sits in the input: 40px tall input, 28px button, 6px in. */
.field .control { position: relative; }
.toggle {
    position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; background: transparent;
    color: var(--ink-500); cursor: pointer; border-radius: 4px;
}
.toggle:focus-visible { outline: 2px solid var(--focus); }
/* The line height goes inside the font shorthand (AUT-558): a `font:` after
   `line-height:` resets it to normal. A <button> centres its text anyway; a
   link drawn as a button (<a class="submit">) then had its text at the top. */
.submit {
    display: block; width: 100%; height: 40px; border: 0; border-radius: var(--r-1);
    background: var(--navy); color: var(--on-navy); font: 600 14px/40px var(--font-family); cursor: pointer;
    margin-top: 4px; text-align: center; text-decoration: none; padding: 0;
}
.submit:hover { background: var(--navy-700); color: var(--on-navy); text-decoration: none; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; }
.links.center { justify-content: center; }
.links a { color: var(--link); text-decoration: none; }
.links a:hover { text-decoration: underline; }
.error {
    background: var(--state-missing-bg); border: 1px solid var(--state-missing-line); color: var(--ink-900);
    border-radius: var(--r-1); padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.error ul { margin: 0; padding-left: 18px; }
.notice {
    background: var(--state-check-bg); border: 1px solid var(--state-check-line); color: var(--ink-900);
    border-radius: var(--r-1); padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.submit:disabled { opacity: .7; cursor: default; }
.login-footer { text-align: center; font-size: 12px; color: var(--ink-500); padding: 16px; }

/* The verifier page (AUT-380): one published document's text checked
   against the approved register. A wider card, the two answers first, then
   the facts the document itself prints. */
.card.verify { max-width: 560px; }
.verdict {
    border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-1);
    padding: 10px 12px; margin-bottom: 12px;
}
.verdict b { display: block; font-size: 15px; font-weight: 650; }
.verdict p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-700); }
.verdict.approved, .verdict.current { border-left-color: var(--state-ok-line); background: var(--state-ok-bg); }
.verdict.changed, .verdict.superseded, .verdict.withdrawn { border-left-color: var(--state-check-line); background: var(--state-check-bg); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: 13px; }
dl.facts dt { color: var(--ink-500); }
dl.facts dd { margin: 0; color: var(--ink-900); overflow-wrap: anywhere; }
dl.facts code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
dl.facts .hint { display: block; font-size: 12px; color: var(--ink-500); }
/* The compliance stamp (AUT-461): a check, the approval's facts, four category rows. */
/* Tokens only (AUT-494): --ink-50 was never one, so its light fallback drew in dark mode too. */
.stamp { margin: 0 0 14px; padding: 12px 14px; border-left: 4px solid var(--ink-300); border-radius: 6px; background: var(--surface-2); }
.stamp.approved { border-left-color: var(--state-ok-line); background: var(--state-ok-bg); }
.stamp .stamp-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.stamp .stamp-mark { font-size: 18px; line-height: 1; color: var(--state-ok-line); }
.stamp dl.facts { margin-top: 10px; }
.stamp .pod-line { margin: 12px 0 0; font-size: 13px; color: var(--ink-700); }
.stamp ul.cats { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.stamp ul.cats li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stamp .cat-checked { color: var(--state-ok-line); font-weight: 650; }
.stamp .cat-not_covered, .stamp .cat-not_applicable { color: var(--ink-500); }
@media (max-width: 420px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; } }

/* The private-placement questions (AUT-448): the advisor's and the reader's.
   Phone first: one column, 48 px targets. */
.card.placement { max-width: 520px; }
.card.placement h2 { font-size: 15px; font-weight: 650; margin: 18px 0 10px; }
.pp-form + .pp-form { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
select {
    width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-1);
    padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink-900); background: var(--surface);
}
.card.placement input[type=text] { height: 48px; font-size: 16px; }
.card.placement .submit { height: 48px; line-height: 48px; font-size: 16px; }
.submit.secondary { background: transparent; color: var(--navy); border: 1px solid var(--line-strong); }
.submit.secondary:hover { background: var(--navy-100); color: var(--navy); }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.field legend { font-size: 14px; font-weight: 600; color: var(--ink-900); padding: 0; margin-bottom: 8px; }
.choice {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; margin: 0 0 8px;
    border: 1px solid var(--line-strong); border-radius: var(--r-1); font-size: 15px; color: var(--ink-900); cursor: pointer;
}
.choice input { width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.choice .hint { display: block; font-size: 12px; color: var(--ink-500); }
.pp-note { font-size: 12px; color: var(--ink-500); margin: 12px 0 0; }
.pp-copy .submit { margin-top: 12px; height: 44px; line-height: 42px; }
