/* Sign-in — the same three-colour spine as terminal.css:
   midnight navy #030F22, slate gray #525C66, off-white #FEFEFE.
   The ACCENT here is navy rather than a colour: on a sign-in page the only
   emphasis is the brand, and a green accent would promise a meaning
   ("profit") that this page has nothing to say about. */
:root {
  --bg: #FEFEFE;
  --bg-2: #F3F5F8;
  --panel: #FFFFFF;
  --line: #E4E8ED;
  --line-2: #CCD4DC;
  --text: #030F22;
  --text-2: #525C66;
  --dim: #6B7580;
  --accent: #030F22;
  --amber: #8A5A09;
  --red: #BE2234;
  --shadow-1: 0 1px 2px rgba(3,15,34,.05), 0 1px 3px rgba(3,15,34,.035);
  --shadow-2: 0 4px 16px rgba(3,15,34,.07), 0 1px 3px rgba(3,15,34,.04);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  place-items: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  /* FLAT ground, no wash, and that is load-bearing rather than minimalism.
     The supplied logo ships on an opaque near-white canvas, which is hidden
     by `mix-blend-mode: multiply` on the mark -- white multiplied by the
     ground IS the ground. That identity only holds where the ground is one
     colour: against the soft radial wash this page used to carry, the same
     blend produced a visibly darker rectangle around the logo. The old dark
     theme's green glow and CRT scanlines were decoration; this is a
     constraint. */
}

.shell {
  width: 100%;
  max-width: 460px;
}

.mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* The lockup is a square canvas that is mostly whitespace, so it is sized by
   WIDTH and allowed to keep its own proportions; a height-constrained box
   would shrink the readable part to nothing. */
.mark .logo {
  width: min(228px, 60%);
  height: auto;
  display: block;
  /* No blend mode: logo-lockup.png is generated with a genuinely
     transparent background, so it sits correctly on any ground. The earlier
     `mix-blend-mode: multiply` was removed because it DARKENED the source's
     (254,254,254) canvas by a level and drew the very rectangle it was meant
     to hide. */
}

.mark .glyph {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: #FEFEFE;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-1);
}

.mark h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: .3px;
  font-weight: 650;
}

.mark p {
  margin: 3px 0 0;
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--dim);
  text-transform: uppercase;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-2);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: .2px;
  font-weight: 650;
  color: var(--text);
}

.card .sub {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.gbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.1px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .05s;
}

.gbtn:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: var(--shadow-2);
}

.gbtn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gbtn:active { transform: translateY(1px); }

.gbtn svg { width: 17px; height: 17px; flex: none; }

.notice {
  margin-top: 18px;
  padding: 11px 13px;
  border-left: 3px solid var(--amber);
  border-radius: 0 4px 4px 0;
  background: rgba(138, 90, 9, 0.07);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--amber);
}

.notice.err {
  border-left-color: var(--red);
  background: rgba(190, 34, 52, 0.07);
  color: var(--red);
}

.notice[hidden] { display: none; }

.meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 1.1px;
  color: var(--dim);
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-transform: uppercase;
}

.lock { color: var(--accent); }

footer {
  margin-top: 18px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: var(--dim);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .card { padding: 20px 16px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
