/* The PlayingXI auth frame (design system: SignIn, AuthMessage). Used by the signed-out pages
   of Team Ops and the setup site, and by every /auth page the server renders (auth/routes.py).
   Signed out there is no team yet, so the tokens are PlayingXI's own, scoped to .auth: they
   never touch the app's team branding. Fonts: the app loads its own; server pages add fonts.css. */
.auth {
  --surface-000: #FFFFFF; --surface-100: #F6F4F1; --surface-200: #EEEBE6;
  --border: #E3DED8; --border-strong: #8C857E;
  --ink: #121110; --ink-muted: #5F5953;
  --accent: #FD6315; --accent-hover: #E8540A; --on-accent: #121110; --accent-text: #C2410C;
  --font-sans: "TWK Everett", "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--surface-100); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 22px; -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .auth {
    --surface-000: #0F0F10; --surface-100: #18181A; --surface-200: #222225;
    --border: #2E2E32; --border-strong: #6B655F;
    --ink: #F3F0EC; --ink-muted: #ABA49D;
    --accent-hover: #FF7A33; --accent-text: #FF8A4C;
  }
}
.auth *, .auth *::before, .auth *::after { box-sizing: border-box; }
.auth a { color: var(--accent-text); text-underline-offset: 2px; }
.auth a:hover { color: var(--ink); }
.auth :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Logo top-left. The wide logo's black wordmark vanishes on dark grounds: the mark alone there. */
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px; }
.auth-top img { display: block; height: 28px; width: auto; }
.auth-top .logo-mark { display: none; }
@media (prefers-color-scheme: dark) { .auth-top .logo-wide { display: none; } .auth-top .logo-mark { display: block; } }
.auth-top .where { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* A left-set 400px column. No card. */
.auth-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8vh 32px 40px; }
.auth-col { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.auth h1 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
.auth .lede { margin: -12px 0 0; color: var(--ink-muted); }
.auth form { margin: 0; }

/* One primary action (orange, near-black text); anything else is the secondary button. */
.auth .button, .auth button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; margin: 0;
  border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.auth .button:hover, .auth button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.auth .button.secondary, .auth button.secondary { background: var(--surface-000); border-color: var(--border-strong); color: var(--ink); }
.auth .button.secondary:hover, .auth button.secondary:hover { background: var(--surface-200); color: var(--ink); }

.auth-foot { padding: 20px 32px; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 13px; line-height: 18px; }

@media (max-width: 640px) {
  .auth-top { padding: 16px; }
  .auth-main { padding: 24px 16px 32px; }
  .auth h1 { font-size: 32px; line-height: 36px; }
  .auth-foot { padding: 16px; }
}
