/* CFE auth pages — login surface. */
body.login {
    --cfe-ink:               #1B2A3B;
    --cfe-graphite:          #5A5A5A;
    --cfe-mist:              #E1E6EE;
    --cfe-white:             #FFFFFF;
    --cfe-sky-bg:            #E8F1FA;
    --cfe-sky-border:        #B8D6EB;
    --cfe-sky-text:          #1E5A85;
    --cfe-sky-decorative:    #6BB0DB;
    --cfe-mint-bg:           #E8F8EF;
    --cfe-mint-border:       #B8E5C8;
    --cfe-mint-text:         #1E7A4D;
    --cfe-ember-text:        #C68A28;
    --cfe-alert:             #C5483A;
    --cfe-font-sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --cfe-font-display:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.login {
    background: #2c3a4c;
    font-family: var(--cfe-font-sans);
    color: var(--cfe-ink);
    padding: 40px 20px;
    min-height: 100vh;
}
body.login #login {
    /* Subtle lift on the dark page background */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
}

body.login #login {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    margin: 0 auto;
}

body.login h1.wp-login-logo {
    display: none;
}

body.login h1.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

body.login .auth__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
}
body.login .auth__brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
body.login .auth__brand-logo svg {
    width: 100%;
    height: 100%;
}
body.login .auth__brand-text {
    font-family: var(--cfe-font-display);
    font-weight: 500;
    font-size: 13px;
    color: var(--cfe-ink);
    line-height: 1.1;
}
body.login .auth__brand-text em {
    display: block;
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--cfe-graphite);
    margin-top: 2px;
}

body.login p.message.cfe-checkout-message,
body.login .auth__banner {
    background: var(--cfe-sky-bg);
    border: 1px solid var(--cfe-sky-border);
    border-left: 1px solid var(--cfe-sky-border); /* override WP's thick left border */
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--cfe-sky-text);
    font-weight: 400;
    box-shadow: none;
}
body.login p.message.cfe-checkout-message svg,
body.login .auth__banner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--cfe-sky-text);
}
body.login p.message.cfe-checkout-message strong,
body.login .auth__banner strong {
    color: var(--cfe-sky-text);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

body.login .login-heading {
    margin: 0 0 6px;
}
body.login .login-heading h2 {
    font-family: var(--cfe-font-display);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.15;
    color: var(--cfe-ink);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}
body.login .login-heading > span {
    display: none;
}
/* Optional subtitle rendered by login_form_top */
body.login .auth__sub {
    font-size: 13.5px;
    color: var(--cfe-graphite);
    margin: 0 0 20px;
    line-height: 1.5;
}

body.login form#loginform {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
body.login form#loginform p {
    margin: 0 0 12px;
}
body.login form#loginform label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--cfe-ink);
    margin: 0 0 5px;
}
body.login form#loginform input[type="text"],
body.login form#loginform input[type="email"],
body.login form#loginform input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cfe-mist);
    border-radius: 8px;
    background: #fff;
    font-family: var(--cfe-font-sans);
    font-size: 13.5px;
    color: var(--cfe-ink);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
body.login form#loginform input[type="text"]:focus,
body.login form#loginform input[type="email"]:focus,
body.login form#loginform input[type="password"]:focus {
    outline: 0;
    border-color: var(--cfe-sky-decorative);
    box-shadow: 0 0 0 3px rgba(107, 176, 219, 0.20);
}
body.login form#loginform input::placeholder {
    color: var(--cfe-graphite);
    opacity: 0.7;
}

body.login .user-pass-wrap {
    position: relative;
    margin: 0 0 12px;
}
body.login .user-pass-wrap .wp-pwd {
    position: relative;
}
body.login .user-pass-wrap input[type="password"],
body.login .user-pass-wrap input[type="text"] {
    padding-right: 42px;
}
body.login .user-pass-wrap .button.wp-hide-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px;
    cursor: pointer;
    color: var(--cfe-graphite);
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
}
body.login .user-pass-wrap .button.wp-hide-pw:hover {
    color: var(--cfe-ink);
    background: transparent;
}
body.login .user-pass-wrap .button.wp-hide-pw .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

body.login p.lostmenot {
    text-align: right;
    margin: -4px 0 12px;
}
body.login p.lostmenot a {
    color: var(--cfe-sky-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}
body.login p.lostmenot a:hover {
    text-decoration: underline;
}

/* Remember me row */
body.login p.forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 12.5px;
    color: var(--cfe-ink);
    line-height: 1.45;
}
body.login p.forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--cfe-ink);
}
body.login p.forgetmenot label {
    margin: 0;
    cursor: pointer;
}

/* Submit button */
body.login p.submit {
    margin: 0 0 4px;
}
body.login p.submit .button.button-primary {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--cfe-ink);
    color: #fff;
    border: 0;
    font-family: var(--cfe-font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    height: auto;
    transition: background .15s;
}
body.login p.submit .button.button-primary:hover,
body.login p.submit .button.button-primary:focus {
    background: #0F1923;
    color: #fff;
}

body.login #nav,
body.login .auth__ft {
    margin: 18px 0 0;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 13px;
    color: var(--cfe-graphite);
    background: none;
}
body.login #nav a,
body.login .auth__ft a {
    color: var(--cfe-sky-text);
    text-decoration: none;
    font-weight: 500;
}
body.login #nav a:hover,
body.login .auth__ft a:hover {
    text-decoration: underline;
}
body.login #nav .wp-login-lost-password {
    display: none;
}
/* Hide the literal " | " separator before the lost-pw link */
body.login #nav {
    /* this becomes "Register" only */
}

body.login #backtoblog {
    text-align: center;
    margin: 10px 0 0;
    font-size: 12px;
}
body.login #backtoblog a {
    color: var(--cfe-graphite);
    text-decoration: none;
}
body.login #backtoblog a:hover {
    color: var(--cfe-ink);
}

body.login .privacy-policy-page-link {
    margin-top: 14px;
    text-align: center;
    font-size: 11.5px;
    color: var(--cfe-graphite);
}
body.login .privacy-policy-page-link a {
    color: var(--cfe-sky-text);
    text-decoration: none;
}
body.login .privacy-policy-page-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    body.login {
        padding: 20px 16px;
    }
    body.login #login {
        padding: 24px 20px;
        border-radius: 12px;
    }
    body.login .login-heading h2 {
        font-size: 20px;
    }
    body.login p.submit .button.button-primary {
        font-size: 14px;
        padding: 12px 16px;
    }
}

.auth__brand-img {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
}
.auth__brand-logo,
.auth__brand-text { display: none !important; }

body.login form#loginform input[type="text"],
body.login form#loginform input[type="email"],
body.login form#loginform input[type="password"] {
    background-image: none !important;
    background-color: #fff !important;
}

body.login #nav {
    display: none !important;
}

body.login #login .auth__ft {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--cfe-graphite);
}
body.login #login .auth__ft a {
    color: var(--cfe-sky-text);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}
body.login #login .auth__ft a:hover {
    text-decoration: underline;
}

body.login #login .login-heading > span { display: none !important; }

body.login #login .login-heading { display: none !important; }

/* Tighten subtitle spacing under the title. */
body.login #login .auth__title { margin: 0 0 6px; }
body.login #login .auth__sub   { margin: 0 0 20px; font-size: 13.5px; color: var(--cfe-graphite); line-height: 1.5; }

body.login form#loginform label[for="user_login"]::before,
body.login form#loginform label[for="user_pass"]::before,
body.login .user-pass-wrap .wp-pwd::before {
    content: none !important;
    display: none !important;
}

/* Reset the icon-room padding on inputs */
body.login form#loginform input[type="text"],
body.login form#loginform input[type="email"],
body.login form#loginform input[type="password"],
body.login form#loginform input[type="text"]#user_pass {
    padding: 10px 12px !important;
}

body.login form#loginform input[type="password"],
body.login form#loginform input[type="text"]#user_pass {
    padding: 10px 42px 10px 12px !important;
}

body.login form#loginform label .screen-reader-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--cfe-ink) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
    margin-bottom: 5px !important;
}

/* Hide the BB-added .label-switch span (animation indicator) */
body.login form#loginform label .label-switch {
    display: none !important;
}

/* CFE auth pages — bridge CSS (BB/WP DOM → .auth visual canon). */

body.login {
    --cfe-ds-ink:               #1B2A3B;
    --cfe-ds-graphite:          #5A5A5A;
    --cfe-ds-mist:              #E1E6EE;
    --cfe-ds-sky-bg:            #E8F1FA;
    --cfe-ds-sky-border:        #B8D6EB;
    --cfe-ds-sky-text:          #1E5A85;
    --cfe-ds-sky-decorative:    #6BB0DB;
    --cfe-ds-alert:             #C5483A;
    --cfe-ds-font-sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"] {
    background-image: none !important;
    padding-left: 12px !important;
}

body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"] {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid var(--cfe-ds-mist) !important;
    border-radius: 8px !important;
    font-family: var(--cfe-ds-font-sans) !important;
    font-size: 13.5px !important;
    color: var(--cfe-ds-ink) !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s !important;
}
body.login input:focus {
    outline: 0 !important;
    border-color: var(--cfe-ds-sky-decorative) !important;
    box-shadow: 0 0 0 3px rgba(107, 176, 219, 0.20) !important;
}

body.login label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--cfe-ds-ink) !important;
    margin-bottom: 5px !important;
    text-transform: none !important;
}

body.login .user-pass-wrap {
    position: relative;
}
body.login .user-pass-wrap .wp-pwd button {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px !important;
    color: var(--cfe-ds-graphite) !important;
    box-shadow: none !important;
}
body.login .user-pass-wrap .wp-pwd button:hover {
    color: var(--cfe-ds-ink) !important;
}
body.login .user-pass-wrap input[type="password"],
body.login .user-pass-wrap input[type="text"] {
    padding-right: 38px !important;
}
body.login .user-pass-wrap .wp-pwd .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

/* Password toggle after JS-swap to SVG eye. */
body.login .user-pass-wrap .wp-hide-pw.cfe-pw-toggle {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--cfe-graphite) !important;
}
body.login .user-pass-wrap .wp-hide-pw.cfe-pw-toggle:hover {
    color: var(--cfe-ink) !important;
    background: transparent !important;
}
body.login .user-pass-wrap .wp-hide-pw.cfe-pw-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

body.login .forgetmenot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--cfe-ds-ink);
    margin: 14px 0;
}

body.login .login-error,
body.login #login_error {
    background: #FFF4F1;
    border: 1px solid #F4C9BD;
    color: var(--cfe-ds-alert);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    margin-bottom: 14px;
    box-shadow: none !important;
}

/* Kill WP footer links — design has none below the card. */
body.login #backtoblog,
body.login .privacy-policy-page-link {
    display: none !important;
}

/* Login meta row: "Keep me signed in" (left) + "Forgot password?" (right)
   share one space-between row, directly under the password field.
   The .auth__row wrapper is built in class-buddyboss-login.php inline JS. */
body.login .auth__row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0;
}
body.login p.lostmenot,
body.login p.forgetmenot {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}
body.login .auth__row p.forgetmenot {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
body.login .auth__row p.lostmenot {
    display: inline-flex !important;
    text-align: right;
}

/* Submit button after JS swap — matches design's .auth__submit. */
body.login p.submit button#wp-submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--cfe-ink);
    color: #fff;
    border: 0;
    font-family: var(--cfe-font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    height: auto;
    transition: background .15s;
}
body.login p.submit button#wp-submit:hover,
body.login p.submit button#wp-submit:focus {
    background: #0F1923;
    color: #fff;
}
body.login p.submit button#wp-submit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
/* ============================================================
   CFE Checkout-Login — BRIDGE CSS DIFF
   Drop in at the bottom of buddyboss-login.css.
   Targets live BB/WP DOM selectors from /checkout-login/.
   No markup changes. No JS changes. CSS only.
   ============================================================ */


/* ---------- 1 · FONTS ---------- */
/* Plus Jakarta Sans (body/UI) + Outfit (display)
   Enqueue via login_enqueue_scripts on the PHP side:

   wp_enqueue_style(
     'cfe-fonts',
     'https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap',
     [], null
   );

   That's lighter than self-hosted @font-face and matches the rest of the site.
   Below is the override block — fonts must be enqueued first or these
   declarations have nothing to render. */

body.login {
  --cfe-font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cfe-font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cfe-ds-font-sans:    var(--cfe-font-sans);
  --cfe-ds-font-display: var(--cfe-font-display);
}


/* ---------- 2 · TOKEN VALUE OVERRIDES ---------- */
/* Most are right. These three need adjustment to match canon. */
body.login {
  /* Graphite — slightly cooler than #5A5A5A */
  --cfe-graphite: #5B6573;

  /* Mist — needs to be lighter for our borders to feel like CFE */
  --cfe-mist: #E8EAED;

  /* Sky text — the live value (#1E5A85) reads too dark over Sky-bg.
     The accessible canon Sky for inline/link text is #3E8AB8. */
  --cfe-sky-text: #3E8AB8;

  /* Mint text — same accessibility deal. Canon is #0F7A2A. */
  --cfe-mint-text: #0F7A2A;

  --cfe-ds-graphite:   var(--cfe-graphite);
  --cfe-ds-mist:       var(--cfe-mist);
  --cfe-ds-sky-text:   var(--cfe-sky-text);
  --cfe-ds-mint-text:  var(--cfe-mint-text);

  /* Background of the login page should be Ink, not WP grey */
  background: #2c3a4c !important;
}


/* ---------- 3 · CARD ---------- */
body.login #login {
  width: 480px !important;
  max-width: calc(100vw - 32px);
  padding: 32px 36px !important;
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.20) !important;
  margin-top: 48px !important;
}
@media (max-width: 540px) {
  body.login #login {
    padding: 24px 20px !important;
    margin-top: 24px !important;
  }
}


/* ---------- 4 · BRAND LOCKUP ---------- */
body.login .auth__brand {
  display: flex;
  align-items: center;
  margin: 0 0 22px;
}
body.login .auth__brand img.auth__brand-img {
  height: 42px;
  width: auto;
  display: block;
}
@media (max-width: 540px) {
  body.login .auth__brand img.auth__brand-img { height: 34px; }
}


/* ---------- 5 · SKY CHECKOUT BANNER ---------- */
body.login .cfe-checkout-message {
  background: var(--cfe-sky-bg);
  border: 1px solid var(--cfe-sky-border);
  color: var(--cfe-sky-text);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
}
body.login .cfe-checkout-message > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--cfe-sky-text);
}
body.login .cfe-checkout-message strong {
  display: block;
  font-weight: 500;
  color: var(--cfe-sky-text);
  margin-bottom: 2px;
}


/* ---------- 6 · TITLE + SUB ---------- */
body.login .auth__title {
  font-family: var(--cfe-font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  color: var(--cfe-ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
body.login .auth__sub {
  font-family: var(--cfe-font-sans);
  font-size: 13.5px;
  color: var(--cfe-graphite);
  line-height: 1.5;
  margin: 0 0 20px;
}


/* ---------- 7 · FORM RESETS ---------- */
body.login #loginform {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.login #loginform p {
  margin: 0 0 12px;
}


/* ---------- 8 · LABELS ---------- */
body.login #loginform label[for="user_login"],
body.login #loginform label[for="user_pass"] {
  display: block !important;
  font-family: var(--cfe-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cfe-ink);
  margin-bottom: 5px;
  text-transform: none !important;
  line-height: 1.3;
}


/* ---------- 9 · INPUTS — kill dashicons + restyle ---------- */
body.login #user_login,
body.login #user_pass {
  /* Kill any background-image dashicon leak */
  background-image: none !important;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;

  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid var(--cfe-mist) !important;
  border-radius: 8px !important;
  font-family: var(--cfe-font-sans) !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  color: var(--cfe-ink) !important;
  background-color: #fff !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s !important;
  height: auto !important;
  margin: 0 !important;
}
body.login #user_login::placeholder,
body.login #user_pass::placeholder {
  color: var(--cfe-graphite);
  opacity: 0.6;
}
body.login #user_login:focus,
body.login #user_pass:focus {
  outline: 0 !important;
  border-color: var(--cfe-sky-decorative) !important;
  box-shadow: 0 0 0 3px rgba(107, 176, 219, 0.20) !important;
}


/* ---------- 10 · PASSWORD SHOW/HIDE EYE ---------- */
/* Live DOM: .user-pass-wrap > .wp-pwd > input + button.wp-hide-pw.cfe-pw-toggle */
body.login .user-pass-wrap {
  position: relative;
}
body.login .user-pass-wrap .wp-pwd {
  position: relative;
  display: block;
}
body.login .user-pass-wrap input[type="password"],
body.login .user-pass-wrap input[type="text"] {
  padding-right: 40px !important;
}
body.login .user-pass-wrap .wp-hide-pw.cfe-pw-toggle {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
  color: var(--cfe-graphite) !important;
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
body.login .user-pass-wrap .wp-hide-pw.cfe-pw-toggle:hover {
  color: var(--cfe-ink) !important;
  background: rgba(27, 42, 59, 0.04) !important;
}
body.login .user-pass-wrap .wp-hide-pw.cfe-pw-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}


/* ---------- 11 · FORGOT PASSWORD ROW (above remember-me) ---------- */
body.login p.lostmenot {
  text-align: right;
  margin: -6px 0 14px;
}
body.login p.lostmenot a {
  font-family: var(--cfe-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--cfe-graphite);
  text-decoration: none;
  transition: color .15s;
}
body.login p.lostmenot a:hover {
  color: var(--cfe-sky-text);
  text-decoration: underline;
}


/* ---------- 12 · REMEMBER-ME ROW ---------- */
body.login p.forgetmenot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--cfe-ink);
}
body.login p.forgetmenot input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cfe-ink);
  flex-shrink: 0;
}
body.login p.forgetmenot label {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--cfe-ink);
  cursor: pointer;
  line-height: 1.4;
}


/* ---------- 13 · SUBMIT BUTTON ---------- */
body.login p.submit {
  margin: 0 0 16px;
}
body.login button#wp-submit {
  width: 100%;
  margin: 0 !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--cfe-ink) !important;
  color: #fff !important;
  font-family: var(--cfe-font-sans) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 1px 2px rgba(27, 42, 59, 0.10) !important;
  text-shadow: none !important;
  transition: background .15s, box-shadow .15s, transform .15s !important;
  height: auto !important;
}
body.login button#wp-submit:hover {
  background: #0F1923 !important;
  box-shadow: 0 4px 12px rgba(27, 42, 59, 0.18) !important;
}
body.login button#wp-submit:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(27, 42, 59, 0.20) !important;
}
body.login button#wp-submit:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(27, 42, 59, 0.30) !important;
}
body.login button#wp-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ---------- 14 · FOOTER SWITCH LINK ---------- */
body.login #login .auth__ft {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cfe-mist);
  font-family: var(--cfe-font-sans);
  font-size: 13px;
  color: var(--cfe-graphite);
}
body.login #login .auth__ft a {
  color: var(--cfe-sky-text);
  text-decoration: none;
  font-weight: 500;
}
body.login #login .auth__ft a:hover {
  text-decoration: underline;
}


/* ---------- 15 · WP LOGIN-ERROR BLOCK ---------- */
body.login #login_error {
  background: #FFF4F1;
  border: 1px solid #F4C9BD !important;
  color: var(--cfe-alert) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
  box-shadow: none !important;
  font-family: var(--cfe-font-sans) !important;
}
body.login #login_error a { color: var(--cfe-alert); }


/* ---------- 16 · HIDE WP CHROME WE DON'T NEED ---------- */
body.login h1 a,
body.login .privacy-policy-page-link {
  display: none !important;
}


/* ---------- 17 · LANGUAGE SWITCHER (if present) ---------- */
body.login .language-switcher {
  margin-top: 16px;
  text-align: center;
}
body.login .language-switcher select {
  border: 1px solid var(--cfe-mist) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
}

/* Banner — BB '.bb-login .message' has higher specificity and forces
   bg to --bb-primary (#6BB0DB), so Design's --cfe-sky-bg target loses.
   Force bg + border + ink copy with !important. */
body.login p.message.cfe-checkout-message,
body.login .cfe-checkout-message {
  background: var(--cfe-sky-bg) !important;
  border: 1px solid var(--cfe-sky-border) !important;
  color: var(--cfe-ink) !important;
}
body.login .cfe-checkout-message strong {
  color: var(--cfe-ink) !important;
  margin-bottom: 4px;
}
body.login .cfe-checkout-message > svg {
  color: var(--cfe-sky-text) !important;
}
body.login .cfe-checkout-message span {
  display: block;
}

/* Lostpassword instruction — WP outputs <div class="notice notice-info message">
   <p>Please enter your username or email address...</p></div>. Style it as the
   Sky banner with a leading info icon to match /checkout-login/. */
body.login.login-action-lostpassword .notice.notice-info.message {
  background: var(--cfe-sky-bg) !important;
  border: 1px solid var(--cfe-sky-border) !important;
  color: var(--cfe-ink) !important;
  border-radius: 8px !important;
  padding: 12px 14px 12px 38px !important;
  margin: 0 0 20px !important;
  position: relative !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
body.login.login-action-lostpassword .notice.notice-info.message::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4'/><path d='M12 8h.01'/></svg>") no-repeat center;
}
body.login.login-action-lostpassword .notice.notice-info.message p {
  margin: 0 !important;
  color: var(--cfe-ink) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}


/* sign-in validation: red * + red border */
body.login #loginform label[for="user_login"]::after,
body.login #loginform label[for="user_pass"]::after {
  content: " *";
  color: #db222a;
  font-weight: 600;
}
body.login #loginform input.bb-input-error,
body.login #loginform input.bb-input-error:focus {
  border-color: #db222a !important;
  box-shadow: 0 0 0 1px #DB222A1a !important;
}


/* keep the * inline with the label */
body.login #loginform label[for="user_login"]::after,
body.login #loginform label[for="user_pass"]::after { content: "\00A0*"; }
body.login #loginform label[for="user_login"],
body.login #loginform label[for="user_pass"] { white-space: nowrap; }


/* keep label text + * on one inline row */
body.login #loginform label[for="user_login"] .screen-reader-text,
body.login #loginform label[for="user_pass"] .screen-reader-text { display: inline !important; }
