/* Bchex Express: log in, register, reset password while logged out.
   These pages keep the store's own shell (custom-header-footer-template: its
   jQuery, Bootstrap, validation and popups stay). This file only restyles that
   shell's markup to the bchex-express design. No field, id or script changes. */

body.bx-auth {
  --navy: #0D1D61; --ink-900: #0F172A; --ink-800: #1F2937; --ink-700: #33475B; --ink-500: #6E7791;
  --ink-300: #C4C9D6; --ink-200: #DCE0EB; --ink-100: #E7E8F1; --wash: #F6F7FB;
  --sb-orange: #F37720; --sb-orange-hover: #F68B3C; --sb-ink: #A84A08; --sb-tint: #FFF2E8;
  --font: 'Aspekta', 'Aspekta Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #fff none !important;
  font-family: var(--font);
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.6;
}
body.bx-auth :is(h1, h2, h3, p, a, label, input, select, button, span, li) { font-family: var(--font); }
body.bx-auth ::placeholder { color: var(--ink-300); }

/* WordPress page meta the old shell printed above the form */
body.bx-auth #content > article > :is(.entry-title, .vcard, .updated) { display: none; }

/* The form card: the shell's own card is the <form>; the .inner around it is only a width box */
body.bx-auth :is(#register, #login, .lost_reset_password, .box-content) .inner {
  max-width: 520px; min-height: 0; display: block; margin: 48px auto 96px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
body.bx-auth.bx-auth :is(#login, #register, #content) .inner > form .field-sec { padding: 0; }
body.bx-auth .inner > form {
  padding: 32px 32px 0; background: #fff; border: 1px solid var(--ink-200); border-radius: 20px;
  box-shadow: 0 18px 40px -24px rgba(13,29,97,0.28); overflow: hidden;
}
body.bx-auth .inner > form .bottom { margin: 22px -32px 0; padding: 14px 32px 18px; background: var(--wash); }
body.bx-auth :is(main, section) { background: none; }
body.bx-auth #register, body.bx-auth #login, body.bx-auth .box-content main > section { padding: 0 16px; min-height: 0; background: none; }
body.bx-auth .field-sec h2 { margin: 0 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
body.bx-auth .form-group { margin: 0 0 16px; }
body.bx-auth .form-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-800); }

/* Fields: the shell puts an icon <img> inside .input, so keep room on the left */
body.bx-auth .input { position: relative; }
body.bx-auth .form-control,
body.bx-auth .input-text {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--ink-200); border-radius: 10px;
  background: #fff; color: var(--ink-900); font-size: 16px; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.bx-auth .input > img:first-child + .form-control { padding-left: 42px; }
body.bx-auth .form-control:hover { border-color: var(--ink-300); }
body.bx-auth .form-control:focus,
body.bx-auth .input-text:focus { outline: none; border-color: var(--sb-orange); box-shadow: 0 0 0 3px rgba(243,119,32,.18); }

/* Buttons */
body.bx-auth :is(.field-sec, .woocommerce-ResetPassword, .modal) .btn,
body.bx-auth .woocommerce-ResetPassword .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  border: 1.5px solid var(--sb-orange); border-radius: 8px; background: var(--sb-orange); color: #111;
  font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; box-shadow: none;
}
body.bx-auth :is(.field-sec, .woocommerce-ResetPassword, .modal) .btn:hover { background: var(--sb-orange-hover); border-color: var(--sb-orange-hover); color: #111; }
body.bx-auth .btn:disabled, body.bx-auth .btn.disablelike { opacity: .55; }
body.bx-auth .modal .btn-close { background-color: transparent; border: 0; min-height: 0; }

/* Small print and links */
body.bx-auth .bottom { border-top: 1px solid var(--ink-100); font-size: 13.5px; color: var(--ink-500); text-align: left; }
body.bx-auth :is(.field-sec, .bottom, .woocommerce-ResetPassword) a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-300); }
body.bx-auth :is(.primary-text, .secondary-text) { color: var(--navy); }

/* Popups (subscriber agreement, applicant PIN) */
body.bx-auth .modal-content { border: 0; border-radius: 20px; box-shadow: 0 32px 64px -36px rgba(13,29,97,.35); }
body.bx-auth .modal-content :is(h1, h2, h3, h4, h5) { color: var(--ink-900); font-weight: 800; }

@media (max-width: 767px) {
  body.bx-auth :is(#register, #login, .lost_reset_password, .box-content) .inner { margin: 28px auto 64px; }
  body.bx-auth .inner > form { padding: 24px 18px 0; }
  body.bx-auth .inner > form .bottom { margin: 18px -18px 0; padding: 12px 18px 16px; }
}

/* The old shell sets its own sizes on p; keep the footer's */
body.bx-auth .bx-footer.bx-chrome .bx-footer-bottom p { font-size: 15px; }

/* Bootstrap rows in the old shell stick out 12px on phones */
body.bx-auth .woocommerce-ResetPassword .row, body.bx-auth .lost_reset_password .row { margin-left: 0; margin-right: 0; }

/* ---------- Log-in page laid out like the design (.bh-auth, .bh-auth-grid, .bh-auth-card, .bh-auth-side); express-auth.js adds body.bx-auth-login ---------- */
body.bx-auth-login .woocommerce > .col-md-6 { width: 100%; max-width: 1210px; flex: none; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
body.bx-auth-login :is(.align-left, .box-content, .box-content main, #login) { margin: 0; padding: 0; max-width: none; }
body.bx-auth-login.bx-auth :is(#login, .box-content) .inner {
  display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 56px; align-items: start;
  max-width: none; margin: 48px 0 96px;
}
/* Card: 30px padding, 16px between rows */
body.bx-auth-login.bx-auth .inner > form#custom_login_form {
  display: grid; gap: 16px; padding: 30px; border-radius: 20px; border: 1px solid var(--ink-200); box-shadow: 0 18px 40px -24px rgba(13,29,97,0.28);
}
body.bx-auth-login.bx-auth.bx-auth :is(#login, #content) .inner > form .field-sec { display: grid; gap: 16px; padding: 0; }
body.bx-auth-login.bx-auth .field-sec h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
body.bx-auth-login.bx-auth .field-sec .form-group { display: grid; gap: 6px; margin: 0; }
body.bx-auth-login.bx-auth .field-sec .form-label { margin: 0; font-size: 14px; line-height: 1.6; }
body.bx-auth-login.bx-auth .bx-req { margin-left: 3px; color: var(--sb-ink); }
body.bx-auth-login.bx-auth .field-sec .input > img { display: none; }
body.bx-auth-login.bx-auth .field-sec .input > img:first-child + .form-control,
body.bx-auth-login.bx-auth .field-sec .form-control { height: 52px; min-height: 0; padding: 12px 14px; font-size: 16px; line-height: 1.6; }
body.bx-auth-login.bx-auth .field-sec a.forgot { justify-self: end; font-size: 14.5px; }
body.bx-auth-login.bx-auth .field-sec button.login-btn { width: 100%; min-height: 0; margin: 4px 0 0 !important; padding: 14px 28px !important; font-size: 16px !important; line-height: 1.2; }
body.bx-auth-login.bx-auth .inner > form .bottom { margin: 0; padding: 0; border: 0; background: none; text-align: left; }
body.bx-auth-login.bx-auth .inner > form .bottom p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-500); }
/* Side column */
body.bx-auth-login .bx-auth-side { display: grid; gap: 14px; justify-items: start; padding-top: 12px; }
body.bx-auth-login .bx-auth-side h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--ink-900); }
body.bx-auth-login .bx-auth-side .bx-auth-body { margin: 0; max-width: 65ch; font-size: 17px; line-height: 1.6; color: var(--ink-700); }
body.bx-auth-login .bx-auth-side .bx-auth-secondary {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border: 1.5px solid var(--ink-300); border-radius: 8px;
  background: #fff; color: var(--navy); font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none;
}
body.bx-auth-login .bx-auth-side .bx-auth-secondary:hover { border-color: var(--navy); background: #EEF1FF; }
body.bx-auth-login .bx-auth-side .bx-auth-fine { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-500); }
body.bx-auth-login .bx-auth-side .bx-auth-fine a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-300); }
@media (max-width: 991px) {
  body.bx-auth-login.bx-auth :is(#login, .box-content) .inner { grid-template-columns: 1fr; gap: 32px; margin: 28px 0 64px; }
  body.bx-auth-login.bx-auth .inner > form#custom_login_form { padding: 22px 18px; }
  body.bx-auth-login .woocommerce > .col-md-6 { padding: 0 16px; }
}
/* measured pass on the log-in card: the old shell's own spacing and sizes */
body.bx-auth-login.bx-auth .field-sec > :is(div, p):empty { display: none; }
body.bx-auth-login.bx-auth .field-sec h2 { margin: 0 !important; padding: 0; }
body.bx-auth-login.bx-auth .field-sec .form-group > * { margin: 0 !important; }
body.bx-auth-login.bx-auth .field-sec .form-control { font-size: 16px !important; height: 52px !important; }
body.bx-auth-login.bx-auth .field-sec a.forgot { font-size: 14.5px !important; line-height: 1.6; margin: 0 !important; }
body.bx-auth-login.bx-auth .field-sec button.login-btn { height: auto !important; line-height: 1.2 !important; border-width: 1px !important; }
body.bx-auth-login.bx-auth .inner > form .bottom { padding: 0 !important; margin: 0 !important; }
body.bx-auth-login.bx-auth .inner > form .bottom p { font-size: 14px !important; line-height: 1.5 !important; padding: 0 !important; }
body.bx-auth-login.bx-auth .field-sec .form-group { margin: 0 !important; padding: 0 !important; }
body.bx-auth-login.bx-auth .field-sec a.forgot { line-height: 1.6 !important; display: inline-block; }
body.bx-auth-login.bx-auth .field-sec h2 { text-transform: none !important; }
body.bx-auth-login.bx-auth .inner > form .bottom, body.bx-auth-login.bx-auth .inner > form .bottom p { text-align: left !important; }
body.bx-auth-login.bx-auth .inner > form .bottom, body.bx-auth-login.bx-auth .inner > form .bottom p { border: 0 !important; }
body.bx-auth-login.bx-auth .inner > form .bottom a { padding: 0 !important; margin: 0 !important; }
body.bx-auth-login.bx-auth .field-sec a.forgot { color: var(--navy) !important; font-weight: 600; }
