:root {
  /* ===== هوية نافس ===== */
  --navy: #012657;
  --navy-deep: #011c40;
  --teal: #019685;
  --teal-dark: #017f6f;
  --cream: #eef3f7;
  --paper: #ffffff;
  --ink: #0b2244;
  --muted: #5b7391;
  --line: #d8e3ee;
  --error: #b3392f;
  --error-soft: #fbeae8;
  --focus: #d09e40;
  --shadow: 0 24px 70px rgba(1, 38, 87, .16);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(1, 150, 133, .10), transparent 24rem),
    var(--cream);
  font-family: "Tajawal", "Segoe UI", sans-serif;
  line-height: 1.65;
}
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: .75rem;
  right: 1rem;
  z-index: 10;
  padding: .65rem 1rem;
  color: white;
  background: var(--navy-deep);
  border-radius: .45rem;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(24rem, .98fr);
  width: min(74rem, calc(100% - 3rem));
  min-height: min(46rem, calc(100dvh - 3rem));
  margin: 1.5rem auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(24, 59, 80, .12);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.login-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 6vw, 5.25rem) 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .7rem;
  color: var(--navy);
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: .7rem .7rem .7rem .2rem;
  line-height: 1;
}
.brand:focus-visible, .back-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.login-copy { margin-top: clamp(3.25rem, 8vh, 6rem); }
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--teal);
  font-weight: 700;
  font-size: .83rem;
  letter-spacing: .04em;
}
h1, h2 { font-family: "Baloo Bhaijaan 2", sans-serif; text-wrap: balance; }
h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.login-copy > p:last-child {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .98rem;
  text-wrap: pretty;
}

.form-error {
  display: flex;
  gap: .8rem;
  margin-top: 1.4rem;
  padding: .8rem 1rem;
  color: var(--error);
  background: var(--error-soft);
  border-inline-start: 3px solid var(--error);
  border-radius: .25rem .75rem .75rem .25rem;
}
.form-error > span {
  display: grid;
  flex: 0 0 1.6rem;
  height: 1.6rem;
  place-items: center;
  color: white;
  background: var(--error);
  border-radius: 50%;
  font-weight: 700;
}
.form-error strong { display: block; font-size: .9rem; }
.form-error p { margin: 0; font-size: .84rem; }

.login-form { margin-top: 1.6rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.field input {
  width: 100%;
  min-height: 3.15rem;
  padding: .7rem .9rem;
  color: var(--ink);
  background: white;
  border: 1.5px solid var(--line);
  border-radius: .7rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:hover { border-color: #aebbb8; }
.field input:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 104, .13);
}
.field small { display: block; margin-top: .35rem; color: var(--muted); font-size: .75rem; }

.submit-button {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.4rem;
  color: white;
  background: var(--teal);
  border: 0;
  border-radius: .7rem;
  box-shadow: 0 10px 24px rgba(15, 118, 104, .2);
  cursor: pointer;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.submit-button:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 118, 104, .24); }
.submit-button:active { transform: translateY(0) scale(.99); }
.submit-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.demo-note {
  display: flex;
  gap: .7rem;
  margin-top: 1.25rem;
  padding: .8rem .9rem;
  color: var(--muted);
  background: #f2f3ed;
  border-radius: .75rem;
  font-size: .76rem;
}
.demo-icon { color: var(--teal); font-size: 1rem; }
.demo-note strong { display: block; color: var(--ink); font-size: .8rem; }
.demo-note p { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: .15rem 0 0; }
.demo-note bdi { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.back-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--muted);
  font-size: .82rem;
  text-underline-offset: .25rem;
}
.back-link:hover { color: var(--teal); }

.journey-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.25rem);
  color: white;
  background:
    linear-gradient(180deg, rgba(16, 45, 63, .13), rgba(16, 45, 63, .98)),
    url("../img/hero.jpg") center / cover;
}
.journey-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(15, 118, 104, .48), transparent 55%);
  content: "";
}
.journey-art { position: absolute; inset: 0; z-index: -1; }
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .23); border-radius: 50%; }
.orbit-one { top: -6rem; left: -7rem; width: 22rem; height: 22rem; }
.orbit-two { top: 4rem; left: 2rem; width: 13rem; height: 13rem; }
.score-card, .path-card {
  position: absolute;
  color: var(--navy-deep);
  background: rgba(255, 253, 248, .91);
  box-shadow: 0 18px 45px rgba(7, 27, 38, .22);
  backdrop-filter: blur(10px);
}
.score-card { top: 12%; left: 9%; padding: .85rem 1rem; border-radius: 1rem 1rem 1rem .3rem; }
.score-card b { display: block; color: var(--teal); font: 800 1.8rem/1 "Baloo Bhaijaan 2", sans-serif; }
.score-card span { font-size: .72rem; }
.path-card {
  top: 33%; right: 8%;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .85rem;
  border-radius: .35rem .85rem .85rem .85rem;
  font-size: .72rem;
  font-weight: 700;
}
.path-card i { width: 1.6rem; height: 1px; background: var(--teal); }
.journey-content { max-width: 27rem; }
.journey-number { display: block; color: rgba(255,255,255,.5); font: 700 4rem/1 "Baloo Bhaijaan 2", sans-serif; }
.journey-kicker { margin: 1.1rem 0 .45rem; color: #9fdacf; font-weight: 700; font-size: .8rem; letter-spacing: .05em; }
.journey-content h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.15rem); line-height: 1.1; letter-spacing: -.025em; }
.journey-content ul { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.78); font-size: .78rem; }
.journey-content li { display: flex; align-items: center; gap: .35rem; }
.journey-content li::before { width: .38rem; height: .38rem; background: #6dc4b4; border-radius: 50%; content: ""; }
.journey-content li span { color: white; font-weight: 700; }

@media (max-width: 840px) {
  .login-shell { grid-template-columns: 1fr; width: min(38rem, calc(100% - 2rem)); margin: 1rem auto; }
  .journey-panel { min-height: 18rem; grid-row: 1; padding: 2rem; }
  .journey-number, .journey-content ul { display: none; }
  .journey-content h2 { max-width: 15ch; font-size: 2rem; }
  .score-card { top: 1.4rem; left: 1.5rem; }
  .path-card { display: none; }
  .login-panel { padding: 2rem clamp(1.25rem, 7vw, 3rem); }
  .login-copy { margin-top: 2.75rem; }
  h1 { max-width: 14ch; }
}

@media (max-width: 520px) {
  .login-shell { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .journey-panel { min-height: 12.5rem; padding: 1.25rem; }
  .journey-kicker { margin-top: 0; }
  .journey-content h2 { font-size: 1.65rem; }
  .score-card { top: 1rem; left: 1rem; transform: scale(.86); transform-origin: top left; }
  .login-panel { padding-top: 1.5rem; }
  .login-copy { margin-top: 2.25rem; }
  h1 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ---- شعار الهوية ---- */
.brand{display:block;line-height:0;text-decoration:none}
.brand-logo{width:min(320px,78%);height:auto;display:block;margin-inline:auto}
@media (max-width:640px){ .brand-logo{width:min(260px,82%)} }
