:root{--bg:#eef1ec;--surface:#ffffff;--text:#17201b;--muted:#5e6b63;--line:#bcc7bf;--accent:#2b8f53;--danger:#c8372d}
@media (prefers-color-scheme:dark){:root{--bg:#0e1512;--surface:#18231d;--text:#e3eae5;--muted:#8a988f;--line:#31413a;--accent:#4cc27f;--danger:#f06a5e}}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
main{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px 16px calc(24px + env(safe-area-inset-bottom))}
form{width:100%;max-width:340px;display:flex;flex-direction:column;gap:12px}
label{font-size:13px;color:var(--muted)}
.field{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.field:focus-within{border-color:var(--accent)}
input[type=password],input[type=text]{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--text);font:inherit;font-size:16px;padding:11px 12px}
#eye{background:none;border:0;color:var(--muted);padding:0 12px;height:44px;cursor:pointer}
#eye:hover{color:var(--text)}
.check{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text);cursor:pointer}
.check input{accent-color:var(--accent);width:16px;height:16px}
#go{margin-top:4px;height:44px;border:0;border-radius:8px;background:var(--text);color:var(--bg);font:inherit;font-weight:500;cursor:pointer}
#go:disabled{opacity:.5;cursor:default}
#msg{min-height:1.5em;margin:0;font-size:14px;color:var(--danger)}
