/* ============================================================================
   Employer login — /client-login (client-login.php)

   Handoff: "KosovaJob — Kyçu si punëdhënës (Simba)" (Employer login page.html,
   2026-09-18) — the navy-toned twin of the candidate login (login.css). Every
   number below is the handoff's, block for block; the responsive blocks are its
   own (@1023 / @639); its design-system colours are scoped as --kje-* so no
   global token moves. tests/client-login.test.php pins the dimensions.

     page    navy, padding 32px 32px 80px, overflow hidden. The bg layer sits at
             -72px exactly as drawn — the section clips it, so the sticky public
             header above stays its usual white.
     video   right 56 %, opacity .22, screen-blended, masked in from 26 %.
             client-login.php renders the <video> only when
             new-ui/video/login-ambient-loop.mp4 exists; the glows carry the
             page without it.
     glows   860 (gold→coral, top-left) and 820 (coral→gold, bottom-right).
     grid    1200, 1fr + 48 + 1fr, align center, min-height max(640, 100vh−168).
     story   K-mark 260×370 at −36/−40 opacity .16; pill h32; h1 44/800 lh 1.08
             ls −.03em, second clause gold; lead 460 17/1.6 at 78 % white; three
             30px gradient ticks; stats 26/800 over a 14 % hairline.
     card    460, r28, padding 28 28 26, shadow 0 30px 80px −30px rgba(0,0,0,.6)
             + shadow-md, fade-up .6s .12s; h2 24/800; inputs 48 r12 1.5px;
             eye 34 at right 8; remember + forgot row 14px; alerts 10/14 r12;
             submit 52 r999 gradient 16/800; note 10/12 r12 13px; foot over a
             hairline with 6px top padding.
     type    Mulish body (inherited from base.css's public-chrome scope),
             Plus Jakarta Sans for the h1 / h2 / stat values (--kj-font).
   ========================================================================== */

@keyframes kjELoginUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- page + background --------------------------------------------------- */
.kj-elogin {
  --kje-navy: #041E42;
  --kje-coral-50: #FFF1F2;
  --kje-coral-400: #FF8A93;
  --kje-coral-500: #FE7680;
  --kje-coral-600: #FE616C;
  --kje-gold-400: #FFC473;
  --kje-gradient: linear-gradient(120deg, #FFC473 0%, #FE616C 100%);
  --kje-surface-muted: #F1F4F9;
  --kje-text-strong: #0B1B33;
  --kje-text-body: #2E3D55;
  --kje-text-muted: #5B6B84;
  --kje-text-faint: #8A97AB;
  --kje-border-subtle: #E6EAF1;
  --kje-border-default: #D5DCE7;
  --kje-success-bg: #E8F7F0;
  --kje-danger-bg: #FDECEC;
  --kje-shadow-md: 0 6px 18px rgba(4, 30, 66, .12);
  --kje-ring: 0 0 0 4px rgba(254, 97, 108, .18);
  --kje-ease-out: cubic-bezier(.2, .8, .2, 1);
  position: relative;
  padding: 32px 32px 80px;
  overflow: hidden;
  background: #041E42;
  color: #fff;
}
.kj-elogin__bg {
  position: absolute;
  top: -72px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Video behind the form half only, screened onto the navy at low opacity and
   masked in from the middle of the page. */
.kj-elogin__video {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 56%;
  opacity: .22;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 26%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 26%);
}
.kj-elogin__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.kj-elogin__glow { position: absolute; border-radius: 50%; }
.kj-elogin__glow--a {
  top: -320px;
  left: -300px;
  width: 860px;
  height: 860px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 196, 115, .22) 0%, rgba(254, 97, 108, .10) 50%, rgba(254, 97, 108, 0) 72%);
}
.kj-elogin__glow--b {
  bottom: -380px;
  right: -260px;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle at 50% 50%, rgba(254, 97, 108, .20) 0%, rgba(255, 196, 115, .08) 50%, rgba(255, 196, 115, 0) 72%);
}
.kj-elogin__grid {
  position: relative;
  max-width: var(--kj-b1-container, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: max(640px, calc(100vh - 168px));
}

/* ---- story column -------------------------------------------------------- */
.kj-elogin__story { position: relative; padding: 24px 0; min-width: 0; }
.kj-elogin__mark {
  position: absolute;
  left: -36px;
  top: -40px;
  width: 260px;
  height: 370px;
  opacity: .16;
  pointer-events: none;
}
.kj-elogin__story-in { position: relative; }
.kj-elogin__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.kj-elogin__pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--kje-gold-400); flex: none; }
.kj-elogin__h1 {
  margin: 26px 0 14px;
  font-family: var(--kj-font, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
.kj-elogin__h1 em { font-style: normal; color: var(--kje-gold-400); }
.kj-elogin__lead {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}
.kj-elogin__checks { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.kj-elogin__checks > div { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.kj-elogin__checks strong { display: block; color: #fff; font-weight: 800; font-size: 16px; }
.kj-elogin__check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--kje-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.kj-elogin__stats {
  position: relative;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 32px;
}
.kj-elogin__stats b {
  display: block;
  font-family: var(--kj-font, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
}
.kj-elogin__stats span { display: block; font-size: 13px; color: rgba(255, 255, 255, .62); margin-top: 6px; }

/* ---- form card ----------------------------------------------------------- */
.kj-elogin__form-col { display: flex; align-items: center; justify-content: center; min-width: 0; }
.kj-elogin__card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  color: var(--kje-text-strong);
  border: 1px solid var(--kje-border-subtle);
  border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), var(--kje-shadow-md);
  padding: 28px 28px 26px;
  animation: kjELoginUp .6s .12s var(--kje-ease-out) both;
}
.kj-elogin__form { display: flex; flex-direction: column; gap: 16px; }
.kj-elogin__form h2 {
  margin: 0 0 4px;
  font-family: var(--kj-font, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--kje-text-strong);
}
.kj-elogin__form h2 + p { margin: 0; font-size: 14px; color: var(--kje-text-muted); }
.kj-elogin__field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--kje-text-strong); }
.kj-elogin__input {
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--kje-border-default);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  color: var(--kje-text-strong);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
          appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.kj-elogin__input::placeholder { color: var(--kje-text-faint); }
.kj-elogin__input:focus { outline: none; border-color: var(--kje-coral-400); box-shadow: var(--kje-ring); }
/* per-field invalid state (the legacy .form-fieldErr hook) — the message box
   above the button carries the words, colour is never the only signal */
.kj-elogin__input.form-fieldErr { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, .25); }
.kj-elogin__pw { position: relative; }
.kj-elogin__pw .kj-elogin__input { padding-right: 48px; }
.kj-elogin__eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--kje-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.kj-elogin__eye:hover { background: var(--kje-surface-muted); color: var(--kje-text-strong); }
.kj-elogin__eye span { display: inline-flex; }
.kj-elogin__eye span[hidden] { display: none; }
.kj-elogin__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.kj-elogin__row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--kje-text-body); font-weight: 400; cursor: pointer; }
.kj-elogin__row input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--kje-coral-500); flex: none; cursor: pointer; }
.kj-elogin__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kje-coral-600);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.kj-elogin__link:hover { text-decoration: underline; }
.kj-elogin__link.is-busy { opacity: .6; pointer-events: none; }
/* the handoff's .kj-alert.error / .kj-alert.info, toggled with [hidden] */
.kj-elogin__alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  animation: kjELoginUp .25s both;
}
.kj-elogin__alert[hidden] { display: none; }
.kj-elogin__alert svg { flex: none; }
.kj-elogin__alert--bad { background: var(--kje-danger-bg); color: #B4282C; }
.kj-elogin__alert--ok  { background: var(--kje-success-bg); color: #0F7A50; }
.kj-elogin__submit {
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--kje-gradient);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(254, 97, 108, .55);
  -webkit-appearance: none;
          appearance: none;
  transition: transform .2s var(--kje-ease-out), box-shadow .2s;
}
.kj-elogin__submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(254, 97, 108, .65); }
.kj-elogin__submit:active { transform: scale(.98); }
.kj-elogin__submit[disabled],
.kj-elogin__submit.is-busy { opacity: .7; cursor: default; transform: none; pointer-events: none; }
.kj-elogin__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--kje-surface-muted);
  font-size: 13px;
  line-height: 1.45;
  color: var(--kje-text-body);
}
.kj-elogin__note svg { flex: none; margin-top: 2px; color: var(--kje-navy); }
.kj-elogin__note a { font-weight: 700; color: var(--kje-coral-600); text-decoration: none; }
.kj-elogin__note a:hover { text-decoration: underline; }
.kj-elogin__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--kje-text-muted);
  padding-top: 6px;
  border-top: 1px solid var(--kje-border-subtle);
}
.kj-elogin__cand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--kje-text-strong); text-decoration: none; }
.kj-elogin__cand:hover { color: var(--kje-coral-600); }

/* reCAPTCHA — rendered only after three failed attempts (client-login.php);
   the legacy widget block restyled to sit in the card's 16px rhythm. */
.kj-elogin__captcha { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kj-elogin__captcha .inputFieldHeaderHide,
.kj-elogin__captcha .liner { display: none; }
.kj-elogin .inputFieldBeforeBtnW0 {
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--kje-danger-bg);
  color: #B4282C;
  font-size: 14px;
  font-weight: 600;
}

/* ---- responsive (the handoff's own @1023 / @639) --------------------------- */
@media (max-width: 1023px) {
  .kj-elogin { padding: 28px 24px 48px; }
  .kj-elogin__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; justify-items: center; }
  .kj-elogin__video {
    width: 100%;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, #000 60%);
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, #000 60%);
  }
  .kj-elogin__story { padding: 0; max-width: 560px; text-align: center; }
  .kj-elogin__mark { left: 50%; transform: translateX(-50%); top: -60px; }
  .kj-elogin__lead { margin-left: auto; margin-right: auto; }
  .kj-elogin__checks { display: none; }
  .kj-elogin__stats { justify-content: center; }
  .kj-elogin__form-col { width: 100%; }
  .kj-elogin__card { max-width: 520px; }
}
@media (max-width: 639px) {
  .kj-elogin { padding: 20px 16px 40px; }
  .kj-elogin__h1 { font-size: 34px; }
  .kj-elogin__stats { display: none; }
  .kj-elogin__card { padding: 22px 18px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .kj-elogin__card, .kj-elogin__alert { animation: none; }
}
