/* Mobile-first, kit leve próprio (sem framework pesado). Funciona light/dark. */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --text: #1a1a2e; --muted: #5b6472;
  --brand: #0a3e8c; --brand-2: #1a3a6b; --border: #e2e7f0; --danger: #c0392b;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0e1420; --surface:#161d2b; --text:#e8ecf4; --muted:#9aa6b8;
          --brand:#4d8ff0; --brand-2:#3d7fe0; --border:#26303f; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 440px; margin: 0 auto; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
.brand { text-align: center; margin: 28px 0 20px; }
.brand h1 { color: var(--brand); font-size: 1.4rem; margin: 0; letter-spacing: .3px; }
.brand p { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card h2 { margin: 0 0 14px; font-size: 1.1rem; }
label { display: block; font-size: .82rem; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
input {
  width: 100%; padding: 13px 14px; font-size: 16px; /* 16px evita zoom no iOS */
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text);
}
input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
button {
  width: 100%; margin-top: 18px; padding: 14px; font-size: 1rem; font-weight: 700;
  background: var(--brand); color: #fff; border: none; border-radius: 10px; cursor: pointer;
  min-height: 48px; /* alvo de toque */
}
button:active { transform: translateY(1px); }
button[disabled] { opacity: .6; cursor: default; }
.msg { margin-top: 14px; font-size: .88rem; min-height: 1.2em; }
.msg.err { color: var(--danger); }
.muted { color: var(--muted); font-size: .82rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.kv:last-child { border-bottom: none; }
.link-btn { background: none; color: var(--brand); width: auto; margin: 0; padding: 6px; font-weight: 600; }
.hidden { display: none; }
.pill { display:inline-block; background: var(--bg); border:1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size:.78rem; margin: 2px; }
