/*
 * EAM Login — split-screen sign-in page.
 * Rendered by [eam_login]; everything scoped under .eam-login.
 * Full-bleed dark image section (keeps the transparent header readable) with a
 * welcome/benefits column on the left and a white form card on the right.
 * Uses site brand tokens (var(--global-*)) and restyles the MemberPress form.
 */

.eam-login {
  /* full-bleed dark image band */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  font-family: var(--global-body-font-family, "Roboto", sans-serif);
  color: var(--global-palette3, #1d1d1d);
  line-height: 1.55;
  min-height: clamp(640px, 92vh, 940px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(20, 24, 44, .86) 0%, rgba(26, 32, 48, .68) 48%, rgba(26, 32, 48, .42) 100%),
    url("/wp-content/uploads/2026/01/book-with-light.jpg") center / cover no-repeat;
}

.eam-login *,
.eam-login *::before,
.eam-login *::after { box-sizing: border-box; }

/* Kadence gives #primary.content-area a 2rem (phone) / 3rem (tablet) top
 * margin. Above this full-bleed dark band it showed as a light strip under the
 * see-through header, with the top of the white logo on it. Zero it so the
 * band starts at y=0 (same fix as Activities/Awards). The :has() selector
 * covers requests where MemberPress swaps the query and the page-id class. */
.page-id-428 #primary.content-area,
#primary.content-area:has(.eam-login) { margin-top: 0; }

.eam-login-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  /* generous top pad clears the transparent royal header */
  padding: 10rem 1.6rem 4rem;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 430px);
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 880px) {
  .eam-login-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 8.5rem 1.4rem 3rem;
    max-width: 560px;
  }
}

/* ---------- left: welcome + benefits (white text on image) ---------- */
.eam-login-welcome { color: #fff; }

.eam-login-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255, 255, 255, .16);
  padding: .45rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.eam-login-welcome__title {
  margin: 0 0 .7rem;
  font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #fff;
}

.eam-login-welcome__lede {
  margin: 0 0 2rem;
  max-width: 46ch;
  font-size: 1.08rem;
  opacity: .92;
}

.eam-login-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.eam-login-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}
.eam-login-benefits svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  fill: #fff;
}
@media (max-width: 880px) {
  .eam-login-welcome__lede { margin-bottom: 1.4rem; }
  .eam-login-benefits { display: none; } /* keep mobile focused on the form */
}

/* ---------- right: white form card ---------- */
.eam-login-card {
  background: var(--global-palette9, #fff);
  border-radius: 18px;
  padding: 2.4rem 2.2rem 2.1rem;
  box-shadow: 0 24px 60px rgba(10, 14, 35, .35);
}

.eam-login-kicker {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--global-palette1, #5a64ad);
}

.eam-login-card__title {
  margin: .35rem 0 1.5rem;
  font-family: var(--global-heading-font-family, "Frank Ruhl Libre", Georgia, serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.14;
  font-weight: 700;
}

.eam-login-meta {
  margin: 1.4rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid #ececef;
  font-size: .9rem;
  color: #5b6160;
}
.eam-login-meta a { color: var(--global-palette1, #5a64ad); font-weight: 600; }

/* ---------- restyle the embedded MemberPress form ---------- */
.eam-login-form .mepro-form { max-width: none; margin: 0; }
.eam-login-form .mepro-form > h1 { display: none; } /* we provide our own heading */

.eam-login-form .mp-form-row { margin: 0 0 1.1rem; }
.eam-login-form .mp-form-label { margin-bottom: .35rem; }
.eam-login-form .mp-form-label label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #3a3f3e;
  letter-spacing: .01em;
}

.eam-login-form input[type="text"],
.eam-login-form input[type="email"],
.eam-login-form input[type="password"] {
  width: 100%;
  padding: .82rem .95rem;
  border: 1px solid #cfd6d4;
  border-radius: 9px;
  background: #fff;
  font: 400 1rem/1.2 var(--global-body-font-family, "Roboto", sans-serif);
  color: var(--global-palette3, #1d1d1d);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.eam-login-form input[type="text"]:focus,
.eam-login-form input[type="email"]:focus,
.eam-login-form input[type="password"]:focus {
  outline: 0;
  border-color: var(--global-palette1, #5a64ad);
  box-shadow: 0 0 0 3px rgba(90, 100, 173, .18);
}
/* keyboard focus: solid 2px brand-indigo ring that follows the input radius */
.eam-login-form input[type="text"]:focus-visible,
.eam-login-form input[type="email"]:focus-visible,
.eam-login-form input[type="password"]:focus-visible {
  outline: 0;
  border-color: var(--global-palette1, #5a64ad);
  box-shadow: 0 0 0 2px var(--global-palette1, #5a64ad);
}

/* show/hide-password control */
.eam-login-form .mp-hide-pw { position: relative; }
.eam-login-form .mp-hide-pw input { padding-right: 3rem; }
.eam-login-form .mp-hide-pw button.mp-hide-pw {
  position: absolute;
  top: 50%;
  right: .35rem;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: .4rem;
  color: #6b716f;
  cursor: pointer;
}

/* remember me */
.eam-login-form .mepr_remember_me {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: #5b6160;
}
.eam-login-form .mepr_remember_me input { width: auto; margin: 0; }
.eam-login-form .mepr_remember_me label { display: inline; margin: 0; font-weight: 400; }

/* submit button */
.eam-login-form input[type="submit"],
.eam-login-form button[type="submit"],
.eam-login-form .mepr-submit {
  width: 100%;
  margin-top: .6rem;
  padding: .92rem 1.4rem;
  border: 0;
  border-radius: 9px;
  background: var(--global-palette1, #5a64ad);
  color: #fff;
  font: 600 1rem/1 var(--global-body-font-family, "Roboto", sans-serif);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.eam-login-form input[type="submit"]:hover,
.eam-login-form button[type="submit"]:hover,
.eam-login-form .mepr-submit:hover { background: #4a548f; transform: translateY(-1px); }
/* drop MemberPress's 3px dashed focus outline; use the brand ring instead */
.eam-login-form input[type="submit"]:focus,
.eam-login-form button[type="submit"]:focus,
.eam-login-form .mepr-submit:focus { outline: 0; }
.eam-login-form input[type="submit"]:focus-visible,
.eam-login-form button[type="submit"]:focus-visible,
.eam-login-form .mepr-submit:focus-visible {
  outline: 0;
  /* white gap keeps the indigo ring visible against the indigo button */
  box-shadow: 0 0 0 2px var(--global-palette9, #fff), 0 0 0 4px var(--global-palette1, #5a64ad);
}

/* forgot-password link rendered inside the form */
.eam-login-form .mepr_login_form_forgot_password,
.eam-login-form .mepr-forgot-password-link { margin-top: 1rem; font-size: .9rem; }
.eam-login-form a { color: var(--global-palette1, #5a64ad); font-weight: 600; }

.eam-login-form .mepr_error,
.eam-login-form .mepr-error {
  background: #fdecec;
  border: 1px solid #f3b4b4;
  color: #a11;
  border-radius: 9px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  font-size: .92rem;
}
