@font-face { font-family: "Vazirmatn"; src: url("vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #070b16; --panel: #0e1526; --panel-2: #141d33; --line: #223050; --text: #eef1f7; --muted: #b3bccf;
  --accent: #f0952a; --accent-ink: #1a0d00; --accent-2: #ffb259; --danger: #ff8a80; --danger-soft: #3a1c1a; --ok: #5fcf8f; --ok-soft: #133224; --focus: #ffb259; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif; }
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
main { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand img { width: 36px; height: 36px; }
.brand b { font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
h1 { font-size: 20px; margin: 4px 0 6px; text-wrap: balance; }
p { margin: 0 0 14px; color: var(--muted); word-break: normal; overflow-wrap: break-word; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input { width: 100%; font: inherit; font-size: 22px; letter-spacing: 0; text-align: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); direction: ltr; }
input.name { font-size: 16px; text-align: start; direction: auto; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { width: 100%; min-height: 52px; margin-top: 16px; font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
button[disabled] { opacity: .6; cursor: wait; }
.msg { margin-top: 14px; padding: 10px 12px; border-radius: 10px; display: none; }
.msg.bad { display: block; background: var(--danger-soft); color: var(--danger); }
.msg.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.foot a { color: var(--accent-2); }
:lang(en) body { letter-spacing: 0; }
