/* ═══════════════════════════════════════════════════════════════════
   JUSTICEPATH LOGIN — Take B (Marketing Interstitial)
   ───────────────────────────────────────────────────────────────────
   Split-screen landing: navy brand pane (left) + form pane (right).
   Requires tokens.css (provides --jp-* vars and brand-font @font-face).
   Brand fonts only — DIN for UI, Minion Pro for the marketing tagline.
   ═══════════════════════════════════════════════════════════════════ */

html, body { height: 100%; }

/* Standalone login pages get the brand-font body without inheriting
   .jp-body's sidebar/header layout assumptions. */
.jp-login-body {
  margin: 0;
  font-family: var(--jp-font-sans);
  color: var(--jp-text-primary);
  background: var(--jp-bg-surface);
  -webkit-font-smoothing: antialiased;
  line-height: var(--jp-leading-normal);
}
.jp-login-body a { color: inherit; text-decoration: none; }
.jp-login-body h1, .jp-login-body h2, .jp-login-body h3, .jp-login-body p { margin: 0; }


/* ─────────────────────────────────────────────────────────────────
   PAGE GRID — 1.25fr brand : 1fr form
   ───────────────────────────────────────────────────────────────── */
.jp-login-b {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 100vh;
  background: var(--jp-bg-surface);
}


/* ─────────────────────────────────────────────────────────────────
   BRAND PANE — left
   Navy background, gradients, oversized decorative logo glyph.
   ───────────────────────────────────────────────────────────────── */
.jp-login-b__brand {
  background: var(--jp-bg-brand-primary);
  color: var(--jp-text-on-brand);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 40px 56px 32px;
  isolation: isolate;
}
.jp-login-b__brand::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 110%, rgba(51,145,209,0.18), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% -10%, rgba(252,186,0,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,11,31,0.0) 0%, rgba(0,11,31,0.4) 100%);
  z-index: 0;
}
.jp-login-b__brand::after {
  content: ''; position: absolute;
  right: -80px; bottom: -100px;
  width: 540px; height: 540px;
  background: url('logo-mark-white.png') no-repeat center/contain;
  opacity: 0.05;
  z-index: 0;
}
.jp-login-b__brand > * { position: relative; z-index: 1; }

.jp-login-b__top { display: flex; align-items: center; gap: 14px; }
.jp-login-b__top .jp-logo-mark { height: 40px; width: auto; display: block; }
.jp-login-b__top .jp-wordmark-img { height: 18px; width: auto; display: block; }

.jp-login-b__rule {
  width: 64px; height: 3px;
  background: var(--jp-color-gold-500);
  margin: 56px 0 28px;
}
.jp-login-b__brand-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jp-color-gold-500);
  margin-bottom: 18px;
}
.jp-login-b__tagline {
  font-family: var(--jp-font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 14ch;
  color: #fff;
}
.jp-login-b__tagline em {
  font-style: italic;
  color: var(--jp-color-gold-500);
}
.jp-login-b__body {
  font-family: var(--jp-font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--jp-color-navy-100);
  margin-top: 22px;
  max-width: 42ch;
}

.jp-login-b__features {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.jp-login-b__feature { display: flex; flex-direction: column; gap: 6px; }
.jp-login-b__feature-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--jp-color-gold-500);
}
.jp-login-b__feature-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.jp-login-b__feature-sub {
  font-size: 12px;
  color: var(--jp-color-navy-200);
  line-height: 1.4;
}
.jp-login-b__brand-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.jp-login-b__brand-footer a { color: rgba(255,255,255,0.7); }
.jp-login-b__brand-footer a:hover { color: #fff; }


/* ─────────────────────────────────────────────────────────────────
   FORM PANE — right
   ───────────────────────────────────────────────────────────────── */
.jp-login-b__form-pane {
  background: var(--jp-bg-surface);
  display: flex; flex-direction: column;
  padding: 40px 56px 28px;
  position: relative;
}
.jp-login-b__pane-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--jp-text-secondary);
}
.jp-login-b__pane-top a { color: var(--jp-text-heading); font-weight: 700; }
.jp-login-b__pane-top a:hover { color: var(--jp-color-info-500); }

.jp-login-b__pane-body {
  margin: auto 0;
  padding: 32px 0;
  max-width: 380px;
  width: 100%;
  align-self: center;
}
.jp-login-b__pane-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jp-text-secondary);
  margin-bottom: 14px;
}
.jp-login-b__pane-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--jp-text-heading);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.jp-login-b__pane-sub {
  font-size: 14px;
  color: var(--jp-text-secondary);
  margin-top: 10px;
  line-height: 1.5;
}
.jp-login-b__pane-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--jp-text-secondary);
  letter-spacing: 0.04em;
  padding-top: 16px;
  border-top: 1px solid var(--jp-border-subtle);
}
.jp-login-b__pane-footer a { color: var(--jp-text-secondary); }
.jp-login-b__pane-footer a:hover { color: var(--jp-text-heading); }


/* ─────────────────────────────────────────────────────────────────
   FORM — inputs, labels, submit, checkbox
   Applied to a wrapper div, not the outer <form runat="server">.
   ───────────────────────────────────────────────────────────────── */
.jp-form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.jp-field { display: flex; flex-direction: column; gap: 6px; }
.jp-field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jp-text-heading);
}
.jp-input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.jp-input-wrap > svg {
  position: absolute; left: 14px;
  color: var(--jp-text-secondary);
  pointer-events: none;
}
.jp-input {
  width: 100%;
  font-family: var(--jp-font-sans);
  font-size: 15px;
  padding: 13px 14px 13px 42px;
  background: var(--jp-bg-surface);
  border: 1.5px solid var(--jp-border-default);
  border-radius: 6px;
  color: var(--jp-text-heading);
  transition: border-color 150ms, box-shadow 150ms;
}
.jp-input:focus {
  outline: none;
  border-color: var(--jp-border-brand);
  box-shadow: 0 0 0 4px rgba(0,23,54,0.08);
}
.jp-input::placeholder { color: var(--jp-text-muted); }

.jp-input-toggle {
  position: absolute; right: 10px;
  width: 30px; height: 30px;
  background: transparent; border: 0;
  color: var(--jp-text-secondary);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.jp-input-toggle:hover { background: rgba(0,23,54,0.04); color: var(--jp-text-heading); }

.jp-form__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2px;
}
.jp-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--jp-text-secondary);
  cursor: pointer;
}
.jp-check input { width: 16px; height: 16px; accent-color: var(--jp-color-navy-800); margin: 0; }
.jp-form__link {
  font-size: 13px;
  color: var(--jp-text-heading);
  font-weight: 700;
}
.jp-form__link:hover { color: var(--jp-color-info-500); }

/* Submit — supports both <button type=submit> and <input type=submit> (asp:Button). */
.jp-form__submit,
input.jp-form__submit {
  margin-top: 12px;
  width: 100%;
  background: var(--jp-color-navy-800);
  color: #fff;
  font-family: var(--jp-font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 20px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 150ms, transform 100ms;
}
.jp-form__submit:hover { background: var(--jp-color-navy-700); }
.jp-form__submit:active { transform: scale(0.99); }
.jp-form__submit:disabled {
  background: var(--jp-interactive-disabled-bg);
  color: var(--jp-interactive-disabled-text);
  cursor: not-allowed; transform: none;
}

.jp-form__error {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--jp-status-error-bg);
  border: 1px solid var(--jp-status-error-border);
  border-left-width: 4px;
  color: var(--jp-status-error-text);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.jp-form__error svg { flex-shrink: 0; margin-top: 1px; }
.jp-form__error[hidden] { display: none; }
.jp-form__error strong { display: block; }

/* Success / info note (forgot + reset password) */
.jp-form__note {
  background: var(--jp-status-success-bg);
  border: 1px solid var(--jp-status-success-border);
  border-left-width: 4px;
  color: var(--jp-status-success-text);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.jp-form__note a { color: var(--jp-status-success-text); font-weight: 700; text-decoration: underline; }

.jp-form__row--center { justify-content: center; }

/* ═════════════════════════════════════════════════════════════════
   SOLO CARD — forgot / reset password (single centered pane)
   ───────────────────────────────────────────────────────────────── */
.jp-login-solo {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jp-bg-app);
  padding: 40px 20px;
}
.jp-login-solo__card {
  width: 100%;
  max-width: 440px;
  background: var(--jp-bg-surface);
  border: 1px solid var(--jp-border-default);
  border-radius: var(--jp-radius-lg);
  box-shadow: var(--jp-shadow-lg);
  padding: 40px;
}
@media (max-width: 520px) {
  .jp-login-solo { padding: 0; }
  .jp-login-solo__card { max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; padding: 32px 22px; }
}


/* ═════════════════════════════════════════════════════════════════
   RESPONSIVE — collapse to stacked at 720px
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .jp-login-b {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .jp-login-b__brand { padding: 28px 22px 24px; min-height: 280px; }
  .jp-login-b__brand::after { right: -40px; bottom: -60px; width: 280px; height: 280px; }
  .jp-login-b__top .jp-logo-mark { height: 32px; }
  .jp-login-b__top .jp-wordmark-img { height: 14px; }
  .jp-login-b__rule { margin: 24px 0 16px; }
  .jp-login-b__tagline { font-size: 28px; max-width: 16ch; }
  .jp-login-b__body,
  .jp-login-b__features,
  .jp-login-b__brand-footer { display: none; }
  .jp-login-b__form-pane { padding: 28px 22px 22px; }
  .jp-login-b__pane-top { display: none; }
  .jp-login-b__pane-body { margin: 0; padding: 0; }
  .jp-login-b__pane-title { font-size: 24px; }
  .jp-login-b__pane-sub { font-size: 13px; }
  .jp-login-b__pane-footer { display: none; }
}
