/* Mawared — sign-in page. Logical properties only (RTL/LTR). */
.lg-body {
  min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(1200px 600px at 85% -10%, #4B3FC2 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #3A2E9E 0%, transparent 55%),
              linear-gradient(160deg, #1B1446 0%, #241A63 55%, #160F3A 100%);
  overflow-x: hidden; position: relative;
}
/* floating HR icons + soft orbs in the background */
.lg-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lg-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: lgOrb 18s ease-in-out infinite alternate; }
.lg-bg .orb.o1 { width: 420px; height: 420px; background: #6D5CF0; top: -120px; inset-inline-end: 8%; }
.lg-bg .orb.o2 { width: 360px; height: 360px; background: #3B82F6; bottom: -140px; inset-inline-start: 5%; animation-delay: -6s; opacity: .25; }
.lg-bg .fi { position: absolute; color: #fff; opacity: .09; animation: lgFloat 14s ease-in-out infinite; }
.lg-bg .fi svg { width: 100%; height: 100%; }
.lg-bg .dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes lgFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes lgOrb { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,40px) scale(1.15); } }

/* card */
.lg-card {
  position: relative; z-index: 1; width: 100%; max-width: 1180px; min-height: 640px;
  display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 30px; overflow: hidden;
  background: #fff; box-shadow: 0 40px 120px rgba(8, 4, 40, .55), 0 0 0 1px rgba(255,255,255,.06);
  animation: lgUp .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes lgUp { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }

/* brand pane */
.lg-brand {
  position: relative; overflow: hidden; color: #fff; padding: 48px 52px;
  background: linear-gradient(150deg, #5B4FD4 0%, #4A3FC0 45%, #2E237F 100%);
  display: flex; flex-direction: column; gap: 26px;
}
.lg-brand::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  top: -180px; inset-inline-start: -160px; }
.lg-brand::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.05);
  bottom: -120px; inset-inline-end: -80px; }
.lg-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 99px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); }
.lg-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: lgPulse 2s infinite; }
@keyframes lgPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.lg-headline { font-size: 38px; line-height: 1.3; font-weight: 800; margin: 0; letter-spacing: -.2px; position: relative; z-index: 1; }
.lg-headline .accent { background: linear-gradient(90deg, #A5F3FC, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-sub { margin: -10px 0 0; color: rgba(255,255,255,.78); font-size: 15px; max-width: 460px; position: relative; z-index: 1; }

.lg-features { display: grid; gap: 12px; position: relative; z-index: 1; }
.lg-feature { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px);
  opacity: 0; animation: lgSlide .6s cubic-bezier(.2,.8,.2,1) forwards; transition: background .2s, transform .2s; }
.lg-feature:hover { background: rgba(255,255,255,.12); transform: translateX(calc(var(--dir, 1) * -4px)); }
.lg-feature:nth-child(1) { animation-delay: .25s; } .lg-feature:nth-child(2) { animation-delay: .35s; }
.lg-feature:nth-child(3) { animation-delay: .45s; } .lg-feature:nth-child(4) { animation-delay: .55s; }
.lg-feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,.16); }
.lg-feature .ico svg { width: 22px; height: 22px; }
.lg-feature b { display: block; font-size: 15px; }
.lg-feature small { color: rgba(255,255,255,.72); font-size: 12.5px; }
@keyframes lgSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* animated notification chips */
.lg-chips { position: relative; height: 54px; margin-top: auto; z-index: 1; }
.lg-chip { position: absolute; inset-inline-start: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  border-radius: 14px; background: #fff; color: #1F2340; font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 34px rgba(10,6,50,.35);
  opacity: 0; animation: lgChip 9s infinite; }
.lg-chip .c-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.lg-chip .c-ico svg { width: 17px; height: 17px; }
.lg-chip:nth-child(1) .c-ico { background: #E3F6EC; color: #1F9D63; }
.lg-chip:nth-child(2) { animation-delay: 3s; } .lg-chip:nth-child(2) .c-ico { background: #EEECFC; color: #5B4FD4; }
.lg-chip:nth-child(3) { animation-delay: 6s; } .lg-chip:nth-child(3) .c-ico { background: #E3EEFD; color: #1E6FE0; }
.lg-chip small { display: block; color: #6B7280; font-weight: 500; font-size: 11.5px; }
@keyframes lgChip { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* form pane */
.lg-form { padding: 34px 56px 30px; display: flex; flex-direction: column; background: #fff; }
.lg-top { display: flex; justify-content: flex-end; }
.lg-lang { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 12px; background: #F3F2FC; color: #4A3FC0;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s; }
.lg-lang:hover { background: #E6E3FA; color: #4A3FC0; }
.lg-lang svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lg-logo { display: flex; justify-content: center; margin: 14px 0 26px; }
.logo-full { display: inline-flex; align-items: center; gap: 14px; }
.logo-words b { display: block; font-size: 34px; font-weight: 800; line-height: 1.05; color: #1F2340; letter-spacing: -.3px; }
.logo-words small { display: block; font-size: 13px; color: #6B7280; font-weight: 600; margin-top: 4px; letter-spacing: .2px; }
.logo-light .logo-words b { color: #fff; } .logo-light .logo-words small { color: rgba(255,255,255,.75); }
.lg-logo .logo-mark { filter: drop-shadow(0 12px 22px rgba(91,79,212,.35)); animation: lgLogo 5s ease-in-out infinite; }
@keyframes lgLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.lg-form h1 { font-size: 28px; margin: 0 0 6px; color: #1F2340; }
.lg-form .lead { color: #6B7280; margin: 0 0 24px; }
.lg-field { margin-bottom: 18px; }
.lg-field label { display: block; font-weight: 700; font-size: 14px; color: #2B2F52; margin-bottom: 8px; }
.lg-input { position: relative; }
.lg-input input { width: 100%; box-sizing: border-box; height: 56px; border-radius: 14px; border: 1.5px solid #E2E1EF; background: #F8F8FC;
  padding-inline: 48px 48px; font: inherit; font-size: 15px; color: #1F2340; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-input input:focus { outline: none; border-color: #5B4FD4; background: #fff; box-shadow: 0 0 0 4px rgba(91,79,212,.14); }
.lg-input .lead-ico { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8B8FAD; pointer-events: none; }
.lg-input input:focus ~ .lead-ico { color: #5B4FD4; }
.lg-eye { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: #8B8FAD; cursor: pointer; display: grid; place-items: center; }
.lg-eye:hover { background: #EEECFC; color: #5B4FD4; }
.lg-eye svg { width: 19px; height: 19px; }
.lg-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 24px; gap: 10px; flex-wrap: wrap; }
.lg-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; color: #2B2F52; }
.lg-check input { width: 19px; height: 19px; accent-color: #5B4FD4; }
.lg-link { color: #5B4FD4; font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.lg-link:hover { text-decoration: underline; }
.lg-hint { display: none; margin: -12px 0 20px; padding: 12px 14px; border-radius: 12px; background: #F3F2FC; color: #4A3FC0; font-size: 13.5px; }
.lg-hint.show { display: block; animation: lgSlide .3s ease; }
.lg-submit { position: relative; width: 100%; height: 58px; border: 0; border-radius: 16px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #6D5CF0, #4A3FC0); color: #fff; font: inherit; font-size: 17px; font-weight: 700;
  box-shadow: 0 16px 34px rgba(91,79,212,.38); transition: transform .15s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 20px 40px rgba(91,79,212,.45); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit::after { content: ""; position: absolute; top: 0; inset-inline-start: -60%; width: 40%; height: 100%;
  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% { inset-inline-start: -60%; } 100% { inset-inline-start: 130%; } }
.lg-submit svg { width: 20px; height: 20px; }
.lg-submit .spin { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lgSpin .8s linear infinite; }
.lg-submit.loading .spin { display: inline-block; } .lg-submit.loading .arrow { display: none; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-error { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #FDECEC; color: #A12F2F; font-weight: 600; margin-bottom: 18px; animation: lgShake .45s; }
.lg-error svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes lgShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.lg-foot { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #8B8FAD; font-size: 13px; }
.lg-foot span { display: inline-flex; align-items: center; gap: 6px; }
.lg-foot svg { width: 15px; height: 15px; }
.lg-foot a { color: #5B4FD4; font-weight: 600; text-decoration: none; }
.lg-inner { width: 100%; max-width: 420px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 980px) {
  .lg-card { grid-template-columns: 1fr; max-width: 520px; min-height: 0; }
  .lg-brand { display: none; }
  .lg-form { padding: 26px 26px 22px; }
  .lg-body { padding: 20px 14px; }
}
@media (max-width: 420px) { .logo-words b { font-size: 28px; } .lg-form h1 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lg-feature, .lg-chip:first-child { opacity: 1 !important; }
}
/* form first: on the right in Arabic, on the left in English */
.lg-form { order: -1; }

/* link styled as the main button (System update page): keep white text on hover */
a.lg-submit, a.lg-submit:hover, a.lg-submit:focus, a.lg-submit:visited { color: #fff; text-decoration: none; }
a.lg-submit:hover { filter: brightness(1.08); }
