:root {
  --blue: #2E5472;
  --blue-deep: #1B2330;
  --blue-light: #6E8FA3;
  --silver: #B3B6B9;
  --silver-hover: #C7CACD;
  --tan: #E8E1D3;
  --tan-hover: #F0EBE0;
  --brown: #6b4a38;
  --brown-hover: #7d5745;
  --paper: #DCDDDE;
  --paper-light: #E6E7E8;
  --ink: #20262B;
  --slate: #5B6268;
  --line: #C9CBCC;
  --grey: #313032;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Public Sans', -apple-system, sans-serif;
  background: var(--blue-deep);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- SIGNUP HERO ---------- */
.hero {
  background: var(--grey);
  color: var(--tan);
  padding: 32px 24px 96px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 15%, rgba(0,0,0,0.25), transparent 65%),
    radial-gradient(ellipse 70% 50% at 30% 80%, rgba(0,0,0,0.2), transparent 60%),
    radial-gradient(ellipse 55% 45% at 75% 75%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse 40% 40% at 55% 45%, rgba(0,0,0,0.15), transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.nav {
  max-width: 960px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-auth {
  display: flex;
  gap: 10px;
}

.nav-auth button {
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-signup {
  background: var(--brown);
  color: var(--tan);
}

.btn-signup:hover {
  background: var(--brown-hover);
}

.btn-login {
  background: var(--tan);
  color: var(--blue-deep);
}

.btn-login:hover {
  background: var(--tan-hover);
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brown);
}

.wordmark-brand {
  font-family: 'Jura', 'Fraunces', serif;
  letter-spacing: 0.08em;
  color: var(--tan);
}

/* ---------- SIGNUP CARD ---------- */
.auth-content {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--tan);
}

.auth-subhead {
  font-size: 1rem;
  color: var(--brown);
  opacity: 0.9;
  margin-bottom: 40px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.auth-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tan);
  margin-bottom: -8px;
  letter-spacing: 0.02em;
}

.auth-form input {
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #0F1620;
  background: #12181F;
  color: var(--tan);
  font-size: 0.95rem;
  width: 100%;
}

.auth-form input::placeholder {
  color: #9A9184;
}

.auth-form input:focus,
button:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

.auth-form button {
  margin-top: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: 6px;
  background: var(--brown);
  color: var(--tan);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.auth-form button:hover {
  background: var(--brown-hover);
}

.auth-switch {
  font-size: 0.85rem;
  color: #A8A29A;
  margin-top: 24px;
}

.auth-message {
  font-size: 0.85rem;
  margin-top: 16px;
  min-height: 1.2em;
}

.auth-message-error {
  color: #E08B7D;
}

.auth-message-success {
  color: var(--tan);
}

.auth-switch a {
  color: var(--tan);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.microcopy {
  font-size: 0.8rem;
  color: #9A9184;
  margin-top: 16px;
}

/* ---------- RESEND BUTTON ---------- */
.btn-resend {
  margin-top: 8px;
  padding: 10px 18px;
  border: 1px solid var(--brown);
  border-radius: 6px;
  background: transparent;
  color: var(--tan);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}

.btn-resend:hover {
  background: rgba(107, 74, 56, 0.2);
}

.btn-resend:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- PAYWALL CTA ---------- */
.hero-cta {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  padding: 16px 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brown), var(--brown-hover));
  color: var(--tan);
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 0 18px rgba(107, 74, 56, 0.55),
    0 0 36px rgba(107, 74, 56, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 26px rgba(107, 74, 56, 0.7),
    0 0 52px rgba(107, 74, 56, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.4);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
}

.hero-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}