/*
 * BaAlawi Core • Join & Sign-in editorial presentation
 * Inspired by the site's existing People and Library teal, gold and ivory.
 * Scoped to the two named pages. No existing auth handlers are changed.
 */
body.ba-auth-landing {
  --ba-auth-pine: #073b45;
  --ba-auth-teal: #08646a;
  --ba-auth-cream: #faf6ee;
  --ba-auth-gold: #e9c58e;
  --ba-auth-ink: #23373e;
  --ba-auth-muted: #52686d;
}
body.ba-auth-landing main.ba-page-shell {
  max-width: 1390px;
  margin: 0 auto;
  padding: 30px clamp(18px, 3.9vw, 56px) 92px !important;
  box-sizing: border-box;
}
/* Lift only these two block-theme post-content areas to the editorial width. */
body.ba-auth-landing main.ba-page-shell > .wp-block-post-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 0;
}
body.ba-auth-landing .ba-page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  min-height: 250px;
  margin: 0 auto clamp(20px, 2.7vw, 34px);
  padding: clamp(38px, 5.3vw, 76px) clamp(26px, 6.1vw, 86px);
  border: 1px solid rgba(236, 213, 168, .28);
  border-radius: 24px;
  background: linear-gradient(112deg, #062f38 0%, #07535c 58%, #13807d 100%);
  box-shadow: 0 24px 56px rgba(13, 57, 63, .13);
}
body.ba-auth-landing .ba-page-intro:before {
  position: relative;
  z-index: 2;
  display: block;
  content: "BAALAWI  /  MEMBERSHIP";
  font: 700 .74rem/1.4 system-ui, -apple-system, sans-serif;
  letter-spacing: .19em;
  color: var(--ba-auth-gold);
  margin: 0 0 22px;
}
body.ba-auth-landing--sign-in .ba-page-intro:before {
  content: "BAALAWI  /  YOUR ACCOUNT";
}
body.ba-auth-landing .ba-page-intro:after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(55%, 470px);
  aspect-ratio: 1;
  right: -8%;
  top: -76%;
  border-radius: 50%;
  border: 1px solid rgba(244, 217, 165, .28);
  box-shadow: 0 0 0 28px rgba(244, 217, 165, .045),
              0 0 0 92px rgba(244, 217, 165, .038),
              0 0 0 150px rgba(244, 217, 165, .023);
  background: repeating-conic-gradient(from 45deg, rgba(248, 226, 183, .09) 0deg 2deg, transparent 2deg 22.5deg);
}
body.ba-auth-landing .ba-page-intro h1 {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0;
  margin: 0;
  color: #fff8e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.7vw, 5.1rem) !important;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.ba-auth-landing .ba-page-intro h1:after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 25px;
  background: var(--ba-auth-gold);
  border-radius: 9px;
}
body.ba-auth-landing .ba-auth-experience {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  grid-template-areas: "story form";
  gap: clamp(17px, 2.7vw, 34px);
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
body.ba-auth-landing .ba-auth-experience__form {
  grid-area: form;
  min-width: 0;
}
body.ba-auth-landing .ba-auth-story {
  grid-area: story;
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #dedbd0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 3%, rgba(213, 179, 115, .20), transparent 39%),
    linear-gradient(160deg, #f9f6ee 0%, #f0eee5 100%);
  color: var(--ba-auth-ink);
}
body.ba-auth-landing .ba-auth-story__ornament {
  pointer-events: none;
  position: absolute;
  inset: auto -56px -94px auto;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(6, 85, 90, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(6, 85, 90, .035),
              0 0 0 64px rgba(6, 85, 90, .025);
}
body.ba-auth-landing .ba-auth-story__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  padding: clamp(25px, 4vw, 57px);
}
body.ba-auth-landing .ba-auth-story__eyebrow,
body.ba-auth-landing .ba-auth-shell > .ba-member-eyebrow {
  margin: 0 0 19px;
  color: #286d70;
  font: 750 .75rem/1.4 system-ui, -apple-system, sans-serif;
  letter-spacing: .145em;
  text-transform: uppercase;
}
body.ba-auth-landing .ba-auth-story h2 {
  max-width: 480px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.25vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
  color: #173f45;
}
body.ba-auth-landing .ba-auth-story h2 em {
  display: block;
  color: #a36f36;
  font-style: normal;
}
body.ba-auth-landing .ba-auth-story__description {
  max-width: 430px;
  margin: 0 0 36px;
  color: #4e6468;
  line-height: 1.75;
  font-size: 1.03rem;
}
body.ba-auth-landing .ba-auth-story__links {
  display: grid;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid rgba(34, 68, 70, .17);
}
body.ba-auth-landing .ba-auth-story__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 57px;
  padding: 13px 3px;
  border-bottom: 1px solid rgba(34, 68, 70, .14);
  color: #164e55;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease, padding .15s ease;
}
body.ba-auth-landing .ba-auth-story__links a:hover {
  color: #96662d;
  padding-inline: 9px;
}
body.ba-auth-landing .ba-auth-story__links a span:last-child {
  color: #a57b41;
  font-size: 1.15em;
}
body.ba-auth-landing .ba-auth-story__footnote {
  margin: 28px 0 0;
  color: #607176;
  font-size: .87rem;
  line-height: 1.55;
}
body.ba-auth-landing .ba-auth-experience__form > .ba-auth-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: clamp(25px, 4.2vw, 56px);
  border-radius: 22px;
  border: 1px solid rgba(17, 81, 88, .14);
  background: #fff;
  color: var(--ba-auth-ink);
  box-shadow: 0 22px 50px rgba(21, 61, 67, .09);
}
body.ba-auth-landing .ba-auth-shell h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -.025em;
  color: #1d4850;
}
body.ba-auth-landing .ba-auth-shell > p:not(.ba-member-eyebrow):not(.ba-auth-switch):not(.ba-auth-apple-choice) {
  color: var(--ba-auth-muted);
  line-height: 1.7;
  font-size: .98rem;
}
body.ba-auth-landing .ba-auth-form {
  gap: 16px;
  margin: 28px 0 15px;
}
body.ba-auth-landing .ba-auth-form label {
  color: #2b444a;
  font-weight: 650;
  font-size: .92rem;
}
body.ba-auth-landing .ba-auth-form input:not([type="checkbox"]) {
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #bfd0ce;
  border-radius: 11px;
  background: #fcfdfc;
  color: #1a3036;
  box-shadow: none;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.ba-auth-landing .ba-auth-form input:not([type="checkbox"]):focus {
  outline: 2px solid transparent;
  border-color: #17666b;
  box-shadow: 0 0 0 3px rgba(14, 110, 113, .17);
}
body.ba-auth-landing .ba-auth-form .ba-member-button,
body.ba-auth-landing .ba-auth-shell > .ba-member-button {
  min-height: 52px;
  padding: 14px 23px;
  border-radius: 11px;
  background: #075963;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid #075963;
  box-shadow: 0 9px 19px rgba(7, 89, 99, .13);
  transition: background .16s ease, transform .16s ease;
}
body.ba-auth-landing .ba-auth-form .ba-member-button:hover,
body.ba-auth-landing .ba-auth-shell > .ba-member-button:hover {
  background: #064750;
  color: #fff;
  transform: translateY(-1px);
}
body.ba-auth-landing .ba-auth-form .ba-member-button {
  width: 100%;
}
body.ba-auth-landing .ba-auth-shell .ba-auth-links {
  gap: 13px 22px;
  padding-top: 17px;
  border-top: 1px solid #e6ece9;
}
body.ba-auth-landing .ba-auth-shell a:not(.ba-member-button) {
  color: #09616a;
  text-underline-offset: 4px;
}
body.ba-auth-landing .ba-auth-shell a:not(.ba-member-button):hover {
  color: #8e602d;
}
body.ba-auth-landing .ba-auth-shell .ba-auth-check {
  color: #465d64;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
body.ba-auth-landing .ba-auth-form small {
  color: #53696d;
  font-size: .82rem;
}
body.ba-auth-landing .ba-auth-shell .ba-member-note {
  border-left: 3px solid #be9351;
  background: #f9f5ea;
  margin: 16px 0;
}
body.ba-auth-landing .ba-auth-story a:focus-visible,
body.ba-auth-landing .ba-auth-shell a:focus-visible,
body.ba-auth-landing .ba-auth-shell button:focus-visible,
body.ba-auth-landing .ba-auth-form input:focus-visible {
  outline: 3px solid #d9ab5b;
  outline-offset: 3px;
}
@media (max-width: 820px) {
  body.ba-auth-landing main.ba-page-shell {
    padding: 18px 18px 65px !important;
  }
  body.ba-auth-landing .ba-page-intro {
    min-height: 0;
    padding: 41px 30px 46px;
  }
  body.ba-auth-landing .ba-auth-experience {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "form" "story";
    gap: 18px;
  }
  body.ba-auth-landing .ba-auth-story__inner {
    padding: 30px;
  }
  body.ba-auth-landing .ba-auth-story__description {
    margin-bottom: 24px;
  }
  body.ba-auth-landing .ba-auth-story h2 {
    font-size: clamp(2.15rem, 5vw, 3rem);
  }
}
@media (max-width: 480px) {
  body.ba-auth-landing main.ba-page-shell {
    padding: 12px 13px 50px !important;
  }
  body.ba-auth-landing .ba-page-intro {
    padding: 33px 23px 38px;
    border-radius: 18px;
    margin-bottom: 16px;
  }
  body.ba-auth-landing .ba-page-intro h1 {
    font-size: clamp(2.2rem, 10vw, 3rem) !important;
  }
  body.ba-auth-landing .ba-page-intro:before {
    font-size: .67rem;
    margin-bottom: 19px;
  }
  body.ba-auth-landing .ba-auth-experience__form > .ba-auth-shell {
    padding: 26px 22px 31px;
    border-radius: 18px;
  }
  body.ba-auth-landing .ba-auth-story {
    border-radius: 18px;
  }
  body.ba-auth-landing .ba-auth-story__inner {
    padding: 28px 23px;
  }
  body.ba-auth-landing .ba-auth-story h2 {
    font-size: 2.1rem;
  }
  body.ba-auth-landing .ba-auth-form {
    margin: 23px 0 10px;
  }
  body.ba-auth-landing .ba-auth-shell .ba-auth-links {
    align-items: flex-start;
    gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ba-auth-landing .ba-auth-form input,
  body.ba-auth-landing .ba-auth-form .ba-member-button,
  body.ba-auth-landing .ba-auth-story__links a {
    transition: none;
    transform: none;
  }
}

/* AUTH-HERO-SPECIFICITY-FIX: theme's later page-intro rules set transparent
   backgrounds / fixed 1024px widths. The scoped !important values protect
   heading contrast; never alter other WordPress pages. */
body.ba-auth-landing main.ba-page-shell > .ba-page-intro {
  display: block !important;
  box-sizing: border-box !important;
  max-width: 1280px !important;
  width: 100% !important;
  padding: clamp(38px, 5.3vw, 76px) clamp(26px, 6.1vw, 86px) !important;
  margin: 0 auto clamp(20px, 2.7vw, 34px) !important;
  background: linear-gradient(112deg, #062f38 0%, #07535c 58%, #13807d 100%) !important;
  color: #fff8e9 !important;
}
body.ba-auth-landing main.ba-page-shell > .ba-page-intro h1 {
  margin: 0 !important;
  max-width: 820px !important;
  color: #fff8e9 !important;
}
@media (max-width: 820px) {
  body.ba-auth-landing main.ba-page-shell > .ba-page-intro {
    padding: 41px 30px 46px !important;
  }
}
@media (max-width: 480px) {
  body.ba-auth-landing main.ba-page-shell > .ba-page-intro {
    padding: 33px 23px 38px !important;
    margin-bottom: 16px !important;
  }
}
