/* Header "دخول" popup: the same login box as /sawa/login.php, on every page (self-contained, "lp-" classes). */
.lp-overlay {
    position: fixed; inset: 0; z-index: 100000; display: none;
    align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
    background: rgba(2, 6, 23, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    font-family: 'Cairo', sans-serif; direction: rtl;
}
.lp-overlay.show { display: flex; animation: lp-fade .18s ease; }
@keyframes lp-fade { from { opacity: 0; } }
.lp-card {
    position: relative; width: 100%; max-width: 440px; margin: auto;
    background: rgba(15, 23, 42, .97); border: 1px solid rgba(51, 65, 85, .5); border-radius: 20px;
    padding: 36px 32px; display: flex; flex-direction: column; gap: 22px; color: #f8fafc; text-align: right;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .55); animation: lp-pop .2s ease;
}
@keyframes lp-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.lp-card * { box-sizing: border-box; font-family: inherit; }
.lp-close {
    position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(148, 163, 184, .15); color: #cbd5e1; font-size: 16px; line-height: 1; transition: background .2s, color .2s;
}
.lp-close:hover { background: rgba(239, 68, 68, .25); color: #fff; }
.lp-title {
    margin: 0; font-size: 26px; font-weight: 900; line-height: 1.4;
    background: linear-gradient(135deg, #ea580c, #f97316); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lp-sub { margin: -14px 0 0; color: #94a3b8; font-size: 14px; }
.lp-tagline {
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 14px; text-align: center;
    background: linear-gradient(#111a2d, #111a2d) padding-box, linear-gradient(90deg, rgba(249, 115, 22, .75), rgba(99, 102, 241, .6)) border-box;
    border: 1.5px solid transparent; box-shadow: 0 8px 22px rgba(234, 88, 12, .15);
}
.lp-tagline-text {
    font-size: 17px; font-weight: 800; line-height: 1.6;
    background: linear-gradient(90deg, #fdba74, #f97316 45%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-tagline-icon { font-size: 22px; animation: lp-bob 2.4s ease-in-out infinite; }
.lp-tagline-icon:last-child { animation-delay: 1.2s; }
@keyframes lp-bob { 50% { transform: translateY(-3px); } }
.lp-error {
    display: none; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.5;
    background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5;
}
.lp-error.show { display: block; }
.lp-group { display: flex; flex-direction: column; gap: 7px; }
.lp-label { font-size: 13px; font-weight: 700; color: #cbd5e1; }
.lp-input {
    width: 100%; background: rgba(15, 23, 42, .8); border: 1.5px solid rgba(51, 65, 85, .5); border-radius: 10px;
    padding: 12px 14px; font-size: 16px; color: #f8fafc; outline: none; transition: border-color .2s, box-shadow .2s;
}
.lp-input:focus { border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234, 88, 12, .15); }
.lp-input::placeholder { color: #64748b; }
.lp-submit {
    width: 100%; border: 0; border-radius: 10px; cursor: pointer; padding: 13px 28px; font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 6px 22px rgba(234, 88, 12, .35);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s, box-shadow .18s, opacity .18s;
}
.lp-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(234, 88, 12, .35); }
.lp-submit:disabled { opacity: .7; cursor: default; transform: none; }
.lp-spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lp-rot .8s linear infinite; }
@keyframes lp-rot { to { transform: rotate(360deg); } }
.lp-foot { margin: 0; text-align: center; font-size: 13px; color: #94a3b8; }
.lp-foot a { color: #f97316; font-weight: 700; text-decoration: none; }
.lp-foot a:hover { text-decoration: underline; }
body.lp-open { overflow: hidden; }
@media (max-width: 600px) {
    .lp-card { padding: 26px 18px; }
    .lp-tagline { padding: 10px 12px; gap: 8px; }
    .lp-tagline-text { font-size: 15px; }
    .lp-tagline-icon { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .lp-tagline-icon, .lp-overlay.show, .lp-card { animation: none; } }
