*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #f5f5f0;
  --text-dim: #888;
  --accent: #c4a87c;
  --accent-glow: rgba(196, 168, 124, 0.15);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ── Brand ── */

.brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.logo .logo-art {
  color: var(--accent);
}

.tagline {
  color: var(--text-dim);
  font-size: 1rem;
}

/* ── Form ── */

.form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
}

.input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

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

.input::placeholder {
  color: var(--text-dim);
}

.btn {
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #d4b88c;
  border-color: #d4b88c;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Message ── */

.message {
  margin-top: 1.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

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

.message.error {
  color: #e57373;
}

/* ── Fine print ── */

.fine-print {
  position: fixed;
  bottom: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

/* ── Spinner on button ── */

.btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

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

/* ── Responsive ── */

@media (max-width: 540px) {
  .form {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .logo {
    font-size: 2.2rem;
  }
}
