:root { color-scheme: light dark; --bg: #f7f5f0; --card: #ffffff; --text: #1d2022; --muted: #6b7075; --border: #e7e2da; --accent: #a7df00; --accent-text: #1d2022; --danger: #c0392b; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b0d0e; --card: #16191b; --text: #f2f2ef; --muted: #9aa0a5; --border: #2a2e31; --danger: #ff6b5e; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 16px; }
main { width: 100%; max-width: 360px; text-align: center; }
main > img { border-radius: 16px; }
h1 { margin: 12px 0 0; font-size: 28px; }
.muted { color: var(--muted); margin: 4px 0 24px; }
form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; text-align: left; display: grid; gap: 10px; }
label { font-weight: 600; color: var(--muted); font-size: 14px; }
input { font: inherit; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
button { font: inherit; font-weight: 700; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-text); cursor: pointer; }
button:disabled { opacity: 0.6; }
[hidden] { display: none !important; }
.message { color: var(--danger); margin: 0; min-height: 1.4em; font-size: 14px; }
.message[data-kind="info"] { color: var(--text); }
.lead { margin: 0 0 4px; }
.hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.link { color: var(--muted); font-size: 14px; text-align: center; }
.password { position: relative; display: grid; }
.password input { padding-right: 52px; width: 100%; }
.reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border-radius: 10px; background: transparent center / 22px no-repeat; }
.reveal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7075' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.reveal[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7075' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.9 10.9 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6A17 17 0 0 0 2 12s3.6 7 10 7a9.9 9.9 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.reveal:focus-visible, input:focus-visible, button:focus-visible, .link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
meter.strength { width: 100%; height: 6px; }
input[readonly] { opacity: 0.75; }
