/* MGC Member Profile 1.5.10 — Theme My Login pages (/login/, /lostpassword/, logged-out)
   and placeholders + bounce notice on the /members/ TML card.
   Does not style the members-only gate (.mgc-gl). */

.mgc-lp,
body.tml-action {
  --brg: #0d2a22;
  --deep: #081c17;
  --mid: #164537;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --ink: #1c1916;
  --soft: #3d372f;
  --gold: #c4a46c;
  --gold2: #d8bd86;
  --line: #d9cfba;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* Hide the empty Kadence "Log In" / "Lost Password" title band */
body.tml-action .entry-hero {
  display: none !important;
}
body.tml-action .content-area {
  margin-top: 1.4rem;
  margin-bottom: 2rem;
}
body.tml-action #primary .entry.single-entry,
body.tml-action #primary .content-bg,
body.tml-action #primary .entry-content-wrap {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Floating green-header card on TML action pages only */
body.tml-action .tml {
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 28.75rem;
  margin: 0 auto 2.2rem;
  background: var(--paper);
  border: 2px solid var(--gold);
  padding: 0 0 1.45rem;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 28, 23, 0.14);
}
body.tml-action .tml *,
body.tml-action .tml *::before,
body.tml-action .tml *::after { box-sizing: border-box; }

.mgc-lp-head {
  background: var(--brg);
  color: var(--cream);
  text-align: center;
  padding: 1.45rem 1.35rem 1.35rem;
  border-bottom: 5px solid var(--gold);
  margin: 0 0 1.25rem;
}
.mgc-lp-head .mgc-lp-logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto .55rem;
  object-fit: contain;
}
.mgc-lp-kicker {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold2);
  margin: 0 0 .35rem;
}
.mgc-lp-head h1,
.mgc-lp-head .mgc-lp-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.35rem;
  line-height: 1.12;
  color: var(--cream);
  text-align: center;
  margin: 0 0 .45rem;
}
.mgc-lp-lead {
  text-align: center;
  margin: 0;
  color: rgba(244, 239, 228, .97);
  font-size: 19px;
  font-family: var(--sans);
}

/* Soft notices (errors, logged out, check-email) — no red banners */
body.tml-action .tml-alerts:empty { display: none; }
body.tml-action .tml-errors,
body.tml-action .tml-messages {
  list-style: none;
  margin: 0 1.45rem 1.1rem;
  padding: 0;
}
body.tml-action .tml-error,
body.tml-action .tml-message,
body.tml-action .tml-success,
.mgc-lp-alert {
  background: #f3ead4;
  border: 2px solid var(--gold);
  border-left-width: 6px;
  color: var(--ink);
  box-shadow: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  padding: .85rem 1rem;
  margin: 0 0 .7rem;
  display: block;
}
.mgc-lp-alert { margin: 0 0 1.1rem; }
.mgx-b .mx-login .mgc-lp-alert { margin: 0 0 1rem; }

/* Fields on TML pages */
body.tml-action .tml .tml-field-wrap {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0 1.45rem .85rem;
}
body.tml-action .tml .tml-rememberme-wrap {
  flex-direction: row;
  align-items: center;
  gap: .55rem;
}
body.tml-action .tml label,
body.tml-action .tml .tml-label {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--sans);
}
body.tml-action .tml .tml-rememberme-wrap .tml-label {
  font-weight: 600;
  margin: 0;
  display: inline;
}
body.tml-action .tml input[type="text"],
body.tml-action .tml input[type="email"],
body.tml-action .tml input[type="password"],
body.tml-action .tml .tml-field {
  width: 100%;
  min-height: 3.3rem;
  padding: .55rem .8rem;
  font-size: 19px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
body.tml-action .tml .tml-pwd .tml-field { padding-right: 2.7rem; }
body.tml-action .tml input[type="text"]:focus,
body.tml-action .tml input[type="email"]:focus,
body.tml-action .tml input[type="password"]:focus,
body.tml-action .tml .tml-field:focus {
  outline: 4px solid #b36b00;
  outline-offset: 2px;
  border-color: var(--gold);
  box-shadow: none;
}
body.tml-action .tml input[type="checkbox"],
body.tml-action .tml .tml-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--brg);
  flex: none;
}
body.tml-action .tml .tml-submit-wrap {
  margin: 0 1.45rem .95rem;
  align-items: stretch;
}
body.tml-action .tml .tml-submit-wrap .tml-button,
body.tml-action .tml button.tml-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  padding: .6rem 1.7rem;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  font-family: var(--sans);
  border: 2px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: var(--brg);
  cursor: pointer;
  box-shadow: none;
}
body.tml-action .tml .tml-submit-wrap .tml-button:hover,
body.tml-action .tml button.tml-button:hover {
  background: var(--gold2);
  border-color: var(--gold);
  color: var(--brg);
}

/* Hide the in-form lost-password intro (the green header already has the lead) */
body.tml-action-lostpassword .tml .tml-field-wrap.tml-message-wrap .tml-message,
body.tml-action-lostpassword .tml .tml-message-wrap { display: none; }

/* Forgot/Log in (TML links) above Join, matching the mockup, even though Join is output first in the HTML. */
body.tml-action .tml {
  display: flex;
  flex-direction: column;
}
body.tml-action .tml .tml-links { order: 10; }
body.tml-action .tml .mgc-lp-join { order: 11; }

body.tml-action .tml .tml-links {
  list-style: none;
  margin: 0 1.45rem 0;
  padding: .95rem 0 0;
  border-top: 1px solid var(--line);
}
body.tml-action .tml .tml-links li { margin: 0 0 .55rem; padding: 0; list-style: none; }
body.tml-action .tml .tml-links a,
body.tml-action .mgc-lp-join,
body.tml-action .mgc-lp-join a {
  font-size: 19px;
  font-weight: 700;
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--sans);
}
body.tml-action .mgc-lp-join {
  margin: .35rem 1.45rem 0;
  font-weight: 400;
  color: var(--soft);
}
body.tml-action .mgc-lp-join a { color: var(--mid); }


/* Keep bounce notices clear of the sticky site header */
#mgc-members-login,
#mgc-login {
  scroll-margin-top: 7.5rem;
}
@media (min-width: 768px) {
  #mgc-members-login,
  #mgc-login {
    scroll-margin-top: 6.5rem;
  }
}

/* Placeholders (login + /members/ TML card). Labels stay visible. */
body.tml-action .tml input[type="text"]::placeholder,
body.tml-action .tml input[type="password"]::placeholder,
body.tml-action .tml .tml-field::placeholder,
.mgx-b .mx-login .tml input[type="text"]::placeholder,
.mgx-b .mx-login .tml input[type="password"]::placeholder,
.mgx-b .mx-login .tml .tml-field::placeholder {
  font-size: 19px;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-style: italic;
  color: #5c564e;
  opacity: 1;
}

@media (max-width: 560px) {
  body.tml-action .tml { margin-left: .8rem; margin-right: .8rem; }
  .mgc-lp-head { padding: 1.3rem 1.1rem 1.2rem; }
  .mgc-lp-head h1,
  .mgc-lp-head .mgc-lp-title { font-size: 2.05rem; }
  body.tml-action .tml .tml-field-wrap,
  body.tml-action .tml .tml-submit-wrap,
  body.tml-action .tml .tml-errors,
  body.tml-action .tml .tml-messages,
  body.tml-action .tml .tml-links,
  body.tml-action .mgc-lp-join { margin-left: 1.1rem; margin-right: 1.1rem; }

  /* Tighter padding so “Please enter your username or email” fits at 19px on a 390px screen */
  body.tml-action .tml input[type="text"],
  body.tml-action .tml input[type="email"],
  body.tml-action .tml input[type="password"],
  body.tml-action .tml .tml-field {
    padding-left: .55rem;
    padding-right: .55rem;
  }
  body.tml-action .tml .tml-pwd .tml-field { padding-right: 2.7rem; }

  .mgx-b .mx-login .tml input[type="text"],
  .mgx-b .mx-login .tml input[type="email"],
  .mgx-b .mx-login .tml .tml-field {
    padding-left: .55rem !important;
    padding-right: .55rem !important;
  }
  .mgx-b .mx-login .tml .tml-pwd .tml-field { padding-right: 2.6rem !important; }
}
