:root {
  --hh-bg: #0e1812;
  --hh-bg-2: #0a1410;
  --hh-card: #1c2e23;
  --hh-card-edge: rgba(212, 165, 68, 0.42);
  --hh-gold: #d4a544;
  --hh-gold-soft: #e6c074;
  --hh-emerald: #3f7a52;
  --hh-emerald-soft: #6fa386;
  --hh-ink: #f0e8d8;
  --hh-ink-dim: #9fb8a3;
  --hh-error: #e08a6f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: 'Iowan Old Style', 'Palatino', Georgia, 'Times New Roman', serif;
  color: var(--hh-ink);
  background-color: var(--hh-bg);
  background-image:
    radial-gradient(900px 700px at 20% 10%, rgba(63, 122, 82, 0.20), transparent 60%),
    radial-gradient(700px 600px at 80% 100%, rgba(212, 165, 68, 0.14), transparent 60%),
    linear-gradient(180deg, var(--hh-bg) 0%, var(--hh-bg-2) 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--hh-card);
  border: 1px solid var(--hh-card-edge);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 165, 68, 0.05) inset,
    0 0 80px rgba(212, 165, 68, 0.08) inset;
}

.brand { text-align: center; margin-bottom: 28px; }

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(212, 165, 68, 0.45));
}

.brand h1 {
  font-family: 'Iowan Old Style', 'Apple Garamond', 'Palatino', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  color: var(--hh-gold-soft);
}

.tagline {
  margin: 8px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--hh-ink-dim);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-style: italic;
}

form { display: flex; flex-direction: column; gap: 10px; }

label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 12px;
  color: var(--hh-ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

input[type=email] {
  appearance: none;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 17px;
  color: var(--hh-ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hh-card-edge);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input[type=email]::placeholder { color: rgba(159, 184, 163, 0.55); }

input[type=email]:focus {
  border-color: rgba(212, 165, 68, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(212, 165, 68, 0.14);
}

button[type=submit] {
  margin-top: 14px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #15201a;
  background: linear-gradient(180deg, var(--hh-gold-soft) 0%, var(--hh-gold) 100%);
  border: 0;
  border-radius: 12px;
  padding: 15px 18px;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(212, 165, 68, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform 80ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button[type=submit]:hover { filter: brightness(1.05); }
button[type=submit]:active { transform: translateY(1px); }
button[type=submit]:disabled { filter: grayscale(0.4) brightness(0.85); cursor: progress; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 32, 26, 0.35);
  border-top-color: #15201a;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: -3px;
  animation: spin 0.7s linear infinite;
}

button.loading .spinner { display: inline-block; }
button.loading .label { opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer {
  margin: 14px 2px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--hh-ink-dim);
}

.error {
  margin: 12px 2px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 13px;
  color: var(--hh-error);
}

footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hh-card-edge);
  text-align: center;
}
footer p {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 11px;
  color: var(--hh-ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-state form { display: none; }
.success {
  display: none;
  text-align: center;
  padding: 8px 4px 4px;
}
.success-state .success { display: block; }
.success h2 {
  font-family: 'Iowan Old Style', 'Palatino', Georgia, 'Times New Roman', serif;
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--hh-gold-soft);
}
.success p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--hh-ink-dim);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 380px) {
  .card { padding: 28px 20px 22px; }
  .brand h1 { font-size: 24px; }
}
