/**
 * BSMC Auth Pages — Split-layout login & registration
 * Dark theme with hero image left, form right.
 */

/* ── Reset MemberPress defaults ──────────────────────────────────────── */
body.mepr-pro-template {
  margin: 0 !important;
  padding: 0 !important;
  background: #0e0e0e !important;
}

body.mepr-pro-template #wpadminbar,
body.mepr-pro-template #masthead,
body.mepr-pro-template header.site-header,
body.mepr-pro-template .site-header,
body.mepr-pro-template .mepr-app-header,
body.mepr-pro-template #mepr-app-header,
body.mepr-pro-template .mepro-login-widget,
body.mepr-pro-template .content-report-popup,
body.mepr-pro-template .block-member-popup,
body.mepr-pro-template #content-report,
body.mepr-pro-template #block-member,
body.mepr-pro-template #reported-content,
body.mepr-pro-template .moderation-popup,
body.mepr-pro-template #bbapp-title {
  display: none !important;
}

html { margin-top: 0 !important; }

body.mepr-pro-template #page,
body.mepr-pro-template .site,
body.mepr-pro-template .guest-layout,
body.mepr-pro-template .app-layout,
body.mepr-pro-template #primary,
body.mepr-pro-template .site-main,
body.mepr-pro-template .mepr-app-content {
  background: #0e0e0e !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* ── Split layout container ──────────────────────────────────────────── */
.bsmc-auth-layout {
  display: flex;
  min-height: 100vh;
  background: #0e0e0e;
}

/* ── Hero panel (left) — login only ───────────────────────────────────── */
.bsmc-auth-hero {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bsmc-auth-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsmc-auth-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.bsmc-auth-hero__logo {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
}

.bsmc-auth-hero__logo img {
  height: 40px;
  width: auto;
}

.bsmc-auth-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 36px 48px;
}

.bsmc-auth-hero__badge {
  display: inline-block;
  background: #edeadf;
  color: #0e0e0e;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.bsmc-auth-hero__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 1.05;
  color: #edeadf;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.bsmc-auth-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bsmc-auth-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(237, 234, 223, 0.15);
  border: 1px solid rgba(237, 234, 223, 0.3);
  color: #edeadf;
  font-family: 'Montserrat', 'Proxima Nova', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
}

.bsmc-auth-hero__pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #edeadf;
  flex-shrink: 0;
}

/* ── Form panel (right) ──────────────────────────────────────────────── */
.bsmc-auth-form {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 80px;
  background: #0e0e0e;
  overflow-y: auto;
  min-height: 100vh;
}

.bsmc-auth-form__inner {
  width: 100%;
  max-width: 420px;
}

/* ── Form styling ────────────────────────────────────────────────────── */
.bsmc-auth-form h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  letter-spacing: 1.8px !important;
  color: #edeadf !important;
  margin-bottom: 24px !important;
}

.bsmc-auth-form label,
.bsmc-auth-form .placeholder-text {
  font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
  font-size: 14px !important;
  color: rgba(237,234,223,0.6) !important;
  background: transparent !important;
  position: static !important;
  transform: none !important;
  display: block !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
}

.bsmc-auth-form input[type="text"],
.bsmc-auth-form input[type="password"],
.bsmc-auth-form input[type="email"],
.bsmc-auth-form input[type="tel"],
.bsmc-auth-form input[type="number"],
.bsmc-auth-form input[type="url"],
.bsmc-auth-form select,
.bsmc-auth-form textarea {
  background: #1a1a1a !important;
  border: 1px solid rgba(237,234,223,0.15) !important;
  border-radius: 8px !important;
  color: #edeadf !important;
  font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
  font-size: 14px !important;
  padding: 12px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s;
}

.bsmc-auth-form input:focus,
.bsmc-auth-form select:focus,
.bsmc-auth-form textarea:focus {
  border-color: #edeadf !important;
  outline: none !important;
}

.bsmc-auth-form input::placeholder,
.bsmc-auth-form textarea::placeholder {
  color: rgba(237,234,223,0.3) !important;
}

/* ── Submit button ───────────────────────────────────────────────────── */
.bsmc-auth-form input[type="submit"],
.bsmc-auth-form .button-primary,
.bsmc-auth-form .mepr-share-button {
  background: #edeadf !important;
  border: none !important;
  border-radius: 8px !important;
  color: #0e0e0e !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  letter-spacing: 1.8px !important;
  padding: 14px 32px !important;
  width: 100% !important;
  cursor: pointer;
  transition: opacity 0.2s;
}

.bsmc-auth-form input[type="submit"]:hover {
  opacity: 0.85;
}

/* ── Form rows full width ─────────────────────────────────────────────── */
.bsmc-auth-form .mp-form-row,
.bsmc-auth-form .mepro-form,
.bsmc-auth-form .mp_wrapper,
.bsmc-auth-form #mepr-template-login,
.bsmc-auth-form #mepro-login-hero,
.bsmc-auth-form .mepro-boxed,
.bsmc-auth-form .mepro-login-contents {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* ── Remember Me — label and checkbox on same line ───────────────────── */
.bsmc-auth-form .mepr_remember_me {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 8px 0 !important;
}

.bsmc-auth-form .mepr_remember_me input[type="checkbox"] {
  accent-color: #edeadf;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

.bsmc-auth-form .mepr_remember_me label {
  margin: 0 !important;
  font-size: 13px !important;
}

/* ── Forgot password / links ─────────────────────────────────────────── */
.bsmc-auth-form .mepr-login-actions a {
  color: rgba(237,234,223,0.5) !important;
  font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

.bsmc-auth-form .mepr-login-actions a:hover {
  color: #edeadf !important;
}

.bsmc-auth-form a {
  color: #edeadf !important;
}

/* ── Password eye icon ───────────────────────────────────────────────── */
.bsmc-auth-form .mp-hide-pw {
  position: relative !important;
}

.bsmc-auth-form button.mp-hide-pw {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  cursor: pointer;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
}

.bsmc-auth-form .dashicons.dashicons-visibility {
  font-size: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  color: transparent !important;
}

.bsmc-auth-form .dashicons.dashicons-visibility::before {
  content: '' !important;
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(237,234,223,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
}

.bsmc-auth-form input[type="password"] {
  padding-right: 40px !important;
}

/* ── Trial CTA ───────────────────────────────────────────────────────── */
.bsmc-login-trial--mepr {
  text-align: center;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(237,234,223,0.08);
}

.bsmc-login-trial--mepr .bsmc-login-trial__text {
  font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
  font-size: 13px;
  font-weight: 500;
  color: rgba(237,234,223,0.5) !important;
  margin: 0 0 12px;
}

.bsmc-login-trial--mepr .bsmc-login-trial__btn {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #edeadf !important;
  border: 1.5px solid #edeadf;
  border-radius: 8px;
  padding: 12px 32px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.bsmc-login-trial--mepr .bsmc-login-trial__btn:hover {
  background: #edeadf;
  color: #0e0e0e !important;
}

/* ── Registration page — minimal overrides, preserve MemberPress layout ── */
.bsmc-register-page .bsmc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(237,234,223,0.5) !important;
  font-family: 'Montserrat', 'Proxima Nova', sans-serif;
  font-size: 13px;
  text-decoration: none !important;
  margin: 20px 0 0 36px;
}

.bsmc-register-page .bsmc-back-link:hover {
  color: #edeadf !important;
}

.bsmc-register-page .bsmc-reg-subtitle {
  font-family: 'Montserrat', 'Proxima Nova', sans-serif;
  font-size: 15px;
  color: rgba(237,234,223,0.6) !important;
  margin: 0 0 16px;
  line-height: 1.5;
}

.bsmc-register-page .bsmc-reg-pills {
  margin-bottom: 28px;
}

.bsmc-register-page .bsmc-auth-hero__pills {
  margin-bottom: 24px;
}

/* Dark theme text colors for register — scoped to body class */
.bsmc-register-page h1,
.bsmc-register-page h2,
.bsmc-register-page h3 {
  color: #edeadf !important;
}

.bsmc-register-page p,
.bsmc-register-page span,
.bsmc-register-page div {
  color: #edeadf !important;
}

.bsmc-register-page label,
.bsmc-register-page .placeholder-text {
  color: rgba(237,234,223,0.6) !important;
  background: transparent !important;
}

.bsmc-register-page a {
  color: #edeadf !important;
}

.bsmc-register-page .mepr-payment-methods-wrapper label {
  border-color: rgba(237,234,223,0.15) !important;
  background: transparent !important;
}

/* Register form inputs — dark theme */
.bsmc-register-page input[type="text"],
.bsmc-register-page input[type="password"],
.bsmc-register-page input[type="email"],
.bsmc-register-page input[type="tel"],
.bsmc-register-page input[type="number"],
.bsmc-register-page input[type="url"],
.bsmc-register-page select,
.bsmc-register-page textarea {
  background: #1a1a1a !important;
  border: 1px solid rgba(237,234,223,0.15) !important;
  border-radius: 8px !important;
  color: #edeadf !important;
  font-family: 'Montserrat', 'Proxima Nova', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  padding: 12px 14px !important;
  height: auto !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.bsmc-register-page select {
  text-align: left !important;
  text-indent: 0 !important;
}

.bsmc-register-page input:focus,
.bsmc-register-page select:focus {
  border-color: #edeadf !important;
  outline: none !important;
}

/* Register submit button */
.bsmc-register-page input[type="submit"],
.bsmc-register-page .mepr-submit {
  background: #edeadf !important;
  border: none !important;
  border-radius: 8px !important;
  color: #0e0e0e !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  letter-spacing: 1.8px !important;
  padding: 14px 32px !important;
  cursor: pointer;
}

/* Register password eye icon */
.bsmc-register-page .mp-hide-pw { position: relative !important; }
.bsmc-register-page button.mp-hide-pw { position: absolute !important; right: 10px !important; top: 50% !important; transform: translateY(-50%) !important; background: transparent !important; border: none !important; }
.bsmc-register-page .dashicons.dashicons-visibility { font-size: 0 !important; width: 20px !important; height: 20px !important; display: block !important; color: transparent !important; }
.bsmc-register-page .dashicons.dashicons-visibility::before { content: '' !important; display: block; width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(237,234,223,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; }
.bsmc-register-page input[type="password"] { padding-right: 40px !important; }

/* Hide $0 total and Project Atlas */
.bsmc-register-page .mepr-price-string,
.bsmc-register-page .mepr-form-has-price-terms,
.bsmc-register-page .mepr-price-info,
.bsmc-register-page .mepr-payment-method-description,
.bsmc-register-page .mepr-pm-name {
  display: none !important;
}

/* Payment icons */
.bsmc-register-page .mepr-payment-method-icons img,
.bsmc-register-page .cc-icons img {
  filter: brightness(0) invert(0.7);
}

/* First/last name row */
.bsmc-auth-form .mp-form-row-group {
  display: flex !important;
  gap: 12px !important;
}

.bsmc-auth-form .mp-form-row-group-wrapper {
  flex: 1 !important;
}


/* Hide Project Atlas / payment method name */
.bsmc-auth-form .mepr-payment-method-description,
.bsmc-auth-form .mepr-pm-name {
  display: none !important;
}

.bsmc-auth-form .mepr-payment-methods-radios label {
  border-color: rgba(237,234,223,0.15) !important;
  background: transparent !important;
}

/* Hide $0.00 total */
.bsmc-auth-form .mepr-price-string,
.bsmc-auth-form .mepr-form-has-price-terms,
.bsmc-auth-form .mepr-price-info {
  display: none !important;
}

/* Payment icons */
.bsmc-auth-form .mepr-payment-method-icons img,
.bsmc-auth-form .cc-icons img {
  filter: brightness(0) invert(0.7);
}

/* Spacers */
.bsmc-auth-form .mp-spacer {
  display: none !important;
}

/* MemberPress boxed container — kill it */
.bsmc-auth-form .mepro-boxed {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block !important;
}

.bsmc-auth-form #mepro-login-hero {
  background: transparent !important;
}

.bsmc-auth-form .mepro-login-contents {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Back to login link */
.bsmc-auth-form .bsmc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(237,234,223,0.5) !important;
  font-family: 'Montserrat', 'Proxima Nova', sans-serif;
  font-size: 13px;
  text-decoration: none !important;
  margin-bottom: 24px;
}

.bsmc-auth-form .bsmc-back-link:hover {
  color: #edeadf !important;
}

/* ── Select dropdown styling ─────────────────────────────────────────── */
.bsmc-auth-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23edeadf' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
}

/* ── Mobile responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bsmc-auth-layout {
    flex-direction: column;
  }

  .bsmc-auth-hero {
    flex: none;
    height: 40vh;
    min-height: 280px;
  }

  .bsmc-auth-hero__headline {
    font-size: 28px;
  }

  .bsmc-auth-hero__content {
    padding: 0 24px 32px;
  }

  .bsmc-auth-hero__logo {
    padding: 20px 24px;
  }

  .bsmc-auth-form {
    flex: none;
    min-height: auto;
    padding: 32px 24px 48px;
  }
}
