/* Dance Cosmos · sign-in gate (public). Intentionally minimal — a single line
   on a quiet field. No brand marks, no hints about what lies beyond. */

:root {
  --gate-ink: #14131a;
  --gate-paper: #faf8f4;
  --gate-line: #e6e2da;
  --gate-muted: #6f6a62;
  --gate-accent: #14131a;
}

* { box-sizing: border-box; }

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

body {
  background: var(--gate-paper);
  color: var(--gate-ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  /* a barely-there vignette so the line floats, nothing more */
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(0,0,0,0.02), transparent 60%),
    var(--gate-paper);
}

.gate__card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.gate__tag {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.2px;
  font-style: italic;
  color: var(--gate-ink);
}

.gate__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate__input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
  color: var(--gate-ink);
  background: #fff;
  border: 1px solid var(--gate-line);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.15s ease;
}
.gate__input:focus {
  outline: none;
  border-color: var(--gate-accent);
}
.gate__input::placeholder { color: #b8b2a8; }

.gate__btn {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: #faf8f4;
  background: var(--gate-accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.gate__btn:hover { opacity: 0.9; }
.gate__btn:active { transform: translateY(1px); }
.gate__btn:disabled { opacity: 0.5; cursor: default; }

.gate__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gate-muted);
}
.gate__note strong { color: var(--gate-ink); font-weight: 600; }

.gate__textbtn {
  background: none;
  border: none;
  padding: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--gate-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.gate__textbtn:hover { color: var(--gate-ink); }

.gate__err {
  min-height: 1em;
  font-size: 13px;
  color: #b4321f;
}

.gate__spin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gate-line);
  border-top-color: var(--gate-ink);
  animation: gate-spin 0.7s linear infinite;
}
@keyframes gate-spin { to { transform: rotate(360deg); } }

@media (prefers-color-scheme: dark) {
  :root {
    --gate-ink: #f4f1ea;
    --gate-paper: #100f14;
    --gate-line: #2a2832;
    --gate-muted: #9a958c;
    --gate-accent: #f4f1ea;
  }
  .gate__input { background: #181720; }
  .gate__btn { color: #100f14; }
}
