:root {
  --roxo: #481878;
  --roxo-escuro: #2e0f52;
  --branco: #f8f8f8;
  --texto: #2a2233;
  --fundo: #f3f0f7;
  --erro: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fundo: #161320; --texto: #ece8f3; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
.topo { background: var(--roxo); padding: 18px 16px; text-align: center; }
.logo { max-width: 160px; height: auto; display: inline-block; }
.conteudo { max-width: 460px; margin: 24px auto; padding: 0 16px; }
.cartao { background: #fff; color: var(--texto); border-radius: 14px; padding: 24px; box-shadow: 0 4px 18px rgba(72,24,120,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cartao { background: #211c2e; } }
h1 { font-size: 1.35rem; margin: 0 0 8px; color: var(--roxo-escuro); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 { color: #d9c4f2; } }
.texto { margin: 0 0 18px; line-height: 1.5; }
.campo { margin-bottom: 14px; display: flex; flex-direction: column; }
.campo label { font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.campo input[type=text], .campo input[type=email] { font: inherit; padding: 12px; border: 1px solid #c9bfd6; border-radius: 10px; background: #fff; color: var(--texto); }
.campo input:focus { outline: 3px solid rgba(72,24,120,.35); border-color: var(--roxo); }
.aceite { flex-direction: row; gap: 10px; align-items: flex-start; }
.aceite label { font-weight: 400; font-size: .9rem; margin: 0; }
.erro { color: var(--erro); font-size: .85rem; margin-top: 4px; }
.alerta { background: #fde7e5; color: var(--erro); padding: 12px; border-radius: 10px; margin-bottom: 14px; }
.botao { width: 100%; background: var(--roxo); color: var(--branco); border: 0; border-radius: 10px; padding: 14px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.botao:hover { background: var(--roxo-escuro); }
.rodape { text-align: center; font-size: .8rem; color: #6d6378; padding: 20px 16px 28px; }
