/* Window Plus authentication presentation - v1.3.7
   The login form is moved into a clean shell by staff-login.js. */
html.wpea-auth-ready,
html.wpea-auth-ready body {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  overflow-x: hidden !important;
}

body.wpea-staff-auth {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f5f7fb !important;
  color: #273252 !important;
}

body.wpea-staff-auth *,
body.wpea-staff-auth *::before,
body.wpea-staff-auth *::after { box-sizing: border-box; }

body.wpea-staff-auth .wpea-auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(0, 58%);
  overflow: hidden;
  background: #f5f7fb;
}

body.wpea-staff-auth .wpea-auth-brand-panel {
  min-width: 0;
  min-height: 100vh;
  padding: clamp(42px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(107,171,67,.28), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(8,127,197,.25), transparent 30%),
    linear-gradient(145deg, #1b274b 0%, #26345e 55%, #15213f 100%);
}

body.wpea-staff-auth .wpea-auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 54px 54px;
}

body.wpea-staff-auth .wpea-brand-top,
body.wpea-staff-auth .wpea-brand-copy,
body.wpea-staff-auth .wpea-brand-footer { position: relative; z-index: 1; }

body.wpea-staff-auth .wpea-brand-logo-wrap {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
}
body.wpea-staff-auth .wpea-brand-logo-wrap img {
  display: block;
  width: min(250px, 100%);
  max-height: 72px;
  object-fit: contain;
}

body.wpea-staff-auth .wpea-brand-kicker {
  margin: 0 0 12px;
  color: #bfe2ff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .16em;
}
body.wpea-staff-auth .wpea-brand-copy h2 {
  max-width: 590px;
  margin: 0 0 16px;
  color: #fff !important;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
}
body.wpea-staff-auth .wpea-brand-copy > p {
  max-width: 540px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.65;
}

body.wpea-staff-auth .wpea-brand-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  max-width: 470px;
  margin-top: 26px;
}
body.wpea-staff-auth .wpea-brand-features span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 9px 0;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
body.wpea-staff-auth .wpea-brand-features i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6cab43;
  box-shadow: 0 0 0 4px rgba(108,171,67,.14);
}
body.wpea-staff-auth .wpea-brand-footer {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.5;
}

body.wpea-staff-auth .wpea-auth-main {
  min-width: 0;
  min-height: 100vh;
  padding: 48px clamp(28px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background:
    radial-gradient(circle at 88% 9%, rgba(8,127,197,.06), transparent 26%),
    #f7f9fc;
}

body.wpea-staff-auth .wpea-auth-form-wrap {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.wpea-staff-auth form.wpea-login-form {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 36px 38px !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 22px 64px rgba(28,45,78,.11) !important;
}

body.wpea-staff-auth .wpea-login-form-brand {
  margin: 0 0 26px !important;
  padding: 0 !important;
}
/* On desktop the primary logo lives in the brand panel. */
body.wpea-staff-auth .wpea-login-form-logo { display: none !important; }
body.wpea-staff-auth .wpea-login-form-kicker {
  margin: 0 0 8px;
  color: #087fc5;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .14em;
}
body.wpea-staff-auth .wpea-login-form-brand h1 {
  margin: 0 0 8px !important;
  color: #273252 !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
}
body.wpea-staff-auth .wpea-login-form-brand p {
  margin: 0 !important;
  color: #768196 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Remove duplicate stock identity / login heading that may live inside the original form. */
body.wpea-staff-auth .wpea-stock-login-heading,
body.wpea-staff-auth .wpea-stock-brand-hidden,
body.wpea-staff-auth .wpea-language-empty { display: none !important; }

body.wpea-staff-auth form.wpea-login-form .form-group,
body.wpea-staff-auth form.wpea-login-form .mb-3,
body.wpea-staff-auth form.wpea-login-form .mb-4 { margin-bottom: 18px !important; }

body.wpea-staff-auth form.wpea-login-form label {
  display: block;
  margin: 0 0 7px !important;
  color: #3a465d !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}
body.wpea-staff-auth form.wpea-login-form input[type="email"],
body.wpea-staff-auth form.wpea-login-form input[type="text"],
body.wpea-staff-auth form.wpea-login-form input[type="password"],
body.wpea-staff-auth form.wpea-login-form select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 1px solid #d8dfe8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #273252 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}
body.wpea-staff-auth form.wpea-login-form input:focus,
body.wpea-staff-auth form.wpea-login-form select:focus {
  outline: none !important;
  border-color: #087fc5 !important;
  box-shadow: 0 0 0 3px rgba(8,127,197,.10) !important;
}

body.wpea-staff-auth form.wpea-login-form button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 8px 0 0 !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #273252 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  box-shadow: 0 10px 24px rgba(39,50,82,.18) !important;
}
body.wpea-staff-auth form.wpea-login-form button[type="submit"]:hover { background: #202a48 !important; }
body.wpea-staff-auth form.wpea-login-form a { color: #087fc5 !important; }

body.wpea-staff-auth .wpea-login-actions-extra {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf0f4;
}
body.wpea-staff-auth .wpea-login-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #ccd6e3;
  border-radius: 10px;
  background: #f8fafc;
  color: #273252 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none !important;
  cursor: pointer;
}
body.wpea-staff-auth .wpea-login-install:hover { border-color: #087fc5; background: #f1f8fc; }
body.wpea-staff-auth .wpea-install-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #6cab43;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}
body.wpea-staff-auth .wpea-login-install-note {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef7fc;
  color: #3d5b72;
  font-size: 12px;
  line-height: 1.45;
}
body.wpea-staff-auth .wpea-login-security {
  margin: 13px 0 0;
  color: #929cac;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
body.wpea-staff-auth .wpea-portal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #8a94a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.wpea-staff-auth .wpea-portal-divider::before,
body.wpea-staff-auth .wpea-portal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7ebf0;
}

/* Optional alerts moved from the stock page into the clean login column. */
body.wpea-staff-auth .wpea-auth-alerts { margin-bottom: 14px; }
body.wpea-staff-auth .wpea-auth-alerts:empty { display: none; }

@media (max-width: 980px) {
  body.wpea-staff-auth .wpea-auth-shell { display: block; min-height: 100vh; overflow: visible; }
  body.wpea-staff-auth .wpea-auth-brand-panel { display: none; }
  body.wpea-staff-auth .wpea-auth-main {
    min-height: 100vh;
    padding: 28px 18px;
    align-items: center;
    overflow: visible;
  }
  body.wpea-staff-auth .wpea-login-form-logo {
    display: block !important;
    width: 220px;
    max-width: 70%;
    height: auto;
    margin: 0 0 22px !important;
  }
}

@media (max-width: 520px) {
  body.wpea-staff-auth .wpea-auth-main { padding: 16px 12px; align-items: flex-start; }
  body.wpea-staff-auth .wpea-auth-form-wrap { width: 100% !important; padding-top: 10px !important; }
  body.wpea-staff-auth form.wpea-login-form {
    padding: 26px 20px !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 38px rgba(28,45,78,.09) !important;
  }
  body.wpea-staff-auth .wpea-login-form-brand h1 { font-size: 27px !important; }
  body.wpea-staff-auth .wpea-login-form-logo { width: 190px; max-width: 72%; }
}
