/* Move 22: the sign-in package's pages (/signin, the link-sent, confirm and
   message pages) in the Toolkit's "Board packet" design. Linked by
   src/signinSkin.js AFTER the package's inline <style>, and every selector here
   is at least as specific as the one it overrides, so these rules win.
   Styling only: the package's markup, wording and forms are untouched. */

/* The package's own variables, set to the Board packet tokens. Plain :root
   comes after its dark-mode :root, so the light palette holds in both modes. */
:root {
  --bg: #F4F6F8;      /* paper */
  --card: #FFFFFF;    /* sheet */
  --ink: #1D2A38;     /* navy ink */
  --muted: #5A6878;   /* slate */
  --line: #D9DFE5;    /* rule */
  --accent: #2F5D46;  /* green, actions only */
  --accent-hover: #244A38;
  --on-accent: #FFFFFF;
  --focus: #2F5D46;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  max-width: 26rem;
}

h1 { font-size: 1.953rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 0.75rem; }
p { color: var(--muted); margin: 0 0 1.25rem; }

label { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }

input {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);   /* 16px keeps phones from zooming in */
}

button, .button {
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 16px/1.3 var(--sans);
}
button:hover, .button:hover { background: var(--accent-hover); }

a { color: var(--ink); text-underline-offset: 0.18em; }

/* A visible focus ring on every control. */
:focus-visible,
input:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
input:focus { border-color: var(--ink); }

.or { color: var(--muted); font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
