/* صفحات الدخول — «المرصد الأكاديمي»: سماء حبرية، ختم ذهبي، بطاقة زجاجية. */
:root {
  --ink: #0B1220; --ink-2: #111B2E; --gold: #C9A227; --gold-l: #F0E4B4; --sap: #6FA8DC;
  --fg: #ECE7DC; --fg-2: #A9B2C2; --err: #F08A7E;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth {
  min-height: 100vh; display: grid; place-items: center; overflow-x: hidden;
  background: radial-gradient(1200px 800px at 70% -10%, #1B2A47 0%, transparent 60%),
              radial-gradient(900px 700px at 10% 110%, #2A2142 0%, transparent 55%), var(--ink);
  color: var(--fg); font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; animation: drift 22s ease-in-out infinite alternate; }
.g1 { width: 420px; height: 420px; background: #C9A22755; top: -120px; inset-inline-end: -80px; }
.g2 { width: 520px; height: 520px; background: #1B4D8966; bottom: -180px; inset-inline-start: -140px; animation-duration: 28s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.auth-wrap { position: relative; z-index: 1; width: min(440px, calc(100vw - 32px)); text-align: center; padding: 40px 0; }
.auth-seal { display: inline-block; filter: drop-shadow(0 10px 30px rgba(201,162,39,.35)); animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.auth-seal svg { display: block; }
.auth-kicker { margin: 18px 0 2px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  animation: rise .9s .15s cubic-bezier(.2,.8,.2,1) both; }
.auth-name { margin: 8px 0 26px; font: 600 clamp(24px, 4.6vw, 34px)/1.15 "Cormorant Garamond", Georgia, serif; letter-spacing: .01em;
  background: linear-gradient(90deg, var(--gold-l), var(--gold) 45%, var(--gold-l) 70%, var(--gold)); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s .25s cubic-bezier(.2,.8,.2,1) both, sheen 7s 1.2s linear infinite; }
@keyframes sheen { to { background-position: -220% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.auth-card {
  text-align: start; padding: 26px 26px 22px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid rgba(240,228,180,.18); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  animation: rise .9s .35s cubic-bezier(.2,.8,.2,1) both;
}
.auth-card h2 { margin: 0 0 16px; font: 600 18px/1.4 "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif; color: var(--fg); }
.auth-note { margin: -6px 0 16px; font-size: 13px; line-height: 1.7; color: var(--fg-2); }
.af { display: block; margin-bottom: 14px; }
.af span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--fg-2); }
.af input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: 500 15px/1.2 "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif;
  color: var(--fg); background: rgba(5,10,20,.55); border: 1px solid rgba(169,178,194,.25); outline: none; transition: border-color .2s, box-shadow .2s;
}
.af input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.af small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--fg-2); opacity: .85; }
.auth-btn {
  width: 100%; margin-top: 6px; padding: 13px; border: 0; border-radius: 11px; cursor: pointer;
  font: 600 15px/1 "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif; color: #1A1406;
  background: linear-gradient(135deg, #F3E3A6, var(--gold) 55%, #A9851A); box-shadow: 0 10px 28px rgba(201,162,39,.35);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(201,162,39,.45); filter: brightness(1.05); }
.auth-btn:active { transform: translateY(1px); }
.auth-err { margin: -4px 0 14px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; color: var(--err);
  background: rgba(240,138,126,.1); border: 1px solid rgba(240,138,126,.35); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.auth-foot { margin-top: 22px; font-size: 12px; letter-spacing: .02em; color: var(--fg-2); opacity: .75; animation: rise .9s .5s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
