:root {
  --red-500: #ee3d3d;
  --red-200: #f8b1b1;
  --red-100: #fcd8d8;
  --navy-500: #132949;
  --blue-500: #3772ff;
  --neutral-1: #f9f9f9;
  --neutral-3: #edeced;
  --neutral-4: #a2a2a2;
  --neutral-5: #494949;
  --white: #ffffff;
  --text-heading: var(--navy-500);
  --text-body: var(--neutral-5);
  --text-muted: var(--neutral-4);
  --text-accent: var(--red-500);
  --surface-page: var(--white);
  --surface-card: var(--white);
  --surface-accent-soft: var(--red-100);
  --border-strong: var(--neutral-4);
  --border-subtle: var(--neutral-3);
  --focus-ring: var(--blue-500);
  --shadow-sm: 0 2px 8px rgba(19, 41, 73, 0.07);
  --shadow-focus: 0 0 0 3px rgba(55, 114, 255, 0.28);
  --radius-lg: 16px;
  --font-display: "PP Neue Montreal", system-ui, sans-serif;
  --font-body: "PP Neue Montreal", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container-narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-page);
}

code,
.mono {
  font-family: var(--font-mono);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.wordmark {
  height: 40px;
  width: auto;
}

.eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.card {
  width: min(100%, 440px);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.card h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text-heading);
}

.lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-body);
}

.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-accent-soft);
  border: 1px solid var(--red-200);
  color: var(--navy-500);
}

.banner[hidden] {
  display: none;
}

.banner img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.banner p {
  margin: 0;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--navy-500);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn .g {
  width: 20px;
  height: 20px;
}

/* Author .link-ghost { display } overrides UA [hidden]; keep hidden elements gone. */
[hidden] {
  display: none !important;
}

.link-ghost {
  display: inline-block;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--text-body);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.link-ghost:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 4px;
}

.footer {
  margin-top: 48px;
}

.footer img {
  width: 20px;
  height: 20px;
  display: block;
}
