/* ============================================================
   صفحة الدخول: ترحيب بالشعار، نموذج الدخول، رسالة المديرة العامة، تعريف قصير بالمنصة
   الألوان من متغيرات theme.css (الكحلي والبنفسجي والكريمي)
   ============================================================ */
body:has(.lp) main > h1 { display:none; }
body:has(.lp) header { box-shadow:none; }
body:has(.lp) main { max-width:none; padding:0 0 32px; }

/* الترحيب: امتداد للشريط العلوي بنقش هندسي خفيف (نجوم ثمانية) */
.lp-hero { position:relative; overflow:hidden; text-align:center; color:#fff; padding:30px 18px 96px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M28 8l6 14 14 6-14 6-6 14-6-14-14-6 14-6z'/%3E%3Crect x='19' y='19' width='18' height='18' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius:0 0 36px 36px; }
.lp-hero::after { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:rgba(242,140,40,.16); left:-120px; bottom:-200px; pointer-events:none; }
.lp-hero > * { position:relative; z-index:1; }
/* الشعار المتحرك: دخلة ناعمة + أشعة شمس تدور ببطء + توهج ذهبي + لمعة تمر كل بضع ثوانٍ */
.lp-emblem { position:relative; width:110px; height:110px; margin:0 auto 14px; animation:lpIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
.lp-rays { position:absolute; inset:-38%; border-radius:50%; pointer-events:none;
  background:repeating-conic-gradient(from 0deg, rgba(255,210,110,.30) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask:radial-gradient(circle closest-side, transparent 56%, #000 64%, transparent 100%);
          mask:radial-gradient(circle closest-side, transparent 56%, #000 64%, transparent 100%);
  animation:lpSpin 45s linear infinite, lpFade 1.6s .5s both; }
.lp-disc { position:relative; width:100%; height:100%; border-radius:50%; overflow:hidden;
  background:rgba(255,255,255,.72); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.5); box-shadow:0 8px 22px rgba(0,0,0,.18);
  animation:lpGlow 4s ease-in-out 1.2s infinite; }
.lp-logo { width:100%; height:100%; box-sizing:border-box; object-fit:contain; padding:8px; display:block; }
.lp-shine { position:absolute; top:-25%; bottom:-25%; left:-70%; width:45%; transform:skewX(-20deg); pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent); animation:lpShine 5s ease-in-out 1.6s infinite; }
@keyframes lpIn { from { opacity:0; transform:scale(.55); } to { opacity:1; transform:none; } }
@keyframes lpSpin { to { transform:rotate(360deg); } }
@keyframes lpFade { from { opacity:0; } to { opacity:1; } }
@keyframes lpGlow { 0%,100% { box-shadow:0 8px 22px rgba(0,0,0,.18), 0 0 0 0 rgba(255,196,70,0); }
  50% { box-shadow:0 8px 22px rgba(0,0,0,.18), 0 0 28px 8px rgba(255,196,70,.5); } }
@keyframes lpShine { 0% { left:-70%; } 30%,100% { left:140%; } }
@media (prefers-reduced-motion:reduce) { .lp-emblem, .lp-rays, .lp-disc, .lp-shine { animation:none; } .lp-shine { display:none; } }
.lp-hero h2 { margin:0; font-size:23px; font-weight:800; color:#fff; line-height:1.35; }
.lp-hero .lp-sub { margin:6px 0 0; font-size:15px; opacity:.86; }
.lp-orn { display:flex; align-items:center; justify-content:center; gap:10px; margin:14px auto 0; color:var(--orange); }
.lp-orn::before, .lp-orn::after { content:""; width:56px; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.55)); }
.lp-orn::after { transform:scaleX(-1); }
.lp-orn svg { width:16px; height:16px; }

.lp-wrap { max-width:1040px; margin:0 auto; padding:0 16px; }
.lp-main { display:grid; gap:18px; margin-top:-70px; position:relative; z-index:2; }

/* النموذج */
.lp .login { margin:0 auto; width:100%; max-width:420px; box-sizing:border-box; padding:24px 22px 22px; border:1px solid var(--line); }
.lp .login .lp-ftitle { margin:0 0 14px; font-size:20px; font-weight:800; color:var(--accent); text-align:center; }
.lp .login label { display:block; margin-bottom:10px; }
.lp .login input { width:100%; box-sizing:border-box; padding:12px 14px; font-size:16px; }
.lp .login button { font-size:17px; border-radius:14px; }

/* رسالة المديرة */
.lp-quote { position:relative; margin:0; background:var(--card); border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow);
  padding:30px 22px 20px; border-inline-start:5px solid var(--orange); }
.lp-quote .lp-qmark { position:absolute; top:-18px; inset-inline-start:18px; width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent-2), var(--accent)); color:#fff; display:grid; place-items:center; box-shadow:0 6px 14px rgba(39,48,107,.25); }
.lp-quote .lp-qmark svg { width:20px; height:20px; }
.lp-quote h3 { margin:0 0 8px; font-size:16px; color:var(--accent); font-weight:800; }
.lp-quote blockquote { margin:0; font-size:16px; line-height:1.95; color:#3a3f5c; }
.lp-quote blockquote p { margin:0 0 8px; }
.lp-quote figcaption { margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); display:flex; align-items:center; gap:10px; }
.lp-quote figcaption b { display:block; color:var(--ink); font-size:16px; }
.lp-quote figcaption span { color:var(--muted); font-size:14px; }
.lp-quote figcaption .lp-sig { width:40px; height:40px; border-radius:50%; background:var(--orange-soft); color:#c26a12; display:grid; place-items:center; flex:none; }
.lp-quote figcaption .lp-sig svg { width:20px; height:20px; }

/* تعريف بالمنصة */
.lp-about { margin-top:30px; text-align:center; }
.lp-about h3 { margin:0; font-size:19px; font-weight:800; color:var(--ink); }
.lp-about > p { margin:6px auto 16px; max-width:640px; color:var(--muted); font-size:15px; }
.lp-feats { display:grid; grid-template-columns:1fr 1fr; gap:12px; text-align:start; }
.lp-feat { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:14px; box-shadow:var(--shadow); }
.lp-feat .ic { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; margin-bottom:8px; }
.lp-feat .ic svg { width:22px; height:22px; }
.lp-feat b { display:block; font-size:15px; color:var(--ink); }
.lp-feat span { display:block; font-size:13px; color:var(--muted); line-height:1.6; margin-top:2px; }
.lp-foot { margin-top:22px; text-align:center; color:var(--muted); font-size:13px; }

@media (min-width:860px) {
  .lp-hero { padding:40px 24px 120px; }
  .lp-emblem { width:128px; height:128px; }
  .lp-hero h2 { font-size:32px; }
  .lp-hero .lp-sub { font-size:17px; }
  .lp-main { grid-template-columns:minmax(340px, 420px) 1fr; align-items:start; gap:24px; margin-top:-86px; }
  .lp .login { margin:0; }
  .lp-quote { padding:34px 30px 22px; }
  .lp-quote blockquote { font-size:17px; }
  .lp-feats { grid-template-columns:repeat(4, 1fr); gap:16px; }
  .lp-feat { padding:18px; }
}
@media (max-width:380px) { .lp-hero h2 { font-size:22px; } .lp-feats { grid-template-columns:1fr; } }

/* إظهار كلمة المرور + حفظ هذا الجهاز */
.lp .login .lp-pw { position:relative; display:block; margin-top:6px; }
.lp .login .lp-pw input { padding-inline-start:48px; margin:0; }
.lp .login .lp-eye { position:absolute; inset-inline-start:6px; top:0; bottom:0; margin:auto 0; transform:none; width:38px; height:38px; padding:0; border:0; border-radius:10px; background:transparent; box-shadow:none; font-size:20px; line-height:1; cursor:pointer; color:inherit; }
.lp .login .lp-eye:hover { background:rgba(43,49,104,.07); }
.lp .login .lp-remember { display:flex; align-items:center; gap:8px; margin:4px 0 14px; font-size:15px; cursor:pointer; flex-wrap:wrap; }
.lp .login .lp-remember input { width:20px; height:20px; padding:0; margin:0; accent-color:var(--accent, #2b3168); }
.lp .login .lp-remember small { color:#888; font-size:12px; }
.lp .login .lp-eye:active, .lp .login .lp-eye:hover { transform:none; box-shadow:none; }
.lp .login .lp-eye { display:flex; align-items:center; justify-content:center; }
