:root, [data-theme="dark"] { color-scheme: dark; --bg:#121211; --surface:#1a1a19; --surface-2:#222220; --border:#2d2d2a; --text:#f0efec; --text-2:#c3c2b7; --muted:#8d8c83; --accent:#3987e5; --accent-soft:rgba(57,135,229,.16); --danger:#e66767; }
[data-theme="light"] { color-scheme: light; --bg:#f4f3f0; --surface:#fcfcfb; --surface-2:#f0efec; --border:#e2e0da; --text:#0b0b0b; --text-2:#52514e; --muted:#7d7c75; --accent:#2a78d6; --accent-soft:rgba(42,120,214,.12); --danger:#d23b3a; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; display: grid; place-items: center; min-height: 100vh; padding: 20px; -webkit-font-smoothing: antialiased; }
.box { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 4px; }
.brand b { color: var(--accent); }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: inherit; color: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button.go { width: 100%; margin-top: 14px; background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 12px; font: inherit; font-weight: 600; cursor: pointer; }
button.go:disabled { opacity: .6; cursor: default; }
#msg, #msg2 { min-height: 22px; margin-top: 12px; font-size: 13px; color: var(--danger); }
#bloco-codigo[hidden], #f-senha[hidden] { display: none; }
#bloco-codigo p { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
#codigo { letter-spacing: 4px; text-align: center; font-size: 20px; }
label.ver { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--text-2); cursor: pointer; }
label.ver input { width: auto; accent-color: var(--accent); }
button.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; margin-top: 10px; padding: 4px 0; }
button.link:hover { color: var(--text); }

#bloco-codigo p { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
