:root {
  --bg: #262624; --bg2: #30302e; --line: #4a4945; --tx: #f5f4ee; --tx3: #9c9a92; --acc: #d97757; --acc2: #c6613f; --bad: #e5675c;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #faf9f5; --bg2: #ffffff; --line: #d6d3c8; --tx: #1f1e1d; --tx3: #73726c; --acc: #c6613f; --acc2: #b5562f; --bad: #c4372c; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--tx); -webkit-text-size-adjust: 100%;
  font: 16px/1.6 system-ui, -apple-system, "SF Arabic", "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}
.card { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8vh; }
.logo { border-radius: 16px; }
h1 { font-size: 26px; font-weight: 600; margin: 16px 0 2px; }
.sub { margin: 0 0 28px; color: var(--tx3); font-size: 15px; }
form { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: start; }
label { font-size: 14px; color: var(--tx3); padding: 0 4px; }
input {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--tx); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 14px; outline: 0; text-align: left;
}
input:focus { border-color: var(--acc); }
.hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
button {
  height: 50px; margin-top: 6px; border: 0; border-radius: 14px; background: var(--acc); color: #fff; font: inherit; font-size: 17px;
  font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
button:active { background: var(--acc2); }
.err { margin: 0; color: var(--bad); font-size: 14px; padding: 0 4px; }
