/* SpeedMenu — صفحات الدخول والتنصيب والأخطاء */
:root {
  --brand: #e67e22;
  --bg: #f4f4f1;
  --surface: #fff;
  --text: #1d1f22;
  --muted: #6b7077;
  --line: #e4e4df;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141518; --surface: #1d1f23; --text: #ececec; --muted: #a0a4ab; --line: #2e3136; }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: 'Almarai', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; line-height: 1.6;
}
button, input { font: inherit; color: inherit; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
}
.auth-card.center { text-align: center; }
.auth-card h1 { margin: 8px 0 4px; font-size: 22px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin: 0 auto;
}
.auth-card:not(.center) .brand-mark { margin: 0; }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.field { display: block; margin: 12px 0; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field input {
  width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); padding: 0 12px; outline: none;
}
.field input:focus { border-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; margin-top: 6px;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-soft { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.alert { background: #fde8e8; color: #9b2121; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 10px 0; }
.error-code { font-size: 56px; font-weight: 800; color: var(--brand); line-height: 1; }
code { background: var(--bg); padding: 1px 6px; border-radius: 6px; direction: ltr; display: inline-block; }

/* الشعار في صفحات الدخول */
.auth-logo-link { display: inline-block; }
.auth-logo { width: 96px; height: auto; margin: 0 auto 6px; display: block; }
.auth-card:not(.center) .auth-logo-link { display: block; text-align: center; }
.auth-foot { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted, #6b7078); }
.auth-foot a { font-weight: 800; color: #b85d00; }
.terms { max-width: 720px; }
.terms ol { padding-inline-start: 20px; line-height: 1.9; }
.terms li { margin-bottom: 8px; }
