:root { color-scheme: dark; --bg: #111214; --panel: #1c1e22; --card: #292c32; --border: #3a3d44; --muted: #a5a5a5; --red: #e60000; --bad: #ff9c9c; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--bg); color: #fff;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.box { width: min(420px, 100%); background: var(--panel); border: 1px solid #2c2f35; border-radius: 16px; padding: 28px 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand-bar { width: 6px; height: 36px; background: #ff0000; border-radius: 2px; }
.brand b { display: block; font-size: 1.2rem; letter-spacing: .02em; } .brand small { color: var(--muted); }
h1 { font-size: 1.3rem; margin: 0 0 14px; }
label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; margin: 10px 0 6px; } label span { font-weight: 400; }
input { width: 100%; min-height: 54px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: #fff; font: inherit; font-size: 1.05rem; }
input:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px; border: 0; border-radius: 10px; background: #32353c; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; width: 100%; margin-top: 14px; touch-action: manipulation; }
.btn.primary { background: var(--red); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.msg { min-height: 1.4em; margin: 10px 0 0; color: var(--bad); font-weight: 600; }
.hint { color: #c9cbd1; margin: 0 0 6px; } .hint.small { color: var(--muted); font-size: .85rem; }
.newpass { margin: 12px 0 4px; padding: 16px; background: var(--bg); border: 1px dashed #fff; border-radius: 10px; text-align: center;
  font: 700 1.5rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.row { display: flex; gap: 10px; } .row .btn { margin-top: 12px; }
[hidden] { display: none !important; }
