@font-face { font-family: MallLoginBrands; src: url('./social-icons.woff2') format('woff2'); font-display: block; }
/* Only the guest authentication surface shares controls across storefronts. */
body[data-login-screen="true"] { --ml-blue: #2468ed; --ml-ink: #252d3b; --ml-muted: #667085; --ml-line: #e5e9f0; }
body[data-login-screen="true"] :is(.site-header,.store-navigation,.template-topbar,.mobile-header,.supplier-entry,.announcement,.bottom-nav,.mobile-bottom-nav,.store-background-layer,.mc-nav,.mc-shell-nav) { display: none !important; }
body[data-login-screen="true"] #accountView > .account-heading,
body[data-login-screen="true"] #memberAuth > .auth-intro { display: none !important; }
body[data-login-screen="true"] #accountView { display: flex !important; flex-direction: column; align-items: center; min-width: 0; border: 0; background: transparent; box-shadow: none; }
body[data-login-screen="true"] #memberAuth { display: block; width: 100%; max-width: 464px; padding: 0; border: 0; background: none; box-shadow: none; margin: 0; }
body[data-login-screen="true"] #memberAuth[hidden] { display: none !important; }
body[data-login-screen="true"] #memberAuth .auth-panel { position: relative; width: 100%; padding: 36px 40px 28px; border: 1px solid #edf0f5; border-radius: 8px; background: #fff; box-shadow: 0 12px 48px #273c6a0a; color: var(--ml-ink); }
body[data-login-screen="true"] #memberAuth * { box-sizing: border-box; letter-spacing: 0; }
.ml-brand { text-align: center; margin: 0 0 22px; }
.ml-brand:has(img:not([hidden])) h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ml-brand img { width: auto; max-width: 196px; height: 56px; object-fit: contain; margin: 0 auto 12px; }
.ml-brand h2 { margin: 0; font-size: 23px; line-height: 1.45; font-weight: 650; color: var(--ml-ink); overflow-wrap: anywhere; }
.ml-brand p { margin: 9px 0 0; color: var(--ml-muted); font-size: 13px; }
body[data-login-screen="true"] #memberAuth .auth-tabs { display: flex; justify-content: center; gap: 32px; border: 0; margin: 0 0 24px; overflow: visible; }
body[data-login-screen="true"] #memberAuth .auth-tabs button { position: relative; min-height: 44px; padding: 0 0 10px; background: transparent; border: 0; color: var(--ml-muted); font-size: 16px; font-weight: 500; }
body[data-login-screen="true"] #memberAuth .auth-tabs button.is-active { color: var(--ml-ink); font-weight: 650; }
body[data-login-screen="true"] #memberAuth .auth-tabs button.is-active::after { content: ''; position: absolute; bottom: 0; width: 26px; height: 3px; left: calc(50% - 13px); background: var(--ml-blue); border-radius: 2px; }
body[data-login-screen="true"] #memberAuth .member-form { gap: 18px; }
body[data-login-screen="true"] #memberAuth .member-form label { display: grid; gap: 8px; font-size: 13px; color: #4b5565; }
body[data-login-screen="true"] #memberAuth :is(input,select) { height: 48px; min-width: 0; border: 1px solid #dce2ec; border-radius: 6px; padding: 0 14px; font-size: 15px; color: var(--ml-ink); background: #fafbfe; box-shadow: none; }
body[data-login-screen="true"] #memberAuth :is(input,select):focus { border-color: #5185f5; outline: 0; box-shadow: 0 0 0 3px #2468ed14; background: #fff; }
body[data-login-screen="true"] #memberAuth input::placeholder { color: #8993a3; }
body[data-login-screen="true"] #memberAuth .form-grid { grid-template-columns: 1fr; gap: 18px; }
.ml-password { display: flex; position: relative; min-width: 0; }
body[data-login-screen="true"] #memberAuth .ml-password input { width: 100%; padding-right: 48px; }
body[data-login-screen="true"] #memberAuth .ml-password button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: #788395; padding: 11px; cursor: pointer; }
.ml-password svg { width: 20px; height: 20px; }
body[data-login-screen="true"] #memberAuth .primary-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 11px 20px; margin: 4px 0 0; color: #fff; background: var(--ml-blue); border: 0; border-radius: 6px; font-size: 16px; font-weight: 550; box-shadow: 0 4px 10px #2468ed17; }
body[data-login-screen="true"] #memberAuth .primary-action:hover { background: #1856d3; }
body[data-login-screen="true"] #memberAuth button:disabled { opacity: .5; cursor: not-allowed; }
body[data-login-screen="true"] #memberAuth :focus-visible { outline: 2px solid #2468ed; outline-offset: 3px; }
body[data-login-screen="true"] #memberAuth .account-notice { margin: 0 0 18px; padding: 11px 12px; border: 1px solid #cce0ff; border-radius: 5px; background: #f2f7ff; color: #285595; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
body[data-login-screen="true"] #memberAuth .account-notice.error { background: #fff4f3; border-color: #f4d0cc; color: #b13132; }
.ml-code-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ml-code-row input { flex: 1; width: 0; }
body[data-login-screen="true"] #memberAuth .ml-send { flex: 0 0 112px; height: 48px; border: 1px solid #d8e4fb; border-radius: 6px; background: #f3f7ff; color: #2460c9; font-size: 13px; cursor: pointer; }
.ml-code-note { margin: -4px 0 0; font-size: 12px; line-height: 1.6; color: var(--ml-muted); }
.ml-third { padding-top: 22px; }
.ml-third-label { display: flex; align-items: center; gap: 14px; margin: 0 0 17px; font-size: 12px; color: #828b9b; text-align: center; }
.ml-third-label::before,.ml-third-label::after { content: ''; height: 1px; flex: 1; background: #edf0f5; }
.ml-providers { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 22px; }
body[data-login-screen="true"] #memberAuth .ml-provider { display: grid; justify-items: center; gap: 7px; width: 62px; padding: 0; background: transparent; border: 0; border-radius: 6px; color: #626d7e; font-size: 12px; cursor: pointer; }
.ml-provider-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 44px/1 MallLoginBrands; transition: transform .15s; }
.ml-provider:hover .ml-provider-mark { transform: translateY(-2px); }
.ml-provider[data-provider="qq"] .ml-provider-mark { color: #1da0ef; }
.ml-provider[data-provider="wechat"] .ml-provider-mark { color: #18b46b; }
.ml-provider[data-provider="alipay"] .ml-provider-mark { color: #148be8; }
.ml-provider[data-provider="wechat"] .ml-provider-mark { background: #effbf5; font-size: 31px; }
.ml-provider[data-provider="alipay"] .ml-provider-mark { background: #eef7ff; font-size: 31px; }
.ml-register-link { margin: 12px 0 0; display: flex; gap: 5px; align-items: center; justify-content: center; font-size: 13px; color: var(--ml-muted); }
body[data-login-screen="true"] #memberAuth [data-code-channel-label] { display: flex; justify-content: space-between; align-items: center; }
body[data-login-screen="true"] #memberAuth [data-code-channel-label] select { width: 156px; height: 36px; font-size: 13px; }
body[data-login-screen="true"] #memberAuth .ml-text-button { min-height: 44px; border: 0; padding: 4px; background: none; color: var(--ml-blue); cursor: pointer; font-size: 13px; }
.ml-policies { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--ml-line); font-size: 12px; line-height: 1.7; text-align: center; color: #667085; }
.ml-policy-caption { margin: 0 0 3px; }
.ml-policy-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 3px; }
body[data-login-screen="true"] #memberAuth .ml-policies button { min-width: 0; max-width: 100%; min-height: 36px; color: #325a96; border: 0; border-radius: 4px; background: none; font: inherit; padding: 5px 2px; cursor: pointer; overflow-wrap: anywhere; }
body[data-login-screen="true"] #memberAuth .ml-policies button:hover { color: var(--ml-blue); background: #f3f7ff; }
.ml-policy-divider { color: #b1bac8; }
body[data-login-screen="true"] #memberAuth .policy-consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
body[data-login-screen="true"] #memberAuth .policy-consent-row input { width: 16px; height: 16px; flex: 0 0 16px; padding: 0; margin-top: 3px; accent-color: var(--ml-blue); }
.ml-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; text-decoration: none; font-size: 13px; color: #65738a; }
.ml-back svg { width: 16px; height: 16px; }
.ml-back-wrap { width: 100%; max-width: 464px; margin-bottom: 12px; }
body:not([data-login-screen="true"]) .ml-back-wrap { display: none; }
.ml-method-error { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: #9f4d31; margin: 16px 0 0; }
.ml-oauth-pending { margin-bottom: 20px; padding: 14px; border: 1px solid #d6e3fc; border-radius: 6px; background: #f5f8ff; }
.ml-oauth-pending p { margin: 0 0 10px; color: #48628c; font-size: 13px; line-height: 1.7; }
.ml-oauth-dialog .ml-qr { display: block; width: 220px; height: 220px; max-width: 100%; margin: 16px auto; }
.ml-oauth-dialog p { color: #667085; font-size: 13px; }
body[data-login-screen="true"] #siteFooter { display: block; margin: 0; padding: 12px 24px 24px; border: 0; background: transparent; }
body:not([data-login-screen="true"]) .ml-login-footer { display: none !important; }
body[data-login-screen="true"] #siteFooter, body[data-login-screen="true"] #siteFooter * { box-sizing: border-box; }
body[data-login-screen="true"] #siteFooter[hidden] { display: none; }
/* Hide marketing columns, not the nested legal-information container. */
body[data-login-screen="true"] #siteFooter > .sf-inner { display: none; }
body[data-login-screen="true"] #siteFooter .sf-bottom > .sf-inner { display: block; width: 100%; max-width: 1120px; margin: 0 auto; }
body[data-login-screen="true"] #siteFooter .sf-bottom { border: 0; background: transparent; padding: 0; }
body[data-login-screen="true"] #siteFooter .sf-bottom-links { display: none; }
body[data-login-screen="true"] #siteFooter :is(p,a,span) { color: #667085; font-size: 12px; }
body[data-login-screen="true"] #siteFooter a { text-decoration: none; }
body[data-login-screen="true"] #siteFooter .sf-records { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; margin: 0; line-height: 1.8; }
body[data-login-screen="true"] #siteFooter .sf-records > * { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
body[data-login-screen="true"] #siteFooter .sf-police-record { display: inline-flex; align-items: center; gap: 5px; }
body[data-login-screen="true"] #siteFooter .sf-police-icon { display: block; flex: none; width: 18px; height: 18px; object-fit: contain; }
body[data-login-screen="true"] #siteFooter .sf-legal { text-align: center; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; margin: 7px 0 0; }
body[data-login-screen="true"] #siteFooter a:hover { color: var(--ml-blue); }
@media(max-width:540px) {
  .ml-policies { margin-top: 14px; padding-top: 14px; }
  body[data-login-screen="true"] #siteFooter { padding-left: 16px; padding-right: 16px; }
  body[data-login-screen="true"] #siteFooter .sf-records { gap: 4px 12px; }
}
@media(prefers-reduced-motion:reduce) { .ml-provider-mark { transition: none; } }
