/* صفحة دخول النقليات — نسخة من تصميم دخول الراقي ون (alraqicenter/assets/css/login.css) لتبقى الأنظمة عائلة واحدة.
   المتغيرات التالية من ألوان الراقي ون لأن ملف النقليات app.css لا يعرّفها. */
body.auth-body { --ink: #182033; --ink-2: #3a4459; --muted: #7b8498; --muted-2: #a2a9b8; --line: #e6eaf2; --surface-3: #f3f5fa;
  --primary-soft: #eef1ff; --danger: #d25667; --danger-soft: #fff1f3; --danger-line: #f6d8de; --success-soft: #ecfaf5; --success-line: #d3f0e4; --warning: #b47a1f;
  font-family: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.6; }
body.auth-body .guest-main { display: block; min-height: 100vh; padding: 0; background: none; }
body.auth-body .toast { display: none; }
.lg-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.lg-remember input { width: 16px; height: 16px; accent-color: #5267db; margin: 0; }
.lg [data-lucide] { width: 18px; height: 18px; }

/* صفحة الدخول — مركز عمليات الراقي (v1.10.2): أشرطة متموّجة، عنوان يُكتب، أقسام المنصة تدور حول شاشة حية، شريط أقسام متحرك */
body.auth-body { display: block; padding: 0; background: #f6f7fb; min-height: 100vh; overflow-x: hidden; }
.lg { --lo: #f28c28; --lp: #5267db; --lt: #149b98; position: relative; width: 100%; max-width: 100vw; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.lg svg.lucide { width: 18px; height: 18px; }

/* background */
.lg-rib { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.lg-rib g { transform-origin: 50% 50%; }
.lg-rib .r1 { animation: lgFl1 16s ease-in-out infinite alternate; }
.lg-rib .r2 { animation: lgFl2 20s ease-in-out infinite alternate; }
.lg-rib .r3 { animation: lgFl1 24s ease-in-out infinite alternate-reverse; }
@keyframes lgFl1 { from { transform: translate(-50px, 16px) rotate(-3deg); } to { transform: translate(50px, -18px) rotate(3deg); } }
@keyframes lgFl2 { from { transform: translate(34px, -12px) rotate(2deg); } to { transform: translate(-40px, 20px) rotate(-4deg); } }
.lg-dots { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.lg-dots i { position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%; background: var(--lp); opacity: 0; animation: lgRise 14s linear infinite; }
.lg-dots i:nth-child(3n) { background: var(--lo); width: 8px; height: 8px; }
.lg-dots i:nth-child(4n) { background: var(--lt); width: 5px; height: 5px; }
.lg-dots i:nth-child(1) { left: 4%; animation-delay: 0s; }   .lg-dots i:nth-child(2) { left: 11%; animation-delay: 5s; }
.lg-dots i:nth-child(3) { left: 19%; animation-delay: 9s; }  .lg-dots i:nth-child(4) { left: 27%; animation-delay: 2s; }
.lg-dots i:nth-child(5) { left: 34%; animation-delay: 11s; } .lg-dots i:nth-child(6) { left: 42%; animation-delay: 7s; }
.lg-dots i:nth-child(7) { left: 50%; animation-delay: 3s; }  .lg-dots i:nth-child(8) { left: 58%; animation-delay: 12s; }
.lg-dots i:nth-child(9) { left: 65%; animation-delay: 6s; }  .lg-dots i:nth-child(10) { left: 72%; animation-delay: 1s; }
.lg-dots i:nth-child(11) { left: 79%; animation-delay: 10s; } .lg-dots i:nth-child(12) { left: 86%; animation-delay: 4s; }
.lg-dots i:nth-child(13) { left: 92%; animation-delay: 8s; } .lg-dots i:nth-child(14) { left: 97%; animation-delay: 13s; }
@keyframes lgRise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .35; } 80% { opacity: .2; } 100% { transform: translateY(-105vh); opacity: 0; } }

/* top bar */
.lg-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; }
.lg-logo { height: 52px; width: auto; animation: lgIn .6s ease both; }
.lg-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lp); color: #fff; font-weight: 700; font-size: 20px; overflow: hidden; }
.lg-mark img { width: 100%; height: 100%; object-fit: cover; }
.lg-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--muted); }
.lg-clock b { font-size: 15px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* layout */
.lg-main { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 430px) 360px; justify-content: center; align-items: center; gap: 64px; padding: 8px 24px 26px; }
.lg-col { display: grid; gap: 22px; }

/* hero */
.lg-hero { animation: lgIn .6s .05s ease both; }
.lg-kicker { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lg-live { width: 8px; height: 8px; border-radius: 50%; background: #22b07d; box-shadow: 0 0 0 0 rgba(34, 176, 125, .5); animation: lgPing 2s infinite; }
@keyframes lgPing { 70% { box-shadow: 0 0 0 8px rgba(34, 176, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 176, 125, 0); } }
.lg-head { margin: 0; font-size: 30px; line-height: 1.45; font-weight: 700; min-height: 2.9em; }
.lg-head .ac { background: linear-gradient(90deg, var(--lo), #e0661b 40%, var(--lp)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-caret { display: inline-block; width: 3px; height: 1em; margin-inline-start: 4px; vertical-align: -3px; background: var(--lo); border-radius: 2px; animation: lgBlink 1s steps(1) infinite; }
@keyframes lgBlink { 50% { opacity: 0; } }
.lg-badges { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-badges li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: 30px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; backdrop-filter: blur(6px); }
.lg-badges li.on { opacity: 1; transform: none; }
.lg-badges li svg.lucide { width: 15px; height: 15px; color: var(--lp); }
.lg-badges li:nth-child(2) svg.lucide { color: var(--lo); }
.lg-badges li:nth-child(3) svg.lucide { color: var(--lt); }

/* card */
.lg-card { position: relative; overflow: hidden; background: rgba(255, 255, 255, .92); border: 1px solid #e3e6ef; border-radius: 20px; padding: 30px 28px 22px; box-shadow: 0 22px 60px rgba(31, 45, 110, .12); backdrop-filter: blur(10px); animation: lgIn .6s .12s ease both; }
.lg-card-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 85%) var(--my, 0%), rgba(82, 103, 219, .10), transparent 60%); transition: background .2s; }
.lg-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--lo), var(--lp), var(--lt), var(--lo)); background-size: 300% 100%; animation: lgSlide 8s linear infinite; }
@keyframes lgSlide { to { background-position: 300% 0; } }
.lg-card > * { position: relative; }
.lg-card h1 { margin: 0; font-size: 24px; font-weight: 700; }
.lg-sub { margin: 6px 0 18px; color: var(--muted); font-size: 13.5px; }
.lg-alert, .lg-note-ok { display: flex; gap: 8px; align-items: flex-start; border-radius: 11px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
.lg-alert { background: var(--danger-soft); color: #9b2d3f; border: 1px solid var(--danger-line); }
.lg-note-ok { background: var(--success-soft); color: #17694d; border: 1px solid var(--success-line); }
.lg-alert svg.lucide, .lg-note-ok svg.lucide { flex: 0 0 18px; margin-top: 2px; }
.lg-alert[hidden] { display: none; }
.lg-form { display: grid; gap: 8px; }
.lg-form label { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.lg-field { position: relative; display: flex; align-items: center; }
.lg-field > svg.lucide { position: absolute; right: 13px; color: #9aa0b4; pointer-events: none; transition: color .15s, transform .2s; }
.lg-field input { width: 100%; height: 50px; border: 1.5px solid #dfe3ee; border-radius: 13px; padding: 0 44px; font: inherit; font-size: 15.5px; background: #fbfcff; color: inherit; text-align: right; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-field input:focus { outline: 0; border-color: var(--lp); box-shadow: 0 0 0 4px rgba(82, 103, 219, .13); background: #fff; }
.lg-field:focus-within > svg.lucide { color: var(--lp); transform: scale(1.1); }
.lg-eye { position: absolute; left: 8px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: #7c8297; }
.lg-eye:hover { background: var(--primary-soft); color: var(--lp); }
.lg-caps { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warning); }
.lg-caps svg.lucide { width: 15px; height: 15px; }
.lg-caps[hidden] { display: none; }
.lg-submit { position: relative; overflow: hidden; margin-top: 14px; height: 52px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--lp), #3f50bd); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 24px rgba(82, 103, 219, .28); transition: transform .12s, box-shadow .2s, background .3s; }
.lg-submit::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); animation: lgShine 4.5s ease-in-out infinite; }
@keyframes lgShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.lg-submit svg.lucide { transition: transform .2s; }
.lg-submit:hover { box-shadow: 0 14px 30px rgba(82, 103, 219, .36); }
.lg-submit:hover svg.lucide { transform: translateX(-4px); }
.lg-submit:active { transform: scale(.985); }
.lg-submit:disabled { cursor: progress; opacity: .85; }
.lg-submit.is-ok { background: linear-gradient(135deg, #22b07d, #178a61); box-shadow: 0 10px 24px rgba(34, 176, 125, .3); }
.lg-secure { margin: 16px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted-2); font-size: 12px; }
.lg-secure svg.lucide { width: 14px; height: 14px; }

/* stage: screen + orbiting modules */
.lg-stage { position: relative; width: 360px; height: 400px; display: grid; place-items: center; animation: lgIn .7s .2s ease both; }
.lg-orbit { position: absolute; inset: 0; animation: lgSpin 40s linear infinite; }
.lg-o { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.lg-o > span { position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(31, 45, 110, .12); color: var(--lp); animation: lgSpin 40s linear infinite reverse; }
.lg-o > span svg.lucide { width: 20px; height: 20px; }
.lg-o.o1 { transform: rotate(0deg) translateY(-182px); }   .lg-o.o2 { transform: rotate(60deg) translateY(-182px); }
.lg-o.o3 { transform: rotate(120deg) translateY(-182px); } .lg-o.o4 { transform: rotate(180deg) translateY(-182px); }
.lg-o.o5 { transform: rotate(240deg) translateY(-182px); } .lg-o.o6 { transform: rotate(300deg) translateY(-182px); }
.lg-o.o2 > span { color: var(--lo); } .lg-o.o3 > span { color: var(--lt); }
.lg-o.o5 > span { color: var(--lo); } .lg-o.o6 > span { color: var(--lt); }
/* counter-rotate each tile by its slot so icons stay upright */
.lg-o.o2 > span { rotate: -60deg; } .lg-o.o3 > span { rotate: -120deg; } .lg-o.o4 > span { rotate: -180deg; } .lg-o.o5 > span { rotate: -240deg; } .lg-o.o6 > span { rotate: -300deg; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-orbit::before { content: ""; position: absolute; inset: 18px; border: 1.5px dashed rgba(82, 103, 219, .18); border-radius: 50%; }
.lg-stage[data-state="busy"] .lg-orbit, .lg-stage[data-state="busy"] .lg-o > span { animation-duration: 6s; }
.lg-stage[data-state="ok"] .lg-o > span { background: #ecfaf5; border-color: #bfe8d6; color: #1f9d72; }
.lg-stage[data-state="rejected"] .lg-o > span { background: #fff1f3; border-color: #f6d8de; color: #d25667; }

.lg-screen { position: relative; z-index: 1; width: 236px; height: 176px; border-radius: 14px; background: #1d2233; padding: 8px; box-shadow: 0 26px 50px rgba(31, 45, 110, .28); }
.lg-sbar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; color: #9aa3bf; font-size: 10.5px; font-variant-numeric: tabular-nums; direction: ltr; }
.lg-win { display: flex; gap: 4px; } .lg-win i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; } .lg-win i:nth-child(2) { background: #ffc94d; } .lg-win i:nth-child(3) { background: #3ed598; }
.lg-scr { position: relative; height: calc(100% - 22px); border-radius: 8px; background: #fff; overflow: hidden; }
.lg-stand { position: relative; z-index: 1; width: 70px; height: 22px; margin-top: -2px; background: linear-gradient(#c9cede, #b8bdcd); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.lg-stand::after { content: ""; position: absolute; left: -30px; right: -30px; bottom: -6px; height: 6px; border-radius: 6px; background: #b8bdcd; }
.lg-stage { grid-template-rows: auto auto; align-content: center; }
.lg-scr .st { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; }
.lg-scr .st small { font-size: 10.5px; color: var(--muted); }
.lg-scr .st b { font-size: 13.5px; }
.lg-scr[data-state="idle"] .st-idle, .lg-scr[data-state="typing"] .st-typing, .lg-scr[data-state="busy"] .st-busy,
.lg-scr[data-state="ok"] .st-ok, .lg-scr[data-state="rejected"] .st-rejected { display: flex; animation: lgPop .3s ease both; }
@keyframes lgPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.lg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; }
.lg-tiles span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border-radius: 7px; background: var(--surface-3); animation: lgTile 6s ease-in-out infinite; }
.lg-tiles span svg.lucide { width: 15px; height: 15px; color: var(--lp); }
.lg-tiles span small { font-size: 9px !important; color: var(--ink-2) !important; }
.lg-tiles .c2 { animation-delay: 1s; } .lg-tiles .c3 { animation-delay: 2s; } .lg-tiles .c4 { animation-delay: 3s; } .lg-tiles .c5 { animation-delay: 4s; } .lg-tiles .c6 { animation-delay: 5s; }
.lg-tiles .c2 svg.lucide, .lg-tiles .c5 svg.lucide { color: var(--lo); } .lg-tiles .c3 svg.lucide, .lg-tiles .c6 svg.lucide { color: var(--lt); }
@keyframes lgTile { 0%, 20%, 100% { background: var(--surface-3); transform: none; } 8% { background: var(--primary-soft); transform: translateY(-2px); } }
.lg-bars { display: flex; align-items: flex-end; gap: 4px; height: 20px; }
.lg-bars i { width: 6px; border-radius: 2px; background: linear-gradient(var(--lp), #8a99ee); animation: lgBar 1.8s ease-in-out infinite; }
.lg-bars i:nth-child(1) { height: 40%; } .lg-bars i:nth-child(2) { height: 70%; animation-delay: .2s; } .lg-bars i:nth-child(3) { height: 50%; animation-delay: .4s; }
.lg-bars i:nth-child(4) { height: 90%; animation-delay: .6s; background: linear-gradient(var(--lo), #f7b878); } .lg-bars i:nth-child(5) { height: 60%; animation-delay: .8s; }
.lg-bars i:nth-child(6) { height: 80%; animation-delay: 1s; } .lg-bars i:nth-child(7) { height: 45%; animation-delay: 1.2s; background: linear-gradient(var(--lt), #6fd3cf); }
@keyframes lgBar { 50% { transform: scaleY(.55); } }
.lg-bars i { transform-origin: bottom; }

.lg-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lp), var(--lt)); color: #fff; font-weight: 700; font-size: 17px; }
.st-typing b { direction: ltr; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-pw { min-height: 14px; letter-spacing: 3px; color: var(--lp); font-size: 14px; }

.lg-ring { position: relative; width: 44px; height: 44px; }
.lg-ring em { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--lp); animation: lgSpin 1s linear infinite; }
.lg-ring em:nth-child(2) { inset: 6px; border-top-color: var(--lo); animation-duration: 1.4s; animation-direction: reverse; }
.lg-ring em:nth-child(3) { inset: 12px; border-top-color: var(--lt); animation-duration: .8s; }
.lg-steps { display: flex; gap: 5px; }
.lg-steps s { width: 22px; height: 4px; border-radius: 3px; background: #e4e7f0; transition: background .3s; }
.lg-steps s.on { background: var(--lp); }
.lg-steps.bad s.on { background: var(--danger); }
.lg-ok, .lg-bad { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; animation: lgBounce .5s ease both; }
.lg-ok { background: #22b07d; box-shadow: 0 0 0 8px rgba(34, 176, 125, .15); }
.lg-bad { background: #d25667; box-shadow: 0 0 0 8px rgba(210, 86, 103, .14); }
.lg-ok svg.lucide, .lg-bad svg.lucide { width: 24px; height: 24px; stroke-width: 3; }
@keyframes lgBounce { 0% { transform: scale(.3); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.lg-toast { position: absolute; z-index: 2; bottom: 70px; left: -6px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid #bfe8d6; color: #17694d; font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 26px rgba(31, 45, 110, .14); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.lg-stage[data-state="ok"] .lg-toast { opacity: 1; transform: none; }
.lg-toast svg.lucide { color: #22b07d; }

/* marquee of modules */
.lg-mq { position: relative; z-index: 1; width: 100%; min-width: 0; overflow: hidden; padding: 10px 0; border-top: 1px solid rgba(227, 230, 239, .8); background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lg-mqt { display: flex; gap: 10px; width: max-content; animation: lgMq 50s linear infinite; }
.lg-mq:hover .lg-mqt { animation-play-state: paused; }
@keyframes lgMq { to { transform: translateX(50%); } }
.lg-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.lg-chip svg.lucide { width: 16px; height: 16px; color: var(--lp); }
.lg-chip:nth-child(3n+2) svg.lucide { color: var(--lo); }
.lg-chip:nth-child(3n) svg.lucide { color: var(--lt); }
.lg-foot { position: relative; z-index: 1; text-align: center; font-size: 11.5px; color: var(--muted-2); padding: 10px 16px 14px; }

.lg-shake { animation: lgShake .45s ease; }
@keyframes lgShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes lgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .lg-main { grid-template-columns: minmax(0, 460px); gap: 0; }
  .lg-stage { display: none; }
}
@media (max-width: 560px) {
  .lg-top { padding: 14px 16px; }
  .lg-logo { height: 40px; }
  .lg-main { padding: 4px 16px 20px; }
  .lg-head { font-size: 23px; }
  .lg-card { padding: 24px 18px 18px; border-radius: 18px; }
  .lg-col { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg *, .lg *::before, .lg *::after { animation: none !important; transition: none !important; }
  .lg-badges li { opacity: 1; transform: none; }
}
