:root {
  --bg: #070b10;
  --surface: #0f161d;
  --surface2: #18232d;
  --line: #22303c;
  --a1: #3fd9a8;
  --a2: #2b9fd1;
  --text: #eef4f7;
  --muted: #7e8c99;
  --danger: #ff6b81;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(900px 500px at 50% -10%, #12303a 0%, var(--bg) 60%) no-repeat var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[hidden] { display: none !important; }
.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 18px; }
.brand img { width: 64px; height: 64px; }
.word { font-size: 26px; font-weight: 900; letter-spacing: .5px; }
.word span {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.center { text-align: center; }
h1 { font-size: 22px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; }
.sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.seg { display: flex; gap: 6px; background: var(--bg); border-radius: 14px; padding: 5px; margin-bottom: 14px; }
.seg button {
  flex: 1; border: 0; border-radius: 10px; padding: 11px 8px;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.seg button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
label { display: block; margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
label small { font-weight: 400; }
input {
  display: block; width: 100%; margin-top: 6px; padding: 14px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 16px; outline: none;
}
input:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(63, 217, 168, .18); }
input::placeholder { color: #4d5a66; }
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: 3px;
  border: 0; background: var(--surface2); color: var(--muted); border-radius: 9px; padding: 7px 10px;
  font: inherit; font-size: 12px; cursor: pointer;
}
.btn {
  display: block; width: 100%; margin-top: 6px; padding: 15px 16px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--a1), var(--a2)); color: #04120f;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); margin-top: 16px; }
.erro { margin: 0 0 10px; color: var(--danger); font-size: 14px; }
.lock, .aviso { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.aviso { border-top: 1px solid var(--line); padding-top: 14px; }
.check {
  width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2)); position: relative;
}
.check::after {
  content: ""; position: absolute; left: 25px; top: 15px; width: 18px; height: 32px;
  border: solid #04120f; border-width: 0 6px 6px 0; transform: rotate(45deg); border-radius: 2px;
}
.passos { margin: 0; padding-left: 20px; color: var(--text); font-size: 15px; }
.passos li { margin: 0 0 10px; }
footer { text-align: center; margin-top: 18px; font-size: 13px; }
a { color: var(--a1); text-decoration: none; }
.doc h2 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #c3cdd5; font-size: 14px; }
.doc ul { padding-left: 20px; }
