/* ===========================================================================
   Signing in to an LNIC console
   ---------------------------------------------------------------------------
   The front door of every console: one card, centred, no sidebar because
   there is no session yet. Shared rather than copied, so a person moving
   between Datadesk and the Source Directory meets the same page twice
   instead of two designs that nearly agree.

   Link tokens.css ahead of this. A consuming service needs no other
   stylesheet — the rules below are self-contained, and the markup they
   expect is: .auth-shell > .auth-brand + .auth-card.
   =========================================================================== */

body.auth-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

.auth-shell { min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 24rem; display: flex; flex-direction: column;
  gap: 1rem; padding: 1.75rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); }
.auth-brand { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.auth-card h1 { font-size: 1rem; margin: 0; font-weight: 600; }
.auth-card p { margin: 0; font-size: .9rem; color: var(--text-2); }
.auth-card a { color: var(--accent); }
.auth-card form { display: flex; flex-direction: column; gap: .75rem; }
.auth-card button, .auth-card [type="submit"] { width: 100%; padding: .55rem 1rem;
  font-size: .95rem; font-weight: 600; border: 0; border-radius: 4px;
  background: var(--accent); color: var(--on-accent); cursor: pointer; }
.auth-card button:hover, .auth-card [type="submit"]:hover { background: var(--accent-hover); }
.auth-card input { width: 100%; padding: .5rem .6rem; font-size: .95rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 4px; box-sizing: border-box; }
.auth-card :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.auth-card ul { margin: 0; padding: 0; list-style: none; display: flex;
  flex-direction: column; gap: .5rem; }
.auth-card .errorlist { color: var(--tone-bad); font-size: .85rem;
  margin: 0; padding-left: 1.1rem; }
.auth-card label { font-size: .82rem; color: var(--text-2); }
/* The way out is a footnote, not a call to action. */
.auth-foot { font-size: .8rem; color: var(--text-2); }
.auth-foot a { color: var(--text-2); text-decoration: none; }
.auth-foot a:hover { color: var(--text); text-decoration: underline; }
.auth-note { font-size: .82rem; color: var(--text-2); line-height: 1.5; }
