/* Estilo compartilhado: cadastro e painel admin */
:root {
  --ink: #1d1b2e; --ink-soft: #55526b; --paper: #fbf8f3; --surface: #ffffff;
  --lilac: #7b5cd6; --lilac-soft: #ece6fb; --teal: #13877a; --teal-soft: #dcf2ee;
  --sun: #f5b841; --sun-soft: #fdf1d4; --rose: #e8708a; --danger: #d64545; --danger-soft: #fde8e8;
  --line: rgba(29, 27, 46, 0.12); --radius: 20px; --shadow: 0 24px 60px -28px rgba(29, 27, 46, .35);
  --serif: "Fraunces", Georgia, serif; --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f0ff; --ink-soft: #b9b4cf; --paper: #120f1f; --surface: #1b1730;
    --lilac-soft: #2a2246; --teal-soft: #113b37; --sun-soft: #3a2f14; --danger-soft: #3d1a1a;
    --line: rgba(243, 240, 255, .14); --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
a { color: inherit; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 2; }
.hidden { display: none !important; }

/* Fundo animado */
.bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 90% 0%, color-mix(in srgb, var(--lilac) 22%, transparent), transparent 70%), radial-gradient(50% 45% at 0% 100%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%), var(--paper); }
.bg span { display: none; }
.bg span:nth-child(1) { width: 480px; height: 480px; background: var(--lilac); top: -160px; right: -120px; }
.bg span:nth-child(2) { width: 420px; height: 420px; background: var(--teal); bottom: -180px; left: -140px; animation-duration: 26s; }
.bg span:nth-child(3) { width: 300px; height: 300px; background: var(--sun); top: 40%; left: 45%; opacity: .25; animation-duration: 30s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, -40px) scale(1.12); } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lilac); color: #fff; box-shadow: 0 14px 30px -12px rgba(123, 92, 214, .8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .88rem; }

/* Campos */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(123, 92, 214, .18); }
textarea { min-height: 96px; resize: vertical; }
.hint { font-size: .8rem; color: var(--ink-soft); }
.error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.ok { color: var(--teal); font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper);
  padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow); z-index: 200; transition: transform .45s cubic-bezier(.2, .7, .2, 1); font-weight: 600;
}
.toast.show { transform: translate(-50%, 0); }
