/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

/* ── Layout ── */
.container   { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.page        { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stack       { display: flex; flex-direction: column; gap: 16px; }

/* ── Surface / Card ── */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Typography ── */
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 8px; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 12px; }
p  { color: #64748b; line-height: 1.7; margin-bottom: 16px; }
.text-muted  { color: #64748b; font-size: 0.875rem; }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; width: 100%;
  font-size: 0.9rem; font-weight: 500; font-family: inherit;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
  white-space: nowrap; text-decoration: none;
}
.btn-primary   { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-primary:hover { background: #1e293b; border-color: #1e293b; }
.btn-secondary { background: #ffffff; color: #0f172a; border-color: #e2e8f0; }
.btn-secondary:hover { background: #f1f5f9; }
.btn:disabled  { opacity: 0.45; cursor: not-allowed; }

/* ── Forms ── */
.form-group   { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label   { font-size: 0.85rem; font-weight: 500; color: #0f172a; }

input {
  width: 100%; padding: 11px 14px;
  font-size: 0.9rem; font-family: inherit;
  color: #0f172a; background: #ffffff;
  border: 1px solid #e2e8f0; border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
input::placeholder { color: #94a3b8; }

/* ── Alert ── */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 99px; font-size: 0.75rem; font-weight: 500;
}
.badge-success { background: #dcfce7; color: #15803d; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
}