/* ==========================================================================
   Member login (login.php). Uses the public site tokens from styles.css.
   ========================================================================== */
.member-auth__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  width: min(100%, 1040px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(5, 6, 61, 0.1);
  border-radius: 16px;
  background: var(--white, #fff);
  box-shadow: 0 24px 60px rgba(9, 12, 155, 0.1);
}

.member-auth__form { padding: clamp(28px, 4.5vw, 56px); }

.member-auth__roles {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  border: 1px solid rgba(5, 6, 61, 0.12);
  border-radius: 999px;
  background: var(--paper, #f8f9ff);
}

.member-auth__roles a,
.member-auth__roles span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--muted, #62677f);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.member-auth__roles a:hover { color: var(--ink, #11132b); background: rgba(39, 53, 255, 0.08); }
.member-auth__roles [aria-current="page"] { background: var(--teal-dark, #090c9b); color: #fff; }

.member-auth__form h1 {
  margin: 0 0 10px;
  color: var(--ink, #11132b);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.member-auth__lede {
  margin: 0 0 26px;
  color: var(--muted, #62677f);
  font-size: 15px;
  line-height: 1.6;
}

.member-auth__alert {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #f3c2c9;
  border-radius: 10px;
  background: #fbe3e6;
  color: #9b1c2c;
  font-size: 14px;
  line-height: 1.5;
}

.member-auth__alert i { margin-top: 3px; }
.member-auth__alert p { margin: 0; }

.member-auth__fields { display: grid; gap: 18px; }
.member-auth__field { display: grid; gap: 7px; }

.member-auth__field > span:first-child {
  color: var(--ink, #11132b);
  font-size: 14px;
  font-weight: 700;
}

.member-auth__field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c9cde0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #11132b);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.member-auth__field input:focus {
  border-color: var(--teal, #2735ff);
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 53, 255, 0.16);
}

.member-auth__password { position: relative; display: block; }
.member-auth__password input { padding-right: 96px; }

.member-auth__reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #62677f);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(-50%);
}

.member-auth__reveal:hover { background: var(--paper, #f8f9ff); color: var(--ink, #11132b); }
.member-auth__reveal:focus-visible { outline: 2px solid var(--teal, #2735ff); outline-offset: 1px; }

.member-auth__caps { color: #9a6200; font-size: 13px; font-weight: 600; }
.member-auth__caps[hidden] { display: none; }

.button.member-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}

.member-auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(5, 6, 61, 0.1);
  font-size: 14px;
}

.member-auth__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark, #090c9b);
  font-weight: 700;
  text-decoration: none;
}

.member-auth__links a.is-quiet { color: var(--muted, #62677f); font-weight: 600; }
.member-auth__links a:hover { text-decoration: underline; }

.member-auth__aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 4.5vw, 56px);
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(39, 53, 255, 0.45), transparent 60%),
    var(--navy, #05063d);
  color: #fff;
}

.member-auth__eyebrow {
  margin: 0;
  color: #e0be6a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.member-auth__aside h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}

.member-auth__aside ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.member-auth__aside li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.5;
}

.member-auth__aside li i {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #e0be6a;
  font-size: 14px;
}

.member-auth__tour {
  display: flex;
  gap: 12px;
  margin: auto 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(224, 190, 106, 0.35);
  border-radius: 12px;
  background: rgba(224, 190, 106, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.member-auth__tour svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #e0be6a; }

@media (max-width: 860px) {
  .member-auth__card { grid-template-columns: 1fr; }
  .member-auth__aside { gap: 16px; }
  .member-auth__aside ul { gap: 10px; }
  .member-auth__aside li { font-size: 14px; }
}

@media (max-width: 520px) {
  .member-auth { padding-left: 16px; padding-right: 16px; }
  .member-auth__card { border-radius: 12px; }
  .member-auth__form, .member-auth__aside { padding: 24px 20px; }
  .member-auth__links { flex-direction: column; }
}

/* ---------- My Account: Guide button beside the page title ---------- */
.account-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.account-heading-row .section-heading { margin-bottom: 0; }
.account-heading-row + * { margin-top: 24px; }
