/* FAZAA — Login page styles (extracted June 2026 from v2 Login.html) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-base: #eef2ff;
  --text: #0f172a;
  --text-soft: #475569;
  --text-dim: #64748b;
  --glass: rgba(255,255,255,0.65);
  --glass-deep: rgba(255,255,255,0.88);
  --border: rgba(255,255,255,0.7);
  --border-soft: rgba(0,0,0,0.06);
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --blue-deep: #1e40af;
  --blue-soft: rgba(37,99,235,0.12);
  --indigo: #312e81;
  --indigo-mid: #4338ca;
  --gold: #c9a96a;
  --success: #10b981;
  --danger: #ef4444;
  --danger-soft: rgba(239,68,68,0.10);
}
html, body {
  font-family: 'Cairo', system-ui, sans-serif;
  color: var(--text); min-height: 100vh;
  background: var(--bg-base); overflow-x: hidden;
}
body { min-height: 100vh; padding: 28px 20px 60px; display: flex; flex-direction: column; }

/* ─── ANIMATIONS ─── */
@keyframes blobDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(80px,60px) scale(1.1); } 66% { transform: translate(-50px,120px) scale(0.95); } }
@keyframes blobDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-120px,-90px) scale(1.15); } }
@keyframes blobDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(100px,-60px) scale(0.9); } }
@keyframes blobDrift4 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,100px) scale(1.08); } }
@keyframes fadeUp { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes ringPulse { 0% { transform: scale(0.85); opacity:0.7; } 100% { transform: scale(2.2); opacity:0; } }
@keyframes shake { 0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-6px);} 40%,80%{transform:translateX(6px);} }
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 14px 30px -8px rgba(37,99,235,0.45), 0 0 0 0 rgba(37,99,235,0.4); }
  50% { box-shadow: 0 14px 38px -6px rgba(37,99,235,0.65), 0 0 0 14px transparent; }
}
@keyframes shimmerText { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }

/* ─── AURORA BG ─── */
.aurora-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #eef2ff 0%, #f0f3ff 55%, #eef2ff 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(40px); }
.blob-1 { top: -200px; right: -200px; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--blue), transparent 65%);
  opacity: 0.5; animation: blobDrift1 22s ease-in-out infinite; }
.blob-2 { top: 200px; left: -120px; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--indigo), transparent 65%);
  opacity: 0.42; animation: blobDrift2 25s ease-in-out infinite; }
.blob-3 { bottom: -180px; right: 80px; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--blue-light), transparent 65%);
  opacity: 0.4; animation: blobDrift3 28s ease-in-out infinite; }
.blob-4 { bottom: 200px; left: 200px; width: 540px; height: 540px;
  background: radial-gradient(circle, var(--indigo-mid), transparent 65%);
  opacity: 0.4; animation: blobDrift4 26s ease-in-out infinite; }
.aurora-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 4px 4px; opacity: 0.4; mix-blend-mode: overlay;
}
body > *:not(.aurora-bg) { position: relative; z-index: 1; }

/* ─── FAZAA LOGO ─── */
.fz-logo {
  --letter-color: #0f172a; --letter-shadow: rgba(37,99,235,0.18);
  --z-color: var(--blue); --z-light: #60a5fa;
  --z-glow: rgba(37,99,235,0.4); --z-aura: rgba(37,99,235,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  direction: rtl; line-height: 0.85;
  font-family: 'Cairo', sans-serif; font-weight: 900;
  user-select: none; vertical-align: baseline; position: relative;
}
.fz-letter { display: inline-block; color: var(--letter-color); text-shadow: 0.04em 0.04em 0 var(--letter-shadow); }
.fz-letter.feh { margin-left: -0.03em; }
.fz-letter.alif-ayn { margin-right: -0.1em; }
.fz-z-container { position: relative; display: inline-flex; justify-content: center; }
.fz-z-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--z-aura) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
  animation: aura 2s ease-in-out infinite;
}
@keyframes aura {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); }
}
.fz-z-normal {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  color: var(--z-color);
  text-shadow: 0.04em 0.04em 0 var(--letter-shadow), 0 0 4px var(--z-light), 0 0 14px var(--z-color), 0 0 28px var(--z-glow), 0 0 50px var(--z-glow);
}

/* ─── TOPBAR ─── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 480px; width: 100%; margin: 0 auto 28px;
  padding: 10px 14px 10px 18px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 14px 36px -16px rgba(30,40,90,0.18);
  animation: fadeIn 0.8s ease-out;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-soft); text-decoration: none;
  font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.back-link:hover { background: var(--blue-soft); color: var(--blue-deep); border-color: rgba(37,99,235,0.3); }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── LOGIN CARD ─── */
.login-shell {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 0 40px;
}
.login-card {
  max-width: 460px; width: 100%;
  background: var(--glass-deep);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 30px 80px -22px rgba(30,40,90,0.25), inset 0 1px 0 rgba(255,255,255,0.7);
  position: relative; overflow: hidden;
  animation: fadeUp 0.7s 0.15s ease-out both;
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--indigo-mid), var(--blue), transparent);
  background-size: 200% 100%;
  animation: shimmerText 4s linear infinite;
}
.login-head { text-align: center; margin-bottom: 30px; }
.login-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--blue-soft); border: 1px solid rgba(37,99,235,0.25);
  color: var(--blue-deep); font-size: 12px; font-weight: 800; letter-spacing: 2px;
  margin-bottom: 18px;
}
.login-head .eyebrow .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  position: relative;
}
.login-head .eyebrow .live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--blue);
  animation: ringPulse 1.8s ease-out infinite;
}
.login-head h1 {
  font-size: 28px; font-weight: 900; line-height: 1.25;
  margin-bottom: 8px;
}
.login-head h1 .shimmer {
  background: linear-gradient(90deg, var(--blue) 0%, var(--indigo-mid) 40%, var(--blue-light) 70%, var(--blue) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s linear infinite;
}
.login-head p { font-size: 13.5px; color: var(--text-soft); line-height: 1.85; }

/* ─── FIELDS ─── */
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; color: var(--text);
}
.field input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  outline: none;
  text-align: right; direction: rtl;
}
.field input[type="email"], .field input[type="password"] { direction: ltr; text-align: left; }
.field input:hover { border-color: rgba(37,99,235,0.35); }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error input {
  border-color: var(--danger); background: var(--danger-soft);
  animation: shake 0.35s;
}
.field .err-msg {
  display: none; font-size: 11.5px; color: var(--danger); margin-top: 6px; font-weight: 700;
}
.field.has-error .err-msg { display: block; }

.password-wrap { position: relative; }
.password-wrap input { padding-left: 46px; }
.password-toggle {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  padding: 6px; border-radius: 7px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.password-toggle:hover { color: var(--blue-deep); background: var(--blue-soft); }
.password-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── REMEMBER + FORGOT ─── */
.options-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.remember-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.remember-label input { position: absolute; opacity: 0; pointer-events: none; }
.remember-box {
  width: 18px; height: 18px;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.remember-box svg {
  width: 11px; height: 11px; stroke: #fff; fill: none;
  stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(0.4); transition: all 0.18s;
}
.remember-label input:checked + .remember-box {
  background: linear-gradient(135deg, var(--blue), var(--indigo-mid));
  border-color: transparent;
  box-shadow: 0 4px 10px -2px rgba(37,99,235,0.5);
}
.remember-label input:checked + .remember-box svg { opacity: 1; transform: scale(1); }
.forgot-link {
  font-size: 13px; font-weight: 700;
  color: var(--blue-deep); text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--blue); text-decoration: underline; }

/* ─── BUTTONS ─── */
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--indigo-mid));
  color: #fff; padding: 16px;
  border: none; border-radius: 100px;
  font-family: inherit; font-weight: 800; font-size: 15px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.2s;
  animation: ctaGlow 3s ease-in-out infinite;
}
.btn-login:hover { transform: translateY(-2px); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }
.btn-login svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.btn-loading {
  display: none; gap: 4px;
}
.btn-login.loading .btn-text { display: none; }
.btn-login.loading .btn-loading { display: inline-flex; }
.btn-loading span {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: dotBounce 0.9s ease-in-out infinite;
}
.btn-loading span:nth-child(2) { animation-delay: 0.15s; }
.btn-loading span:nth-child(3) { animation-delay: 0.30s; }
@keyframes dotBounce { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* ─── DIVIDER ─── */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 22px;
  color: var(--text-dim); font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08);
}

.signup-cta {
  text-align: center;
  font-size: 13.5px; color: var(--text-soft);
}
.signup-cta a {
  color: var(--blue-deep); font-weight: 800; text-decoration: none;
  transition: color 0.2s;
}
.signup-cta a:hover { color: var(--blue); text-decoration: underline; }

/* ─── FOOTNOTE ─── */
.foot-note {
  text-align: center; font-size: 12px; color: var(--text-dim);
  margin: 28px auto 0;
  max-width: 460px;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
}
.foot-note span { display: inline-flex; align-items: center; gap: 7px; }
.foot-note svg { width: 13px; height: 13px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 520px) {
  .login-card { padding: 32px 24px; border-radius: 22px; }
  .login-head h1 { font-size: 24px; }
  .topbar { border-radius: 22px; }
}
/* ─────────────── PENDING REVIEW MODAL (designed, NOT wired) ─────────────── */
.pending-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.55); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .25s;
}
.pending-overlay.show { display: flex; opacity: 1; animation: pendingFadeIn .35s ease-out; }
@keyframes pendingFadeIn { from { opacity: 0; } to { opacity: 1; } }
.pending-card {
  position: relative;
  max-width: 480px; width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 28px;
  padding: 40px 32px 30px;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,0.4), 0 0 0 1px rgba(37,99,235,0.06);
  text-align: center;
  animation: pendingCardIn .5s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
@keyframes pendingCardIn { from { transform: translateY(40px) scale(.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.pending-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), #4338ca, var(--blue));
  background-size: 200% 100%; animation: pendingBarFlow 3s linear infinite;
}
@keyframes pendingBarFlow { from { background-position: 0 0; } to { background-position: 200% 0; } }
.pending-icon-wrap {
  position: relative;
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-soft), rgba(67,56,202,0.10));
  border: 2px solid rgba(37,99,235,0.18);
}
.pending-icon-wrap::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.18);
  animation: pendingPulse 2.2s ease-out infinite;
}
@keyframes pendingPulse {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}
.pending-icon-wrap svg {
  width: 44px; height: 44px;
  stroke: var(--blue); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  animation: pendingSpin 8s linear infinite;
}
@keyframes pendingSpin { to { transform: rotate(360deg); } }
.pending-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; color: var(--blue-deep);
  letter-spacing: 3px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--blue-soft); border: 1px solid rgba(37,99,235,0.22);
}
.pending-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  animation: pendingBlink 1.5s ease-in-out infinite;
}
@keyframes pendingBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pending-card h3 {
  font-size: 24px; font-weight: 900; color: var(--text);
  margin-bottom: 10px; letter-spacing: -.5px;
}
.pending-card p {
  font-size: 14px; line-height: 1.85; color: var(--text-soft);
  margin-bottom: 22px; max-width: 380px; margin-inline: auto;
}
.pending-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 22px; padding: 14px;
  background: rgba(37,99,235,0.05); border-radius: 14px;
  border: 1px dashed rgba(37,99,235,0.25);
}
.pending-meta-item { text-align: center; }
.pending-meta-item .lbl {
  font-size: 10.5px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 1.5px; margin-bottom: 4px;
}
.pending-meta-item .val {
  font-size: 13px; font-weight: 800; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 5px;
}
.pending-meta-item .val svg {
  width: 12px; height: 12px; stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.pending-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.pending-actions .pa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 100px;
  font-size: 13px; font-weight: 800;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
}
.pending-actions .pa-btn svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.pending-actions .pa-primary {
  background: linear-gradient(135deg, var(--blue), #4338ca); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(37,99,235,0.5);
}
.pending-actions .pa-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(37,99,235,0.65); }
.pending-actions .pa-ghost {
  background: rgba(0,0,0,0.04); color: var(--text-soft);
  border: 1px solid rgba(0,0,0,0.08);
}
.pending-actions .pa-ghost:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.pending-close {
  position: absolute; top: 14px; left: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04); border: none; border-radius: 50%;
  cursor: pointer; color: var(--text-dim); transition: all .15s;
}
.pending-close:hover { background: rgba(0,0,0,0.1); color: var(--text); }
.pending-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

  /* ───────── CREDENTIALS STRIP ───────── */
  .credentials{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:14px;margin:18px auto;max-width:860px;}
  .credentials .cred-item{display:inline-flex;align-items:center;gap:12px;padding:12px 18px;border-radius:16px;background:rgba(255,255,255,0.7);border:1px solid rgba(0,0,0,0.08);text-decoration:none;color:#0f172a;}
  .credentials .cred-item img{height:40px;width:auto;display:block;border-radius:6px;}
  .credentials .cred-txt{display:flex;flex-direction:column;gap:2px;text-align:right;}
  .credentials .cred-label{font-size:12px;font-weight:800;color:#0f172a;}
  .credentials .cred-num{font-size:12px;font-weight:700;color:#475569;font-family:'Inter',monospace;direction:ltr;min-height:14px;}
  .credentials .cred-num b{font-weight:800;color:#0f172a;}
  .credentials .cred-link{cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s;}
  .credentials .cred-link:hover{transform:translateY(-2px);border-color:rgba(0,0,0,0.18);box-shadow:0 10px 24px -10px rgba(0,0,0,0.25);}

  /* ───────── CERTIFICATE MODAL ───────── */
  .cert-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:flex-start;justify-content:center;padding:40px 16px;background:rgba(15,23,42,0.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow:auto;}
  .cert-modal.open{display:flex;}
  .cert-box{background:#fff;border-radius:18px;max-width:760px;width:100%;box-shadow:0 30px 80px -20px rgba(0,0,0,.45);position:relative;animation:certUp .3s cubic-bezier(.2,.7,.3,1) both;font-family:'Cairo',system-ui,sans-serif;}
  @keyframes certUp{from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}
  .cert-close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:none;border-radius:50%;background:#f1f5f9;color:#475569;font-size:22px;line-height:1;cursor:pointer;transition:background .2s;z-index:2;}
  .cert-close:hover{background:#fee2e2;color:#dc2626;}
  .cert-head{text-align:center;padding:22px 20px 16px;border-bottom:1px solid rgba(0,0,0,.06);}
  .cert-title{font-size:14px;font-weight:700;color:#475569;}
  .cert-num{font-size:22px;font-weight:800;color:#0f172a;direction:ltr;margin-top:4px;min-height:24px;font-family:'Inter',monospace;}
  .cert-body{padding:20px;}
  .cert-body img{width:100%;height:auto;border-radius:10px;display:block;}
  .cert-ph{border:2px dashed rgba(0,0,0,.15);border-radius:12px;padding:64px 20px;text-align:center;color:#94a3b8;font-size:14px;font-weight:700;}
