/* Option 4: a content-driven native login, separate from public welcome. */
.mccc-focused-header,
.mccc-focused-workshop-link { display: none; }
html.mccc-customer-login-entry,
html.mccc-customer-welcome-entry { min-height: 100%; background: #fff; }

body.mccc-customer-login-page {
  min-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  background: #fff;
}

body.mccc-customer-login-page > .crm-page-loader { display: none; }

#loginScreen.customer-focused-login {
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top, 0px)) 22px max(28px, env(safe-area-inset-bottom, 0px));
  overflow: visible;
  background: #fff;
  color: #071845;
  isolation: isolate;
}

#loginScreen.customer-focused-login *,
#loginScreen.customer-focused-login *::before,
#loginScreen.customer-focused-login *::after { box-sizing: border-box; }

#loginScreen.customer-focused-login::before,
#loginScreen.customer-focused-login::after { content: none; }

/* These are the superseded combined-page containers, not authentication UI. */
#loginScreen.customer-focused-login > :is(.login-mobile-hero, .customer-login-brand-header, .customer-login-road-hero, .customer-login-public-links, .mccc-login-intro-shell),
#loginScreen.customer-focused-login .login-card > :is(.brand, .login-mobile-welcome, .customer-login-divider) { display: none !important; }

#loginScreen.customer-focused-login .mccc-focused-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 480px);
  min-height: 44px;
  margin: 0 auto;
}
#loginScreen.customer-focused-login .mccc-focused-header a { display: inline-flex; align-items: center; min-height: 44px; color: #0066ed; text-decoration: none; }
#loginScreen.customer-focused-login .mccc-focused-back { flex: 0 0 32px; justify-content: flex-start; }
#loginScreen.customer-focused-login .mccc-focused-back svg { width: 24px; height: 24px; }
#loginScreen.customer-focused-login .mccc-focused-brand { min-width: 0; flex: 1 1 auto; }
#loginScreen.customer-focused-login .mccc-focused-brand img { display: block; width: min(100%, 245px); height: auto; max-height: 40px; object-fit: contain; object-position: left center; }
#loginScreen.customer-focused-login .mccc-focused-help { flex: 0 0 auto; padding: 0 2px; font-size: 14px; }

#loginScreen.customer-focused-login > .login-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: min(100%, 420px);
  max-width: 420px;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: clamp(32px, 7vh, 70px) auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

#loginScreen.customer-focused-login .login-intro-copy { display: block; margin: 0 0 30px; text-align: left; }
#loginScreen.customer-focused-login #loginTitle { margin: 0 0 8px; color: #071845; font-size: clamp(30px, 8vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
#loginScreen.customer-focused-login #loginIntro { display: block; max-width: none; margin: 0; color: #536583; font-size: 16px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }

#loginScreen.customer-focused-login #loginForm { display: grid; gap: 22px; margin: 0; padding: 0; }
#loginScreen.customer-focused-login .login-field { display: grid; gap: 9px; margin: 0; color: #485b7b; font-size: 16px; font-weight: 600; line-height: 1.35; }
#loginScreen.customer-focused-login .login-field > span:first-child { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
#loginScreen.customer-focused-login .login-field-control { position: relative; display: block; min-width: 0; height: auto; }
#loginScreen.customer-focused-login .login-field-control input,
#loginScreen.customer-focused-login .login-field-control select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 13px 46px;
  border: 1px solid #aabbd7;
  border-radius: 13px;
  outline-offset: 3px;
  background: #fff;
  color: #12254d;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  box-shadow: none;
}
#loginScreen.customer-focused-login .login-field-control input::placeholder { color: #7789a5; opacity: 1; }
#loginScreen.customer-focused-login .login-field-icon { position: absolute; z-index: 1; top: 15px; left: 15px; width: 22px; height: 22px; color: #0066ed; pointer-events: none; }
#loginScreen.customer-focused-login .customer-login-phone-overlay { display: none; }
#loginScreen.customer-focused-login .customer-login-phone-idle #loginId { color: transparent; }
#loginScreen.customer-focused-login .customer-login-phone-idle .customer-login-phone-overlay { position: absolute; inset: 0 15px 0 46px; display: flex; align-items: center; pointer-events: none; color: #7789a5; font-size: 16px; }
#loginScreen.customer-focused-login .customer-login-phone-overlay b { display: inline-flex; align-items: center; height: 30px; margin-right: 13px; padding-right: 13px; border-right: 1px solid #d6e0f2; color: #12254d; font-weight: 650; }
#loginScreen.customer-focused-login .customer-login-phone-overlay b i { display: none; }

#loginScreen.customer-focused-login :is(.customer-login-pin-toggle, .mccc-pin-toggle) { position: absolute; z-index: 2; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: #536b92; cursor: pointer; }
#loginScreen.customer-focused-login :is(.customer-login-pin-toggle, .mccc-pin-toggle) svg { display: block; width: 23px; height: 23px; }
#loginScreen.customer-focused-login #loginSubmitBtn { order: 0; display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 52px; height: auto; margin-top: 8px; padding: 13px 18px; border: 0; border-radius: 13px; background: #0066ed; color: #fff; box-shadow: none; font-size: 18px; font-weight: 750; line-height: 1.4; }
#loginScreen.customer-focused-login #loginSubmitBtn:disabled { opacity: .65; cursor: wait; }
#loginScreen.customer-focused-login #loginSubmitBtn svg { width: 23px; height: 23px; }

#loginScreen.customer-focused-login #resetCustomerPinToggleBtn:not([hidden]) { justify-self: end; align-self: flex-end; display: inline-flex; justify-content: flex-end; align-items: center; min-height: 44px; width: auto; max-width: 100%; margin: -14px 0 -14px; padding: 9px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #0066ed; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: right; }
#loginScreen.customer-focused-login #resetCustomerPinToggleBtn > :is(svg, i) { display: none; }
#loginScreen.customer-focused-login #customerRegisterToggleBtn:not([hidden]) { display: flex; justify-content: center; align-items: center; gap: 7px; width: 100%; min-height: 48px; height: auto; margin: 20px 0 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #0066ed; font-size: 16px; line-height: 1.4; }
#loginScreen.customer-focused-login .login-register-launcher-copy { display: block; }
#loginScreen.customer-focused-login .login-register-launcher-copy strong { color: inherit; font-size: inherit; font-weight: 600; }
#loginScreen.customer-focused-login .login-register-launcher-copy strong::before,
#loginScreen.customer-focused-login .login-register-launcher-copy strong::after { content: none; }
#loginScreen.customer-focused-login :is(.login-register-launcher-icon, .login-register-launcher-copy small, .customer-login-divider) { display: none; }
#loginScreen.customer-focused-login .login-register-launcher > :is(svg, i) { width: 17px; height: 17px; }

#loginScreen.customer-focused-login #passkeyLoginOptional:not([hidden]) { display: block; margin: 16px 0 0; color: #536583; font-size: 14px; }
#loginScreen.customer-focused-login #passkeyLoginOptional summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
#loginScreen.customer-focused-login #loginMessage { margin-top: 14px; color: #8b2638; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#loginScreen.customer-focused-login #loginMessage:empty { display: none; }
#loginScreen.customer-focused-login :is(#customerRegisterPanel, #customerResetPinPanel, #loginCustomerOtpPanel, #loginProgress):not([hidden]) { width: 100%; max-width: 100%; margin-top: 20px; overflow-wrap: anywhere; }
#loginScreen.customer-focused-login :is(#customerRegisterPanel, #customerResetPinPanel, #loginCustomerOtpPanel) input { min-height: 50px; font-size: 16px; }
#loginScreen.customer-focused-login.is-registration-open > .login-card { margin-top: 28px; }
#loginScreen.customer-focused-login.is-registration-open #resetCustomerPinToggleBtn:not([hidden]) { margin: 0; }
#loginScreen.customer-focused-login .mccc-focused-workshop-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; margin-top: 28px; padding: 14px 0; border-top: 1px solid #d6e0f2; color: #071845; font-size: 16px; font-weight: 600; text-decoration: none; }
#loginScreen.customer-focused-login .mccc-focused-workshop-link .mccc-public-icon { color: #0066ed; font-size: 23px; }
#loginScreen.customer-focused-login .mccc-focused-workshop-link .mccc-public-icon:last-child { margin-left: auto; font-size: 19px; }

#loginScreen.customer-focused-login :is(a, button, input, summary):focus-visible { outline: 3px solid #9ec6ff; outline-offset: 3px; }
#loginScreen.customer-focused-login [hidden] { display: none !important; }
body:not(.locked) #loginScreen.customer-focused-login,
body.mccc-customer-welcome-page #loginScreen,
body.mccc-public-page #loginScreen { display: none !important; }

/* Recovery never changes hidden panels or bypasses registration/OTP state. */
body.locked #loginScreen.customer-focused-login.customer-login-recovery:not([hidden]) { display: block !important; height: auto !important; min-height: 100dvh; overflow: visible !important; visibility: visible !important; }
body.locked #loginScreen.customer-focused-login.customer-login-recovery #loginForm:not([hidden]) { display: grid !important; height: auto !important; min-height: 0; visibility: visible !important; }

@media (min-width: 641px) {
  #loginScreen.customer-focused-login { padding-top: 30px; }
  #loginScreen.customer-focused-login > .login-card { margin-top: 64px; }
}
@media (max-width: 359px) {
  #loginScreen.customer-focused-login { padding-inline: 20px; }
  #loginScreen.customer-focused-login .mccc-focused-header { gap: 8px; }
  #loginScreen.customer-focused-login .mccc-focused-brand img { max-height: 33px; }
  #loginScreen.customer-focused-login > .login-card { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  #loginScreen.customer-focused-login * { scroll-behavior: auto; }
}
