/* X ERP — هوية جمعية البر والتقوى المصرية (owner 2026-10-26: «حدث تصميم السيستم مع التصميم الجديد»).
   The same identity as the new albirwaltakwa.com: deep green #0f3d24 + orange #d35f13, Alexandria for titles and
   IBM Plex Sans Arabic for text, the logo without its white disc, the cover photo on the sign-in page.
   Loaded after launcher.css; the user's «مظهر التطبيق» colours still drive surfaces and text (theme-boot.js). */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --brand: #0f3d24; --brand-d: #0b2417; --brand-m: #1f6b3a; --brand-leaf: #a9e08a; --brand-mist: #c9d9cd;
  --brand-or: #d35f13; --brand-or-d: #b94f0c; --brand-paper: #f6f6f2;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --bar: var(--brand);
}
html[data-mode="dark"] { --bar: #0d2418; }

/* ---------- type ---------- */
html[data-theme="launcher"] body, body.login-page { font-family: var(--font-body); }
html[data-theme="launcher"] .pagehead h1, html[data-theme="launcher"] .sys-h h2, html[data-theme="launcher"] .section-title,
html[data-theme="launcher"] .ent-title, html[data-theme="launcher"] .card .hd, html[data-theme="launcher"] .modal .mh,
html[data-theme="launcher"] .kpi .val, html[data-theme="launcher"] .lx-nm, html[data-theme="launcher"] .sys-app h3,
html[data-theme="launcher"] .lx-sub .lx-app b, html[data-theme="launcher"] .th-card b { font-family: var(--font-display); letter-spacing: 0; }
html[data-theme="launcher"] .pagehead h1 { font-weight: 700; font-size: 23px; }
html[data-theme="launcher"] .kpi .val { font-weight: 700; }
html[data-theme="launcher"] .sw-field > .sw-label { line-height: 1.7; }

/* ---------- top bar: the association's green, like the website header ---------- */
html[data-theme="launcher"] .appbar { background: var(--bar); color: #fff; border-bottom: 0; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(11,36,23,.18); }
html[data-theme="launcher"] .appbar .brand img { width: 40px; height: 40px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
html[data-theme="launcher"] .appbar .brand span:first-of-type { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .3px; }
html[data-theme="launcher"] .appbar .brand small { color: var(--brand-mist); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
html[data-theme="launcher"] .appbar .brand .sep { color: rgba(255,255,255,.28); }
html[data-theme="launcher"] .appbar .waffle { color: #fff; }
html[data-theme="launcher"] .appbar .waffle:hover { background: rgba(255,255,255,.1); }
html[data-theme="launcher"] .appbar .theme-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
html[data-theme="launcher"] .appbar .theme-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
html[data-theme="launcher"] .appbar .notif-btn .cnt { background: var(--brand-or); color: #fff; border-color: var(--bar); }
html[data-theme="launcher"] .appbar .user .av { background: var(--brand-or); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
html[data-theme="launcher"] .appbar select, html[data-theme="launcher"] .appbar .br-pick, html[data-theme="launcher"] .appbar .branch {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
html[data-theme="launcher"] .appbar select option { color: #111; }
html[data-theme="launcher"] .appbar .user .av:focus-visible, html[data-theme="launcher"] .appbar .theme-btn:focus-visible { outline-color: var(--brand-leaf); }

/* app bar of the current app: an orange underline on the open screen, like the site's links */
.lx-sub .lx-tabs a.on, .lx-sub .xm-m.on, .lx-sub .xm-a.on { box-shadow: inset 0 -2px 0 var(--brand-or); }
.lx-sub .lx-app b { font-weight: 600; }

/* ---------- buttons ---------- */
html[data-theme="launcher"] .btn { font-weight: 600; }
html[data-theme="launcher"] .btn.cta, html[data-theme="launcher"] .cmdbar .btn.cta { background: var(--brand-or); border-color: var(--brand-or); color: #fff; }
html[data-theme="launcher"] .btn.cta:hover { background: var(--brand-or-d); }

/* ---------- home: welcome band + app tiles ---------- */
body.lx-on-home { background-image: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--brand-m) 9%, transparent), transparent 46%), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: auto, 34px 34px, 34px 34px; }
.lx-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; min-height: 176px; margin: 0 0 34px; padding: 26px 34px; border-radius: 22px; color: #fff;
  background: linear-gradient(90deg, rgba(11,36,23,.96) 0%, rgba(15,61,36,.9) 46%, rgba(15,61,36,.35) 100%), url('/img/cover-hero.jpg') 0% 32% / cover no-repeat, var(--brand);
  box-shadow: 0 24px 50px -28px rgba(11,36,23,.7); }
.lx-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 60%); pointer-events: none; }
.lx-hero .hi { position: relative; z-index: 1; flex: 1; min-width: 0; }
.lx-hero small { display: block; color: var(--brand-leaf); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.lx-hero h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: #fff; }
.lx-hero p { margin: 0; color: var(--brand-mist); font-size: 14.5px; }
.lx-hero .lx-search { position: relative; z-index: 1; margin: 16px 0 0; width: min(520px, 100%); height: 50px; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lx-hero .lx-search svg { color: var(--brand-m); }
.lx-home { max-width: 1080px; padding-top: 26px; }
.lx-grid { gap: 34px 18px; perspective: 1200px; }
.lx-ic { border-radius: 24px; box-shadow: 0 12px 24px var(--sh), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -10px 18px rgba(0,0,0,.08); }
.lx-tile { transition: transform .25s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.lx-tile:hover { transform: translateY(-4px) rotateX(8deg); }
.lx-tile:hover .lx-ic { transform: translateZ(18px); box-shadow: 0 18px 34px var(--sh), inset 0 1px 0 rgba(255,255,255,.3); }
.lx-tile:hover .lx-nm { color: var(--brand-m); }
html[data-mode="dark"] .lx-tile:hover .lx-nm { color: var(--brand-leaf); }
.lx-badge { background: var(--brand-or); color: #fff; }
@media (max-width: 560px) {
  .lx-hero { padding: 20px; min-height: 0; border-radius: 18px; background: linear-gradient(180deg, rgba(11,36,23,.92), rgba(15,61,36,.86)), url('/img/cover-hero.jpg') 80% 30% / cover no-repeat; }
  .lx-hero .lx-search { height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .lx-tile, .lx-tile:hover { transition: none; transform: none; } }

/* ---------- sign-in: the cover photo with the green veil, the form on paper ---------- */
body.login-page { background: var(--brand-paper); grid-template-columns: 1.15fr 1fr; }
body.login-page .login-brand { background: linear-gradient(180deg, rgba(11,36,23,.12) 0%, rgba(11,36,23,.5) 42%, rgba(11,36,23,.9) 66%, rgba(11,36,23,.97) 100%), url('/img/cover-hero.jpg') 78% 18% / auto 125% no-repeat, var(--brand); justify-content: flex-end; align-items: flex-start; padding: 48px 56px; gap: 10px; }
body.login-page .login-brand .orbs { display: none; }
body.login-page .login-brand .tag { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; color: #fff; margin: 0; animation: brandIn 1s ease-out both; }
body.login-page .login-brand .tag-sub { position: relative; color: var(--brand-mist); font-size: 16px; max-width: 460px; margin: 4px 0 18px; animation: brandIn 1s ease-out .2s both; }
body.login-page .login-brand .stats { position: relative; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; animation: brandIn 1s ease-out .35s both; }
body.login-page .login-brand .stats div { padding-inline-end: 26px; margin-inline-end: 26px; border-inline-end: 1px solid rgba(255,255,255,.16); }
body.login-page .login-brand .stats div:last-child { border: 0; margin: 0; padding: 0; }
body.login-page .login-brand .stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #fff; }
body.login-page .login-brand .stats span { font-size: 12.5px; color: var(--brand-mist); }
body.login-page .login-brand .ysn { position: absolute; top: 26px; inset-inline-start: 30px; width: 120px; aspect-ratio: 2/1; opacity: .85; filter: none; }
body.login-page .login-brand .brand-foot { position: absolute; top: 34px; bottom: auto; inset-inline-end: 34px; font-size: 12px; opacity: .8; color: #fff; }
body.login-page .login { border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(11,36,23,.35), 0 0 0 1px rgba(15,61,36,.06); padding: 40px 38px 32px; max-width: 430px; }
body.login-page .login img { width: 92px; height: auto; filter: drop-shadow(0 6px 14px rgba(15,61,36,.25)); }
body.login-page .login h1 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--brand); margin: 14px 0 2px; }
body.login-page .login p { font-family: var(--font-display); color: var(--brand-m); font-weight: 600; font-size: 14.5px; }
body.login-page .login .field label { font-weight: 600; color: var(--ink, #3d4a40); }
body.login-page .login input { border-radius: 10px; min-height: 44px; border: 1px solid #cfd6cc; background: #fff; padding: 0 14px; }
body.login-page .login input:focus { border-color: var(--brand-m); box-shadow: 0 0 0 3px rgba(31,107,58,.18); outline: none; }
body.login-page .login .btn.primary { background: var(--brand-or); border-color: var(--brand-or); color: #fff; min-height: 48px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
body.login-page .login .btn.primary:hover { background: var(--brand-or-d); }
body.login-page .login .err { border-radius: 10px; }
@media (max-width: 900px) {
  body.login-page { grid-template-columns: 1fr; }
  body.login-page .login-brand { min-height: 260px; padding: 26px 22px; }
  body.login-page .login-brand .stats, body.login-page .login-brand .brand-foot { display: none; }
  body.login-page .login-brand .tag { font-size: 40px; }
}
