/* Sign-in page (admin · insurer portal · repair centres) — one layout, each platform's own identity. RTL first. */
.lg-tj {
  --ink: #0F1E3D;
  --mut: #5D6A85;
  --line: #DCE3EE;
  --p: #2457A6;
  --p2: #1B4590;
  --ring: rgba(36, 87, 166, .18);
  --grad: linear-gradient(155deg, #0E2149 0%, #163A7C 48%, #2C68B9 100%);
  --btn: linear-gradient(135deg, #2A62B8, #1B4590);
  --accent: #8EC0F2;
}
.lg-px {
  --ink: #0B1B47;
  --mut: #56638A;
  --line: #DAE2F2;
  --p: #1B5BF5;
  --p2: #1247C9;
  --ring: rgba(27, 91, 245, .18);
  --grad: linear-gradient(150deg, #0A1E66 0%, #1543C9 52%, #179FE3 100%);
  --btn: linear-gradient(135deg, #1B5BF5, #1497E6);
  --accent: #7FE6FA;
}

.lg {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  background: #F6F8FC;
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
.lg-main svg, .lg-pitch svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the form side */
.lg-main { display: flex; flex-direction: column; min-height: 100vh; padding: 32px 24px 20px; background: #fff; }
.lg-col { width: 100%; max-width: 400px; margin: auto; padding: 24px 0; }

.lg-id { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.lg-id-mark { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.lg-px .lg-id-mark { object-fit: cover; }
.lg-id b { display: block; font-family: "Noto Kufi Arabic", sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.lg-id small { display: block; font-family: Montserrat, sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.lg-id small.ar { font-family: inherit; font-size: .78rem; letter-spacing: 0; text-transform: none; }

.lg h1 { font-family: "Noto Kufi Arabic", sans-serif; font-size: 1.85rem; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.lg-sub { color: var(--mut); margin: 0 0 28px; font-size: .98rem; }
.lg-sub b { color: var(--ink); font-weight: 600; }

.lg-alert:empty, .lg-alert.validation-summary-valid { display: none; }
.lg-alert { background: #FDECEC; border: 1px solid #F6C9C9; color: #A3222A; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-size: .9rem; }
.lg-alert ul { margin: 0; padding: 0; list-style: none; }

.lg-field { margin-bottom: 18px; }
.lg-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > svg { position: absolute; inset-inline-start: 14px; width: 20px; height: 20px; color: #8A97B2; pointer-events: none; transition: color .15s; }
.lg-input input {
  width: 100%; height: 52px; padding: 0 46px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #FBFCFE; color: var(--ink); font: inherit; font-size: 1rem; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.lg-input input::placeholder { color: #A9B3C7; }
.lg-input input:hover { border-color: #C5CFDF; }
.lg-input input:focus { border-color: var(--p); background: #fff; box-shadow: 0 0 0 4px var(--ring); }
.lg-input:focus-within > svg { color: var(--p); }
.lg-input input.input-validation-error { border-color: #D9434C; }
.lg-input input[dir="ltr"] { text-align: right; }
.lg-input input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.lg-eye {
  position: absolute; inset-inline-end: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: #8A97B2; display: grid; place-items: center; cursor: pointer;
}
.lg-eye svg { width: 20px; height: 20px; }
.lg-eye:hover, .lg-eye[aria-pressed="true"] { color: var(--p); background: rgba(0, 0, 0, .04); }
.lg-eye:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
.lg-err { display: block; color: #C2323B; font-size: .82rem; margin-top: 6px; }
.lg-err:empty { display: none; }

.lg-check { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 24px; cursor: pointer; font-size: .92rem; color: var(--ink); user-select: none; }
.lg-check input { width: 18px; height: 18px; accent-color: var(--p); margin: 0; cursor: pointer; }

.lg-btn {
  width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--btn); color: #fff;
  font-family: "Noto Kufi Arabic", sans-serif; font-size: 1.02rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  box-shadow: 0 12px 24px -12px var(--p), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.lg-btn svg { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .15s; }
.lg-btn:hover { filter: brightness(1.06); box-shadow: 0 16px 28px -12px var(--p), inset 0 1px 0 rgba(255, 255, 255, .18); }
.lg-btn:hover svg { transform: translateX(-3px); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.lg-btn.is-busy { cursor: progress; filter: saturate(.85); }
.lg-btn.is-busy svg { display: none; }
.lg-btn.is-busy::after { content: ""; width: 18px; height: 18px; border: 2.4px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lg-spin .7s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: #F3F6FB; color: var(--mut); font-size: .86rem; text-align: center; }
.lg-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 0; color: #8A97B2; font-size: .82rem; }
.lg-safe svg { width: 15px; height: 15px; }
.lg-foot { text-align: center; color: #9AA5BB; font-size: .78rem; }
.lg-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lg-foot a:hover { color: var(--p); }

/* ---------- the brand side */
.lg-aside { position: relative; overflow: hidden; background: var(--grad); color: #fff; display: flex; }
.lg-aside::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 75%);
  mask-image: linear-gradient(200deg, #000 10%, transparent 75%);
}
.lg-aside::after {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  inset-inline-end: -220px; bottom: -260px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%);
}
.lg-deco svg { position: absolute; }
.lg-star { width: 300px; inset-inline-end: -70px; top: -60px; fill: rgba(255, 255, 255, .06); transform: rotate(12deg); }
.lg-shield { width: 420px; inset-inline-start: -120px; bottom: -110px; fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.lg-pix { width: 170px; inset-inline-end: 40px; top: 36px; fill: rgba(255, 255, 255, .22); }
.lg-waves { width: 100%; height: 200px; inset-inline: 0; bottom: 0; fill: rgba(127, 230, 250, .12); }

.lg-aside-in { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; padding: 56px 56px 40px; }
.lg-plate {
  align-self: flex-start; background: #fff; border-radius: 26px; padding: 18px 22px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .5);
}
.lg-plate img { display: block; width: 150px; height: auto; }
.lg-px .lg-plate { padding: 0; overflow: hidden; border-radius: 30px; background: transparent; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .25); }
.lg-px .lg-plate img { width: 150px; }

.lg-pitch { margin: auto 0; padding: 44px 0; }
.lg-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px);
}
.lg-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.lg-pitch h2 { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.45; margin: 20px 0 14px; }
.lg-pitch p { color: rgba(255, 255, 255, .8); font-size: 1.05rem; line-height: 1.85; margin: 0 0 26px; max-width: 30em; }
.lg-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lg-pitch li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.lg-pitch li svg {
  flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 9px; stroke-width: 2.4;
  background: rgba(255, 255, 255, .14); color: var(--accent); stroke: currentColor;
}
.lg-tag { margin: 0; color: rgba(255, 255, 255, .6); font-size: .85rem; }

/* ---------- tablets and phones: the brand becomes a compact band above the form */
@media (max-width: 991.98px) {
  .lg { grid-template-columns: 1fr; }
  .lg-aside { order: -1; }
  .lg-aside-in { padding: 28px 24px 30px; flex-direction: row; align-items: center; gap: 18px; max-width: none; }
  .lg-plate { padding: 10px 12px; border-radius: 18px; }
  .lg-plate img { width: 74px; }
  .lg-px .lg-plate { border-radius: 18px; }
  .lg-px .lg-plate img { width: 74px; }
  .lg-pitch { margin: 0; padding: 0; }
  .lg-pitch h2 { font-size: 1.2rem; margin: 10px 0 0; }
  .lg-pitch p, .lg-pitch ul, .lg-tag, .lg-shield, .lg-pix { display: none; }
  .lg-star { width: 180px; top: -50px; }
  .lg-main { min-height: 0; flex: 1; padding-top: 8px; }
  .lg-id { display: none; }
  .lg-col { padding-top: 28px; }
  .lg h1 { font-size: 1.55rem; }
}
@media (max-width: 420px) {
  .lg-aside-in { gap: 14px; padding: 22px 16px 24px; }
  .lg-plate img, .lg-px .lg-plate img { width: 60px; }
  .lg-pitch h2 { font-size: 1.05rem; }
  .lg-main { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg * { transition: none !important; animation-duration: 1.5s !important; }
}

/* access denied in the same frame: the reason, then «back» and «another account» */
.lg-deny { display: flex; flex-direction: column; gap: 12px; }
.lg-deny .lg-alert { margin: 0; display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.lg-deny .lg-alert svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.lg-btn.lg-alt { background: #fff; color: var(--p); border: 1.5px solid #D5DDEB; box-shadow: none; text-decoration: none; }
.lg-btn.lg-alt:hover { box-shadow: none; filter: none; border-color: var(--p); }
a.lg-btn { text-decoration: none; }
a.lg-btn:hover { color: #fff; }
