/* g2-auth (G2-2605). Values from knowledge/design-system/tokens:
   elite accent #D32436, neutral scale, Inter, radius.md 12px, 4px spacing base. */
:root {
  --accent: #d32436;
  --accent-ink: #a81a29;
  --ground: #f1f5f9;   /* neutral.100 */
  --surface: #ffffff;  /* neutral.0 */
  --ink: #0f172a;      /* neutral.900 */
  --ink-2: #334155;    /* neutral.700 */
  --muted: #64748b;    /* neutral.500 */
  --line: #e2e8f0;     /* neutral.200 */
  --danger: #ef4444;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding-inline: 16px;
  padding-block: 40px 24px;
}

.card {
  width: 100%;
  max-width: 440px;
  align-self: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
}

.brand { text-align: center; margin-bottom: 20px; }
/* Matches elite-web's login: h-32 rounded-2xl ring-1 ring-black/10 shadow-sm */
.logo {
  width: 128px; height: 128px; display: block; margin: 0 auto 20px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .05);
}
.eyebrow {
  margin: 0;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.title {
  margin: 4px 0 6px;
  font-size: 1.35rem; font-weight: 700; line-height: 1.3;
  text-wrap: balance;
}
.sub { margin: 0; color: var(--muted); font-size: .95rem; }

.clerk-slot { min-height: 120px; }
.loading { text-align: center; color: var(--muted); font-size: .85rem; margin: 40px 0; }

.error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: .85rem;
}

.foot { padding-top: 24px; font-size: .85rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--accent-ink); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Let Clerk's card sit flush inside ours: the outer card carries the chrome. */
.cl-rootBox { width: 100%; }
.cl-card, .cl-cardBox { box-shadow: none !important; border: 0 !important; width: 100% !important; }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .35s ease-out both; }
  @keyframes rise { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
