:root {
  color-scheme: dark;
  --color-bg-base: oklch(0.18 0.01 280);
  --color-bg-elevated: oklch(0.22 0.01 280);
  --color-card-fill: oklch(1 0 0 / 0.06);
  --color-card-border: oklch(1 0 0 / 0.12);
  --color-card-border-strong: oklch(1 0 0 / 0.18);
  --color-text-primary: oklch(1 0 0 / 0.95);
  --color-text-secondary: oklch(1 0 0 / 0.65);
  --color-text-tertiary: oklch(1 0 0 / 0.45);
  --color-accent: oklch(0.72 0.18 145);
  --color-accent-fg: oklch(0.18 0.01 280);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--color-bg-base);
  color: var(--color-text-primary);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 0%, oklch(0.72 0.18 145 / 0.18), transparent 34rem),
    linear-gradient(180deg, var(--color-bg-elevated), var(--color-bg-base) 45%);
}

body {
  min-height: 100dvh;
  margin: 0;
  background: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 560px);
  border: 1px solid var(--color-card-border);
  border-radius: 28px;
  background: var(--color-card-fill);
  padding: 24px;
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.28);
  backdrop-filter: blur(24px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}

.brand,
.badge,
.eyebrow,
.hint {
  margin: 0;
}

.brand {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.badge {
  border: 1px solid var(--color-card-border-strong);
  border-radius: 999px;
  padding: 7px 11px;
  background: oklch(1 0 0 / 0.07);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.content {
  max-width: 470px;
}

.eyebrow {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 0;
  max-width: 12ch;
  color: var(--color-text-primary);
  font-size: clamp(2.35rem, 8vw, 4rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.96;
}

.lede {
  margin: 22px 0 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.action-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  padding: 0 24px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.button:hover {
  filter: brightness(1.1);
}

.button:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

.button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.hint {
  max-width: 18rem;
  color: var(--color-text-tertiary);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .auth-shell {
    align-items: stretch;
    padding: 16px;
  }

  .auth-card {
    min-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    padding: 22px;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 44px;
  }

  h1 {
    max-width: 11ch;
  }

  .action-row,
  .button {
    width: 100%;
  }
}
