/* ============================================================
   em-login.css — ExpressMove split-screen login (Admin + Shipper)
   Companion to expressmove-theme.css (load AFTER it — consumes --em-* tokens).
   Accent recolors automatically from <body class="em-admin|em-shipper">.
   Pure CSS + tokens. No SCSS/build step.
   ============================================================ */

.em-login {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: var(--em-bg);
}

/* form column + image panel (image slightly wider, like the mock) */
.em-login__form {
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 56px;
  background: #fff;
}
.em-login__panel {
  flex: 1 1 52%;
  position: relative;
  overflow: hidden;
  background: var(--em-accent-soft);
}
.em-login__panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover = fill the whole panel edge-to-edge (crops to the panel's aspect). */
  object-fit: cover;
  object-position: center;
  display: block;
}

.em-login__inner { width: 100%; max-width: 380px; }

/* brand lockup */
.em-login__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 48px; }
.em-login__brand-tile {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--em-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; flex: 0 0 auto;
}
/* white brand mark (transparent PNG) sits on the accent-colored tile */
.em-login__brand-img { width: 26px; height: 26px; object-fit: contain; display: block; }
.em-login__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.em-login__brand-name {
  font-family: var(--em-font-display);
  font-size: 18px; font-weight: 700; letter-spacing: -.4px; color: var(--em-ink);
}
.em-login__eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--em-accent); margin-top: 2px;
}

/* badge (admin) */
.em-login__badge { margin-bottom: 16px; }

/* title + subtitle */
.em-login__title {
  font-family: var(--em-font-display);
  font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--em-ink); margin: 0;
}
.em-login__sub { margin: 8px 0 28px; font-size: 14.5px; color: var(--em-muted); line-height: 1.5; }

/* error / alert banner (binds to ViewData["Error"]) */
.em-login__alert {
  display: flex; gap: 11px; align-items: flex-start;
  margin-bottom: 20px; padding: 13px 14px;
  border-radius: 12px; background: var(--em-red-soft);
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, .13);
}
.em-login__alert-chip {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--em-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; margin-top: 1px; font-size: 12px;
}
.em-login__alert-title { font-size: 13.5px; font-weight: 700; color: #7F1D2A; }
.em-login__alert-msg { font-size: 12.5px; color: var(--em-red-ink); margin-top: 2px; line-height: 1.45; }

/* fields — reuse theme .em-field label; the input row carries a leading icon */
.em-login__field { margin-bottom: 14px; }
.em-login__inputrow {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--em-line); border-radius: var(--em-r-md);
  transition: border-color .12s;
}
.em-login__inputrow:focus-within { border-color: var(--em-accent); }
.em-login__icon { color: var(--em-muted); font-size: 18px; flex: 0 0 auto; }
.em-login__inputrow input {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--em-font-sans); font-size: 14.5px; color: var(--em-ink);
}
.em-login__inputrow input::placeholder { color: var(--em-faint); }
.em-login__pwtoggle {
  border: none; background: transparent; cursor: pointer; padding: 0;
  color: var(--em-muted); display: inline-flex; align-items: center; font-size: 17px;
}
.em-login__pwtoggle:hover { color: var(--em-accent); }

/* remember / forgot row */
.em-login__row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 22px; }
.em-login__remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--em-body); cursor: pointer; user-select: none;
}
.em-login__remember input { width: 17px; height: 17px; accent-color: var(--em-accent); cursor: pointer; }
.em-login__forgot { font-size: 13px; color: var(--em-accent); font-weight: 600; text-decoration: none; }
.em-login__forgot:hover { text-decoration: underline; }

/* submit (reuses em-btn em-btn--accent em-btn--lg) */
.em-login__submit { width: 100%; }

/* signup note (shipper: holds the real WhatsApp CTA) */
.em-login__signupnote {
  margin-top: 18px; text-align: center; font-size: 13px; color: var(--em-muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}

/* footer fine print (admin) */
.em-login__footer { margin-top: 26px; font-size: 12px; color: var(--em-faint); line-height: 1.6; text-align: center; }

/* powered-by Massar */
.em-login__massar { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.em-login__massar-eyebrow {
  font-size: 10px; color: var(--em-faint); letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600;
}
.em-login__massar img { height: 22px; width: auto; display: block; }

/* back to home */
.em-login__back { margin-top: 16px; text-align: center; }
.em-login__back a {
  color: var(--em-muted); font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.em-login__back a:hover { color: var(--em-ink); }

/* responsive: stack the panel above the form */
@media (max-width: 980px) {
  .em-login { flex-direction: column; }
  .em-login__panel { flex: 0 0 auto; min-height: 240px; order: -1; }
  .em-login__form { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .em-login__panel { min-height: 170px; }
  .em-login__form { padding: 28px 18px; }
  .em-login__title { font-size: 26px; }
}
