/* Shared by the public page and the admin site (nginx alias on the admin host).
   Keep every variable and class below: the admin UI depends on them. Public only styling lives in site.css. */
:root {
  --bg: #060915; --surface: rgba(234,241,255,.035); --border: rgba(154,166,200,.2);
  --text: #eaf1ff; --muted: #9aa6c8; --soft: #c4cde8; --accent: #2ee6c8; --accent2: #4a4fc4;
  --danger: #ff7a8a; --ok: #3dffb0;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; }
.grid-bg { position: fixed; inset: 0; z-index: -2; opacity: .35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.glow { position: fixed; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .28; animation: drift 18s ease-in-out infinite alternate; }
.glow.a { background: var(--accent2); top: -25vmax; inset-inline-start: -15vmax; }
.glow.b { background: var(--accent); bottom: -30vmax; inset-inline-end: -15vmax; animation-delay: -9s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .glow, .dot { animation: none; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; backdrop-filter: blur(10px); }
.field { display: grid; gap: 6px; margin-block-end: 16px; }
.field label { font-size: 14px; color: var(--muted); }
.input { width: 100%; min-width: 0; min-height: 46px; background: rgba(4,6,16,.55); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; color: var(--text); font: inherit; transition: border-color .15s, background-color .15s; }
.input:hover { border-color: rgba(154,166,200,.34); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 130px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; color: #03141a; background: var(--accent); cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover { background: #5cf0d8; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 400; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.ghost:focus-visible { outline-color: var(--accent); }
.err { color: var(--danger); font-size: 13px; min-height: 1.2em; }
.msg { min-height: 1.6em; margin-top: 12px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--danger); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .btn, .input { transition: none; } }
