:root { --bg:#14110f; --card:#1f1a17; --txt:#f3ece4; --mut:#9c9087; --on:#ffc44d; --off:#3a322d; --ok:#34d399; --bad:#f87171; }
* { box-sizing:border-box; }
html,body { height:100%; }
body { margin:0; background:var(--bg); color:var(--txt); font:16px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px; min-height:100dvh; }
main { width:100%; max-width:360px; text-align:center; }
h1 { font-size:1.1rem; font-weight:600; color:var(--mut); margin:0 0 28px; letter-spacing:.04em; text-transform:uppercase; }
#btn { width:220px; height:220px; border-radius:50%; border:6px solid #4a403a; background:var(--off); color:var(--txt);
  font-size:1.7rem; font-weight:700; cursor:pointer; transition:background .25s, box-shadow .25s, transform .1s, border-color .25s;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
#btn:active { transform:scale(.96); }
#btn:disabled { opacity:.6; }
#btn:focus-visible { outline:3px solid #fff; outline-offset:4px; }
body.on #btn { background:var(--on); border-color:#ffe2a3; color:#2b1d00; box-shadow:0 0 70px 10px rgba(255,196,77,.45); }
#estado { font-size:1.5rem; font-weight:600; margin:28px 0 18px; min-height:1.4em; }
#dev { display:inline-flex; align-items:center; gap:8px; background:var(--card); border-radius:999px; padding:8px 14px; font-size:.9rem; color:var(--mut); }
#dot { width:10px; height:10px; border-radius:50%; background:var(--bad); flex:none; }
#dev.ok #dot { background:var(--ok); }
#visto { font-size:.82rem; color:var(--mut); margin-top:10px; min-height:1.2em; }
#err { color:var(--bad); font-size:.9rem; min-height:1.3em; margin-top:10px; }
nav { margin-top:32px; display:flex; gap:18px; justify-content:center; align-items:center; font-size:.9rem; }
nav a, nav button { color:var(--mut); background:none; border:0; font:inherit; text-decoration:underline; cursor:pointer; padding:6px; }
form.card { background:var(--card); border-radius:16px; padding:22px; text-align:left; }
label { display:block; font-size:.9rem; color:var(--mut); margin:12px 0 6px; }
input[type=password] { width:100%; padding:13px; border-radius:10px; border:1px solid #4a403a; background:#120f0d; color:var(--txt); font-size:1rem; }
input:focus-visible { outline:2px solid var(--on); }
.go { width:100%; margin-top:18px; padding:14px; border:0; border-radius:10px; background:var(--on); color:#2b1d00; font-size:1rem; font-weight:700; cursor:pointer; }
.msg { margin:0 0 14px; font-size:.92rem; }
.msg.bad { color:var(--bad); }
.msg.good { color:var(--ok); }
