/* Sign-in and sign-in-failed pages (spec 9.2), styled after the prototype: dark ground, the darkened can line-up
   photo, the NOBL Agents logo (inline, page text colour; spec 15.1) and one copper button; no agent portraits.
   Served from /signin-assets/ with a hashed URL;
   the {font_*} placeholders are filled at startup with the hashed URLs of fonts/<stem>.woff2 (Latin subsets of
   Archivo 900 and Hanken Grotesk 400/600, OFL: fonts/OFL.txt). The photo is a <picture> in the templates. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/signin-assets/e915040a/fonts/archivo-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/signin-assets/787b3fdd/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/signin-assets/58f23b7a/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}
/* Metric-matched fallbacks (same values as the SPA's font-fallbacks.css) so text does not jump on swap. */
@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 101.5%;
  ascent-override: 98.5%;
  descent-override: 29.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
  font-weight: 800 900;
  size-adjust: 105%;
  ascent-override: 83.6%;
  descent-override: 20%;
  line-gap-override: 0%;
}
:root {
  --ground: #0B0A09;
  --surface: #141210;
  --text: #F4EEE6;
  --muted: #B8B0A6;
  --copper: #E3A06A;
  --copper-hover: #F2BE8E;
  --sans: "Hanken Grotesk", "Hanken Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo", "Archivo Fallback", "Arial Black", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.signin {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
.photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--ground);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Top-aligned so the far-left can runs off the top of the screen; no shift, no fade (operator, 2026-10-20). */
  object-position: center top;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 9, .6) 0%, rgba(11, 10, 9, .55) 35%, rgba(11, 10, 9, .72) 70%, rgba(11, 10, 9, .95) 100%);
}
/* The sign-in content sits in a smoked-glass card with a copper rim lit from the upper left, like the app's cards. */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 44px 36px 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 232, 206, .06), rgba(255, 232, 206, 0) 40%), rgba(20, 18, 16, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 240, 220, .1);
  box-shadow: inset 0 1px 0 rgba(255, 232, 206, .1), 0 2px 6px rgba(0, 0, 0, .45), 0 40px 90px -30px rgba(0, 0, 0, .95);
}
main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(243, 201, 160, .55), rgba(243, 201, 160, .08) 32%, rgba(255, 240, 220, 0) 62%, rgba(227, 160, 106, .14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 480px) {
  main { padding: 36px 22px 28px; border-radius: 24px; }
}
.logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  color: var(--text);
}
@media (max-width: 480px) {
  .logo { width: 220px; }
}
/* The "NOBL Agents" heading stays for screen readers; the logo says it visually (spec 15.1). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.015em;
}
p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.code { font-size: 13px; }
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--copper);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--copper-hover); }
.button:focus-visible { outline: 2px solid var(--copper-hover); outline-offset: 3px; }
/* Sign-in pill styled after Google's light sign-in button (operator, 2026-10-20): white, Google mark, "Secure sign-in" (2026-10-21). */
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid #747775;
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .8);
}
.google-button:hover { background: #f2f2f2; }
.google-button:focus-visible { outline: 2px solid var(--copper-hover); outline-offset: 3px; }
.g-mark { flex: none; }
