/* GHADIX Admin • visual parity implementation for the approved 1448×1086 reference.
   No changes to the production application's authentication or endpoints. */
:root {
  color-scheme: light;
  --ink: #10214a;
  --body: #52617e;
  --muted: #7887a1;
  --blue: #073cdd;
  --blue-hover: #0732bb;
  --stroke: #d4ddeb;
  --soft: #ebf2ff;
  --card: #fff;
  --radius: 42px;
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 430px 470px at 98% -2%, rgba(174,226,247,.57) 0%,rgba(174,226,247,.35) 62%, transparent 64%),
    radial-gradient(ellipse 440px 340px at -6% 102%, #79cbf6 0%, rgba(151,218,250,.82) 72%, transparent 73%),
    radial-gradient(ellipse 600px 500px at 50% -35%, rgba(255,255,255,.70), transparent 85%),
    #e5f5fa;
  padding: 36px 32px;
}
.login-stage {
  position: relative;
  display: flex;
  flex-direction: row;
  inline-size: min(1257px, 100%);
  min-block-size: 877px;
  border: 2px solid rgba(255,255,255,.99);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f9fcff 0%, #fff 42%, #fff 100%);
  box-shadow: 0 19px 43px rgba(52,110,144,.19), 0 8px 18px rgba(43,112,154,.07);
  overflow: hidden;
  isolation: isolate;
  transform: translate(-20px, -7px);
}
.login-side {
  z-index: 1;
  flex: 0 0 56.6%;
  background: #fff;
  min-inline-size: 0;
}
.login-inner {
  width: min(598px, calc(100% - 62px));
  margin-inline: auto;
  padding-block: 29px 0;
}
.heading-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-inline-start: 70px;
  white-space: nowrap;
}
.brand-logo { display: block; width: 306px; height: 54px; object-fit: contain; object-position: center; }
.heading-area h1 {
  font-size: 39px;
  font-weight: 700;
  color: #132350;
  letter-spacing: -.9px;
  line-height: 1.4;
  margin: 19px 0 0;
}
.heading-area p { color: #606e89; margin: 1px 0 0; font-size: 16px; font-weight: 500; line-height: 1.9; }
.method-switch {
  margin-top: 51px;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid #d5dce8;
  border-radius: 15px;
  background: white;
  overflow: hidden;
}
.method-btn {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #2a395e;
  font-size: 16px; font-weight: 600; line-height: 1.3;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.method-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.method-btn.is-active {
  color: #fff;
  background: linear-gradient(105deg,#083de3,#0132cd);
  box-shadow: 0 5px 10px rgba(7,62,218,.18);
  border-radius: 12px;
}
.method-btn:not(.is-active):hover { background: #f3f7fe; }
#loginForm { margin-top: 27px; }
.field label { display: block; margin-bottom: 10px; text-align: start; color: #192849; font-size: 16px; font-weight: 600; }
.input-wrap { height: 55px; position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; inset-inline-start: 17px; z-index: 1; width: 23px; height: 23px; pointer-events: none; color: #526382; }
.input-wrap input {
  height: 100%; width: 100%;
  border: 1.8px solid var(--stroke);
  border-radius: 13px;
  padding-inline: 50px 48px;
  outline: 0;
  color: #263451;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(3,25,70,.025);
  font-size: 16px; font-weight: 500; line-height: 1.5;
  font-family: inherit;
  text-align: start;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap input::placeholder { color: #9ba7bd; opacity: 1; }
.input-wrap input:focus { border-color: #5084ed; box-shadow: 0 0 0 3px rgba(39,110,234,.10); }
.password-field { margin-top: 24px; }
.reveal-password { position: absolute; inset-inline-end: 13px; border: 0; background: transparent; display: grid; place-items: center; color: #657490; width: 31px; height: 35px; border-radius: 8px; cursor: pointer; }
.reveal-password:hover { background: #f1f5fa; }
.reveal-password svg { width: 23px; height: 23px; }
.field-caption { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.information-strip {
  display: flex; align-items: center; gap: 13px; min-height: 51px;
  margin-top: 24px; padding: 9px 16px; border-radius: 12px;
  background: linear-gradient(90deg,#e8f1ff,#e8f0ff 65%,#e2edff);
  color: #0647d4; font-size: 15px; font-weight: 500;
}
.information-strip svg { flex-shrink: 0; width: 24px; height: 24px; }
.primary-submit {
  display: flex; width: 100%; min-height: 55px; align-items: center; justify-content: center; gap: 14px;
  margin-top: 23px; padding: 10px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(100deg,#063ae0,#0234dd);
  color: white; font-size: 18px; font-weight: 600; line-height: 1.5; font-family: inherit;
  box-shadow: 0 5px 10px rgba(5,65,230,.07);
  cursor: pointer;
}
.primary-submit:hover { background: var(--blue-hover); }
.primary-submit svg { width: 25px; height: 25px; }
.alternative-link { margin: 17px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 31px; background: none; border: 0; color: #0646db; font-size: 16px; font-weight: 600; line-height: 1.4; font-family: inherit; cursor: pointer; }
.alternative-link:hover { text-decoration: underline; }
.alternative-link svg { width: 21px; height: 21px; }
.foot-divider { margin-top: 31px; border-top: 1px solid #dee5f0; }
.policy-strip {
  margin-top: 19px;
  background: #f0f3f9;
  color: #293a5a;
  border-radius: 13px;
  min-height: 69px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 15px;
  font-size: 13px; font-weight: 400;
  line-height: 1.85;
}
.policy-strip svg { width: 22px; height: 22px; flex-shrink: 0; color: #0870d6; margin-top: 1px; }
.policy-strip p { margin: 0; }
.policy-strip strong { font-weight: 700; }
.preview-feedback { border: 1px solid #d2e4fa; border-radius: 12px; color: #1e4c8f; background: #edf7ff; font-size: 13px; padding: 12px; line-height: 1.7; margin: 13px 0 0; }
.visual-side {
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  background: linear-gradient(155deg, #c6e2ff 0%,#f6fbff 56%,#f9fcff 100%);
}
.visual-reference { width: 100%; height: 100%; min-height: 877px; display: block; object-fit: fill; }
button:focus-visible { outline: 3px solid #6ca9ff; outline-offset: 3px; }
@media (max-width: 1180px) {
  .login-stage { min-block-size: 760px; transform: none; }
  .login-side { flex-basis: 59%; }
  .login-inner { width: min(560px, calc(100% - 48px)); }
  .heading-area { padding-inline-start: clamp(0px, 7vw, 100px); }
  .heading-area h1 { font-size: 34px; }
  .heading-area p { white-space: normal; font-size: 14px; }
  .method-btn { gap: 7px; font-size: 13px; }
  .visual-reference { min-height: 760px; }
}
@media (max-width: 860px) {
  body { padding: 22px 14px; }
  .login-stage { width: min(610px, 100%); min-block-size: 0; border-radius: 27px; }
  .login-side { flex: 1 1 100%; }
  .visual-side { display: none; }
  .login-inner { width: min(100% - 48px, 540px); padding-block: 25px 32px; }
  .heading-area { padding-inline-start: 0; align-items: center; text-align: center; white-space: normal; }
  .brand-logo { width: 245px; height: auto; }
  .heading-area h1 { font-size: 33px; margin-top: 12px; }
  .heading-area p { font-size: 13px; }
  .method-switch { margin-top: 26px; }
}
@media (max-width: 450px) {
  body { padding: 12px 9px; }
  .login-stage { border-radius: 23px; }
  .login-inner { width: calc(100% - 30px); padding: 22px 0 25px; }
  .heading-area h1 { font-size: 29px; }
  .method-switch { height: 50px; }
  .method-btn { font-size: 11px; gap: 6px; }
  .method-btn svg { width: 18px; height: 18px; }
  .field label { font-size: 14px; }
  .input-wrap input { font-size: 14px; }
  .information-strip { font-size: 12px; }
  .primary-submit { min-height: 52px; font-size: 16px; }
  .alternative-link { font-size: 13px; }
  .policy-strip { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }
/* On an English/LTR route, semantic form order switches sides with the document direction. */
html[dir="ltr"] .heading-area { padding-inline-start: 70px; }
html[dir="ltr"] .input-wrap input { text-align: start; }


#email:placeholder-shown { direction: rtl; text-align: right; }
#email:not(:placeholder-shown) { direction: ltr; text-align: left; }

/* Live login form extensions; approved design variables and layout preserved. */
.login-error { border: 1px solid #edb9b8; background: #fff3f3; color: #a12323; padding: 11px 14px; border-radius: 12px; margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
.primary-submit:disabled { opacity: .6; cursor: not-allowed; }
.otp-layout { margin-top: 76px; }
.otp-layout .input-wrap input { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.otp-layout .alternative-link { text-decoration: none; }
@media(max-width:860px) { .otp-layout { margin-top: 32px; } }

.otp-channel-field { margin-top:18px; }
.otp-channel-select { width:100%;min-height:55px;border:1.8px solid #d4ddeb;border-radius:13px;padding:8px 12px;font:inherit;background:#fff;color:#10214a; }
