:root {
  --bg: #0a0a0f;
  --fg: #f2f2f7;
  --muted: #9a9aa8;
  --accent: #6c5ce7;
  --accent-2: #00d2ff;
  --field: #16161f;
  --border: #2a2a38;
  --error: #ff6b6b;
  --success: #4ade80;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

/* Soft animated glow behind the content — the "lights" hint */
.glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      40% 40% at 30% 30%,
      rgba(108, 92, 231, 0.35),
      transparent 70%
    ),
    radial-gradient(
      40% 40% at 70% 60%,
      rgba(0, 210, 255, 0.25),
      transparent 70%
    );
  filter: blur(40px);
  animation: drift 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes drift {
  from {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.1);
  }
}

.brand {
  position: absolute;
  top: 2rem;
  left: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--fg), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto 2.25rem;
  max-width: 520px;
}

.signup {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.signup input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--fg);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.signup input:focus {
  border-color: var(--accent);
}

.signup button {
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.signup button:hover {
  opacity: 0.92;
}

.signup button:active {
  transform: translateY(1px);
}

.signup button:disabled {
  opacity: 0.6;
  cursor: default;
}

.message {
  min-height: 1.4em;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.message.error {
  color: var(--error);
}

.message.success {
  color: var(--success);
}

.foot {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  z-index: 1;
}
