:root {
  --ink: #0b0d10;
  --ink-2: #12161c;
  --line: rgba(232, 220, 198, 0.12);
  --paper: #e8dcc6;
  --paper-dim: rgba(232, 220, 198, 0.62);
  --copper: #c47a3a;
  --copper-hot: #e09a4f;
  --danger: #e07070;
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
}

.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(160deg, #0b0d10 0%, #141820 48%, #0e1218 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.glow-a {
  width: 48vw;
  height: 48vw;
  max-width: 640px;
  max-height: 640px;
  left: -12%;
  top: -18%;
  background: radial-gradient(circle, rgba(196, 122, 58, 0.35), transparent 70%);
}
.glow-b {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  right: -10%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(90, 140, 160, 0.22), transparent 70%);
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-hot);
  font-weight: 500;
}
.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  background: linear-gradient(180deg, #f4ebe0 0%, #c9b79a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  margin: 14px 0 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
  font-weight: 400;
}

.card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.field {
  display: grid;
  gap: 7px;
}
.field span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--paper);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: rgba(196, 122, 58, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 122, 58, 0.18);
}
.field input::placeholder { color: rgba(232, 220, 198, 0.28); }

.error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.submit {
  margin-top: 4px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 13px 16px;
  color: #1a1008;
  background: linear-gradient(135deg, var(--copper-hot), var(--copper));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.submit:active { transform: translateY(0); }
.submit:disabled { opacity: 0.55; cursor: wait; transform: none; }

.foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(232, 220, 198, 0.4);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

@media (max-width: 480px) {
  .card { padding: 18px; }
}
