:root {
  --bg: #0b0f15;
  --card: #141b26;
  --line: #232d3b;
  --text: #e8edf4;
  --muted: #9aa6b6;
  --blue: #1e6bff;
  --cyan: #29c6ff;
  --ok: #2ecc71;
  --err: #ff6b6b;
  --field-bg: #0f151e;
  --text-2: #c9d2de;
  --erro-txt: #ffc9c9;
  --ok-txt: #c8f5da;
}
:root[data-theme="light"] {
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: #dde4ee;
  --text: #0f1b2d;
  --muted: #5b6b80;
  --field-bg: #f1f5fa;
  --text-2: #33445a;
  --erro-txt: #a12828;
  --ok-txt: #17703c;
}
:root[data-theme="light"] .caixa { box-shadow: 0 20px 50px rgba(15, 27, 45, .08); }
:root[data-theme="light"] .btn-google { border-color: var(--line); }
:root[data-theme="light"] a:not(.btn) { color: #1a5fe0; }
.tema-btn {
  position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer;
}
.tema-btn:hover { border-color: var(--cyan); }
.tema-btn svg { width: 19px; height: 19px; }
.tema-btn .ico-lua { display: none; }
:root[data-theme="light"] .tema-btn .ico-sol { display: none; }
:root[data-theme="light"] .tema-btn .ico-lua { display: block; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(900px 600px at 85% -10%, rgba(30, 107, 255, .25), transparent 70%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 40px;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.topo { margin-bottom: 26px; }
.topo img { height: 56px; width: auto; display: block; }
.caixa {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.01em; }
.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41, 198, 255, .18); }
.dica { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--blue); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 20px; padding: 13px 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primario { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.btn-google { background: #fff; color: #1f1f1f; margin-top: 0; }
.btn-google svg { width: 18px; height: 18px; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 4px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 11px; font-size: 14px; }
.msg.erro { display: block; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: var(--erro-txt); }
.msg.ok { display: block; background: rgba(46, 204, 113, .1); border: 1px solid rgba(46, 204, 113, .4); color: var(--ok-txt); }
.rodape-caixa { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.passos { margin: 18px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.passos li { margin-bottom: 8px; }
.passos b { color: var(--text); }
.legal { margin-top: 26px; font-size: 12px; color: var(--muted); text-align: center; max-width: 440px; }
.oculto { display: none !important; }
