/* Commerce authentication surfaces. Native MCY forms, hooks and routes remain in place. */
body.midaccs-modern.m-commerce-theme .m-page.m-auth,
body.midaccs-modern.m-commerce-theme .m-page.m-terms {
  --m-fg: #292333;
  --m-muted: #716b78;
  --m-accent: #523160;
  --m-border: #e7e3eb;
  width: min(1120px, calc(100% - 64px));
  max-width: 1120px;
  margin-inline: auto;
  padding: 24px 0 52px;
  min-height: 65vh;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-page-head {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-breadcrumb {
  min-height: 28px;
  margin: 0;
  font-size: 12px;
  color: #716b78;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-breadcrumb a { color: #523160; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch !important;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 46px #3825450c;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 40px;
  color: #ded3e6;
  background: #382545;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-brand {
  background: #fff9ed;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 11px 15px;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-brand img { width: 105px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro-copy { width: 100%; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro h2 {
  margin: 0 0 17px;
  color: #fff;
  font-size: clamp(27px, 2.5vw, 35px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.025em;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro h2 em { color: #ffda76; font-style: normal; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro .m-auth-lead {
  color: #e3d9e9;
  margin-bottom: 20px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.85;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro p {
  color: #d4c4df;
  font-size: 13px;
  line-height: 1.85;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: #ded3e6;
  font-size: 13px;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-benefits li { display: flex; align-items: center; gap: 12px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-benefits li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #ffda76;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro-footer {
  width: 100%;
  border-top: 1px solid #68516f;
  padding-top: 17px;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro-footer a { color: #ffda76; font-size: 13px; gap: 30px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro-footer a:hover { color: #fff0c7; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro-footer svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-form-area {
  padding: 28px 28px !important;
  align-items: center;
  min-width: 0;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-header {
  display: block;
  padding: 14px 22px 0;
  border: 0;
  background: #fff !important;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-tabs {
  display: flex;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid #e7e3eb;
  margin: 0 0 25px;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-tabs a {
  min-height: 39px;
  display: inline-flex;
  align-items: flex-start;
  color: #716b78;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-tabs a[aria-current="page"] { color: #523160; border-color: #523160; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-title {
  margin: 0;
  color: #292333;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-form-description { margin: 8px 0 0; color: #716b78; font-size: 13px; line-height: 1.7; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-content { padding: 23px 22px 7px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-content-full {
  margin: 0 22px;
  padding: 8px 0 10px;
  border-top: 1px solid #e7e3eb;
  background: #fff !important;
  gap: 8px;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-content-full a { color: #523160 !important; font-size: 12px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating > .form-control {
  height: 50px;
  min-height: 50px;
  border: 1px solid #ded7e5;
  border-radius: 8px;
  background: #faf8fc;
  color: #292333;
  font-size: 14px;
  padding: 12px 14px;
  caret-color: #523160;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating > .form-control:focus { border-color: #775088; background: #fff; box-shadow: 0 0 0 3px #ede2f3; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating > label {
  position: static;
  order: -1;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: #504457;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  opacity: 1 !important;
  transform: none !important;
  transition: none;
  pointer-events: auto;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating > label::after { display: none; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating:focus-within > label { color: #523160; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating > .form-control::placeholder { color: #716b78; opacity: 1; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-floating > .form-control:is(:focus, :not(:placeholder-shown)) { padding: 12px 14px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-check-input { accent-color: #523160; border-color: #a69aad; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-check-input:checked { background-color: #523160; border-color: #523160; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-check-label { color: #716b78; font-size: 12px; line-height: 1.85; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-check-label a { color: #523160 !important; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-login-actions { display: block; margin-inline: 0; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-login-actions > div { width: 100%; padding: 0; margin: 0; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-remember .form-check { min-height: 34px; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-submit { margin-top: 8px !important; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth :is(.login-btn, .register-btn, .reset-btn) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #523160;
  border-radius: 8px !important;
  background: #523160;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth :is(.login-btn, .register-btn, .reset-btn):hover:not(:disabled) { background: #382545; border-color: #382545; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth .send-email-code {
  min-height: 50px;
  margin-top: 27.5px;
  border: 1px solid #cbbad6;
  border-radius: 8px !important;
  padding: 8px !important;
  background: #efe9f4;
  color: #523160;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .send-email-code:hover:not(:disabled) { background: #e5d8ed; border-color: #a98ab9; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth :is(.login-btn, .register-btn, .reset-btn, .send-email-code):disabled {
  color: #776d7d;
  background: #eeebf1;
  border-color: #ded7e5;
  opacity: .8;
}
body.midaccs-modern.m-commerce-theme .m-page.m-auth .form-control::placeholder { color: #716b78; }
body.midaccs-modern.m-commerce-theme .m-page.m-auth :is(a, button, input):focus-visible,
body.midaccs-modern.m-commerce-theme .m-page.m-terms :is(a, button):focus-visible { outline: 3px solid #946db3; outline-offset: 3px; }
body.midaccs-modern.m-commerce-theme .m-page.m-register-page .m-auth-intro { justify-content: flex-start; gap: 38px; }
body.midaccs-modern.m-commerce-theme .m-page.m-register-page .m-auth-intro-footer { margin-top: auto; }
body.midaccs-modern.m-commerce-theme .m-page.m-register-page .m-auth-form-area { padding-block: 20px !important; }
body.midaccs-modern.m-commerce-theme .m-page.m-register-page .m-auth-card .block-header { padding-top: 9px; }
body.midaccs-modern.m-commerce-theme .m-page.m-register-page .m-auth-tabs { margin-bottom: 20px; }
body.midaccs-modern.m-commerce-theme .m-page.m-register-page .mb-4 { margin-bottom: 18px !important; }
body.midaccs-modern.m-commerce-theme .m-page.m-reset-page .m-auth-form-area { padding-block: 36px !important; }
body.midaccs-modern.m-commerce-theme .m-page.m-terms { max-width: 1000px; }
body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-page-head { display: grid; grid-template-columns: 1fr auto; gap: 18px 25px; margin-bottom: 24px; padding: 0; background: none; border: 0; border-radius: 0; }
body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-breadcrumb { grid-column: 1 / -1; margin: 0; font-size: 12px; }
body.midaccs-modern.m-commerce-theme .m-terms-heading h1 { margin: 0 0 8px; color: #292333; font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
body.midaccs-modern.m-commerce-theme .m-terms-heading p { color: #716b78; font-size: 13px; }
body.midaccs-modern.m-commerce-theme .m-terms-actions { align-self: end; margin: 0; gap: 10px; }
body.midaccs-modern.m-commerce-theme .m-terms-actions .btn { border-radius: 8px !important; font-size: 12px; }
body.midaccs-modern.m-commerce-theme .m-terms-actions .btn-primary { background: #523160; border-color: #523160; }
body.midaccs-modern.m-commerce-theme .m-terms-actions .btn-outline-primary { color: #523160; border-color: #d9cce2; }
body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-terms-content { padding: 34px 38px; border: 0 !important; box-shadow: none !important; border-radius: 12px !important; background: #fff !important; color: #443b4b; font-size: 14px; line-height: 1.95; }
body.midaccs-modern.m-commerce-theme .m-terms-content :is(h1, h2, h3) { color: #382545; }
body.midaccs-modern.m-commerce-theme .m-terms-content a { color: #523160; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  body.midaccs-modern.m-commerce-theme .m-page.m-auth, body.midaccs-modern.m-commerce-theme .m-page.m-terms { width: calc(100% - 40px); padding-top: 20px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro { padding: 30px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-form-area { padding: 20px 12px !important; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro h2 { font-size: 29px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-page-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.midaccs-modern.m-commerce-theme .m-page.m-auth { max-width: 560px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-layout { display: block; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-intro { display: none; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-form-area { display: block; padding: 18px 16px !important; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-header { padding-inline: 12px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-content { padding-inline: 12px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-content-full { margin-inline: 12px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-title { font-size: 25px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-tabs { margin-bottom: 22px; }
}
@media (max-width: 600px) {
  body.midaccs-modern.m-commerce-theme .m-page.m-auth, body.midaccs-modern.m-commerce-theme .m-page.m-terms { width: calc(100% - 32px); padding: 17px 0 32px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-page-head { margin-bottom: 14px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-layout { border-radius: 12px; box-shadow: none; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-form-area { padding: 17px 9px !important; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-content { padding-top: 22px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-card .block-title { font-size: 24px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-form-description { font-size: 12px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .send-email-code { font-size: 11px; padding-inline: 5px !important; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .row.mb-4 { --bs-gutter-x: 12px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-auth .m-auth-tabs a { min-height: 40px; }
  body.midaccs-modern.m-commerce-theme .m-terms-heading h1 { font-size: 25px; }
  body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-terms-content { padding: 22px 20px; font-size: 13px; }
  body.midaccs-modern.m-commerce-theme .m-terms-actions { display: flex; flex-wrap: wrap; }
}
@media print {
  body.midaccs-modern.m-commerce-theme .m-page.m-terms { width: 100%; max-width: none; padding: 0; }
  body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-page-head { display: block; padding-bottom: 16px; margin: 0; }
  body.midaccs-modern.m-commerce-theme .m-terms-actions { display: none; }
  body.midaccs-modern.m-commerce-theme .m-page.m-terms .m-terms-content { padding: 0; border: 0; box-shadow: none; }
}
