/*
 * Auth pages — the chrome around sign in / sign up / password reset.
 *
 * Full-viewport neutral canvas, single centered card. No sidebar, no
 * app navigation: these pages are pre-authentication, so everything
 * that requires a session is deliberately absent. The card carries
 * the product wordmark, a clear heading, the form, and a single
 * secondary link.
 */

@layer components {
  .auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--color-slate-50);
  }

  .auth-card {
    width: 100%;
    max-width: 28rem;
    /* Auto vertical margin centers the card in remaining space when
       the page is taller than the card; collapses cleanly to 0 when
       the card is taller than the viewport, so the top of the card
       is always visible. More robust than `align-items: safe center`. */
    margin: auto;
    padding: 2.25rem 2.5rem 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    /* Layered shadow — close-in for crispness, mid for body, far for
       ambient lift. Stacking multiple soft shadows reads more natural
       than one heavy drop shadow. */
    box-shadow:
      0 1px 2px   oklch(0% 0 0 / 6%),
      0 4px 12px  -2px oklch(0% 0 0 / 7%),
      0 16px 32px -8px oklch(0% 0 0 / 9%),
      0 32px 64px -16px oklch(0% 0 0 / 8%);
  }

  .auth-card__brand {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-slate-900);
    text-decoration: none;
    margin-bottom: 1.75rem;
  }

  .auth-card__logo {
    display: block;
    height: 2.5rem;
    width: auto;
    margin: 0 auto 1.5rem;
  }

  .auth-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.25rem;
    /* color inherits from base `h1-h6` rule (heading token). */
  }

  .auth-card__lede {
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
    /* color inherits from base `html` rule (body token). */
  }

  .auth-card .flash {
    margin-bottom: 1rem;
  }

  .auth-card__submit {
    margin-top: 0.5rem;
  }

  .auth-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    text-align: center;
    /* color inherits from base `html` rule (body token). */
  }

  .auth-card__footer a {
    font-weight: 500;
    /* color + hover inherit from base `a` rule (primary tokens). */
  }
}
