/* Tailwind build import removed for WhiteNoise compatibility */

@theme {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --color-brand-50:  #f0fdf4;
  --color-brand-100: #dcfce7;
  --color-brand-400: #4ade80;
  --color-brand-500: #22c55e;
  --color-brand-600: #16a34a;
  --color-brand-700: #15803d;
  --color-brand-900: #14532d;
}

/* ── Base ────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: #09090b;
  color: #f4f4f5;
  -webkit-font-smoothing: antialiased;
}

/* ── Auth card ───────────────────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 40px;
}

/* ── Form controls ───────────────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: #f4f4f5;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.field-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.field-input::placeholder { color: #52525b; }

.field-error {
  font-size: 0.8125rem;
  color: #f87171;
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn-primary:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { border-color: #22c55e; color: #ffffff; }

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3f3f46;
  font-size: 0.8125rem;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #27272a;
}

/* ── Guide cards ─────────────────────────────────────────────────────────────── */
.guide-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12);
}

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-violet { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-green  { background: rgba(16,185,129,0.12); color: #34d399; }
.badge-amber  { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* ── Prose (guide content) ───────────────────────────────────────────────────── */
.prose-dark {
  color: #d4d4d8;
  max-width: 68ch;
  line-height: 1.8;
}
.prose-dark h1, .prose-dark h2, .prose-dark h3 { color: #f4f4f5; font-weight: 700; }
.prose-dark h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose-dark h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-dark p  { margin-bottom: 1.25rem; }
.prose-dark a  { color: #4ade80; text-decoration: underline; text-underline-offset: 3px; }
.prose-dark ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-dark ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-dark li { margin-bottom: 0.4rem; }
.prose-dark code {
  background: #27272a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: #4ade80;
}
.prose-dark pre {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.prose-dark blockquote {
  border-left: 3px solid #22c55e;
  padding-left: 1rem;
  color: #a1a1aa;
  font-style: italic;
}

/* ── Glow hero ───────────────────────────────────────────────────────────────── */
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.5s ease-out both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
