/* Shared by every page. Lives under /assets/signin/ because that path is public, and the sign-in page needs it
   before anyone has a session. The logo PNGs beside it are copied from brand/ by scripts/publish-site.sh. */
:root {
  --bg: #fbfbfd; --surface: #ffffff; --border: #d9d9e0; --text: #14141a; --muted: #55555f;
  --accent: #0a5cff; --accent-ink: #ffffff; --accent-soft: #e8f0ff; --warn: #b4231b; --warn-soft: #fdeceb;
  --logo: url("/assets/signin/shi-logo-primary.png");
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d11; --surface: #16161c; --border: #2e2e3a; --text: #f0f0f5; --muted: #a4a4b2;
    --accent: #5b9bff; --accent-ink: #0d0d11; --accent-soft: #132440; --warn: #ff6b60; --warn-soft: #2a1615;
    --logo: url("/assets/signin/shi-logo-inverse.png");
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); }
header.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: var(--surface);
  border-bottom: 1px solid var(--border); }
.logo { flex: none; width: 84px; height: 36px; background: var(--logo) no-repeat center / contain; }
.brandname { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
main { max-width: 56rem; margin: 0 auto; padding: 32px 24px 48px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; }
.card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.card.later { border-style: dashed; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  font-size: .8rem; font-weight: 600; }
.panel { max-width: 26rem; margin: 8vh auto 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 24px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px; }
input.code { letter-spacing: .4em; font-size: 1.4rem; text-align: center; }
button { margin-top: 14px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 4px; }
button.link { margin: 0; padding: 0; background: none; color: var(--accent); font-weight: 400; text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.msg { margin-top: 12px; min-height: 1.4em; color: var(--muted); }
.msg.err { color: var(--warn); }
.hidden { display: none; }
footer { max-width: 56rem; margin: 0 auto; padding: 16px 24px 32px; color: var(--muted); font-size: .9rem;
  border-top: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
