/* Shared chrome for the sign-in, invitation and password-reset pages.

   Extracted from login.html once a second and third page needed the same card.
   These pages are single-purpose forms, so they deliberately drop the page grid
   that the marketing pages use as scenery. */
/* No page grid behind the sign-in card. The grid is scenery for the marketing
   pages; on a single-purpose form it competes with the one thing to do here. */
body::before { display: none; }

.auth-shell {
  min-height: calc(100vh - var(--nav-h) - 5rem);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 1rem + 4vw, 4rem) 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(1.6rem, 1rem + 2vw, 2.4rem);
}
.auth-card h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: 0.3rem 0 0.5rem; }
.auth-lede { color: var(--muted); font-size: var(--t-small); margin-bottom: 1.6rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: 0;
  color: var(--fg-hi);
  font-family: var(--mono);
  font-size: var(--t-small);
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }

/* role="alert" so a screen reader announces the failure rather than leaving
   it to be discovered by re-reading the form. */
.auth-error {
  border: 1px solid var(--crit);
  border-left-width: 2px;
  background: var(--crit-dim);
  color: var(--fg);
  padding: 0.7rem 0.9rem;
  font-size: var(--t-small);
  margin-bottom: 1.2rem;
}
.auth-actions { margin-top: 1.5rem; }
.auth-actions .btn { width: 100%; justify-content: center; }
.auth-foot {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: var(--t-small);
  color: var(--muted);
}
.auth-foot a { color: var(--accent); }

.field-hint {
  margin: 0.45rem 0 0;
  font-size: var(--t-small);
  color: var(--muted);
}
