:root {
  --mcx-auth-night: #030815;
  --mcx-auth-panel: #071426;
  --mcx-auth-panel-deep: #040c1b;
  --mcx-auth-field: #061225;
  --mcx-auth-frost: #edf8ff;
  --mcx-auth-text: #c6d9e9;
  --mcx-auth-muted: #819bb3;
  --mcx-auth-ice: #82d0ff;
  --mcx-auth-periwinkle: #a7b7ff;
  --mcx-auth-line: rgba(130, 208, 255, .16);
  --mcx-auth-line-strong: rgba(130, 208, 255, .38);
  --mcx-auth-danger: #ff9cab;
}

body.mcx-auth-page {
  min-height: 100%;
  overflow-x: clip;
  background: var(--mcx-auth-night) !important;
  color: var(--mcx-auth-text) !important;
  color-scheme: dark;
  font-family: var(--mcx-shell-font, Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif) !important;
  -webkit-font-smoothing: antialiased;
}

body.mcx-auth-page #page,
body.mcx-auth-page #content,
body.mcx-auth-page #content > .ast-container,
body.mcx-auth-page #primary,
body.mcx-auth-page #main,
body.mcx-auth-page article,
body.mcx-auth-page .entry-content,
body.mcx-auth-page .elementor,
body.mcx-auth-page .elementor > .e-con,
body.mcx-auth-page .elementor > .e-con > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mcx-auth-page #page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 141, 219, .14), transparent 28rem),
    radial-gradient(circle at 81% 43%, rgba(71, 111, 194, .09), transparent 34rem),
    var(--mcx-auth-night) !important;
}

body.mcx-auth-page #content {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, calc(100dvh - 80px), 780px);
  overflow: hidden;
  border-bottom: 1px solid rgba(130, 208, 255, .08);
}

body.mcx-auth-page .elementor > .e-con > .e-con-inner {
  position: relative;
  z-index: 1;
  min-height: clamp(620px, calc(100dvh - 80px), 780px);
  display: flex !important;
  align-items: flex-start !important;
  align-content: center !important;
  justify-content: center !important;
  padding: clamp(54px, 7vw, 92px) clamp(24px, 7.5vw, 144px) clamp(72px, 8vw, 112px) !important;
}

body.mcx-auth-page .elementor-widget-shortcode {
  position: relative;
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

body.mcx-auth-page .elementor-widget-shortcode > .elementor-widget-container,
body.mcx-auth-page .elementor-widget-shortcode .elementor-shortcode {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.mcx-auth-page .wpum-template.wpum-form {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(34px, 4vw, 48px) clamp(26px, 4vw, 48px) clamp(30px, 3.4vw, 42px) !important;
  overflow: hidden;
  border: 1px solid var(--mcx-auth-line) !important;
  border-radius: 28px 12px 28px 12px !important;
  background:
    linear-gradient(145deg, rgba(12, 31, 54, .96), rgba(4, 12, 27, .985) 72%),
    var(--mcx-auth-panel) !important;
  color: var(--mcx-auth-text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 26px 70px rgba(0, 8, 24, .38) !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

body.mcx-auth-page .wpum-template.wpum-form::before {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 10px;
  color: var(--mcx-auth-frost) !important;
  -webkit-text-fill-color: var(--mcx-auth-frost) !important;
  font-size: clamp(26px, 2.4vw, 32px) !important;
  font-weight: 760 !important;
  line-height: 1.14 !important;
  letter-spacing: -.045em !important;
  text-align: left !important;
  text-wrap: balance;
}

body.page-id-13.mcx-auth-page .wpum-login-form::before {
  content: "账号登录" !important;
}

body.page-id-15.mcx-auth-page .wpum-registration-form::before {
  content: "创建账号" !important;
}

body.page-id-14.mcx-auth-page .wpum-password-recovery-form::before {
  content: "重置密码" !important;
}

body.mcx-auth-page .wpum-template.wpum-form::after {
  display: block !important;
  margin: 12px 0 0 !important;
  color: var(--mcx-auth-muted) !important;
  -webkit-text-fill-color: var(--mcx-auth-muted) !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

body.page-id-13.mcx-auth-page .wpum-login-form::after {
  content: "登录后可继续咨询，并查看产品对比与历史记录" !important;
}

body.page-id-15.mcx-auth-page .wpum-registration-form::after {
  content: "注册后可保存咨询记录、产品对比和选型需求" !important;
}

body.page-id-14.mcx-auth-page .wpum-password-recovery-form::after {
  content: "重置链接只会发送到与账号关联的邮箱" !important;
}

body.mcx-auth-page .wpum-template.wpum-form > p {
  position: relative;
  z-index: 1;
  max-width: 48ch !important;
  margin: 0 0 28px !important;
  color: var(--mcx-auth-muted) !important;
  -webkit-text-fill-color: var(--mcx-auth-muted) !important;
  font-size: 14px !important;
  font-weight: 430 !important;
  line-height: 1.75 !important;
  text-align: left !important;
  text-wrap: pretty;
}

body.mcx-auth-page .wpum-template.wpum-form form {
  position: relative;
  z-index: 1;
  margin: 30px 0 0 !important;
  padding: 0 !important;
}

body.page-id-14.mcx-auth-page .wpum-template.wpum-form form {
  margin-top: 0 !important;
}

body.mcx-auth-page .wpum-template.wpum-form fieldset {
  min-width: 0 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.mcx-auth-page .wpum-template.wpum-form label {
  display: block !important;
  margin: 0 0 9px !important;
  color: var(--mcx-auth-text) !important;
  -webkit-text-fill-color: var(--mcx-auth-text) !important;
  font-size: 13px !important;
  font-weight: 620 !important;
  line-height: 1.5 !important;
  letter-spacing: .015em !important;
}

body.mcx-auth-page .wpum-template.wpum-form .wpum-required {
  margin-left: 4px !important;
  color: var(--mcx-auth-danger) !important;
  -webkit-text-fill-color: var(--mcx-auth-danger) !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="text"],
body.mcx-auth-page .wpum-template.wpum-form input[type="email"],
body.mcx-auth-page .wpum-template.wpum-form input[type="password"] {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 1px solid rgba(130, 208, 255, .18) !important;
  border-radius: 12px 5px 12px 5px !important;
  outline: 0 !important;
  background: rgba(3, 13, 30, .82) !important;
  color: var(--mcx-auth-frost) !important;
  -webkit-text-fill-color: var(--mcx-auth-frost) !important;
  caret-color: var(--mcx-auth-ice) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018) !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 54px !important;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease !important;
  box-sizing: border-box !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="text"]::placeholder,
body.mcx-auth-page .wpum-template.wpum-form input[type="email"]::placeholder,
body.mcx-auth-page .wpum-template.wpum-form input[type="password"]::placeholder {
  color: #627d97 !important;
  -webkit-text-fill-color: #627d97 !important;
  opacity: 1;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="text"]:hover,
body.mcx-auth-page .wpum-template.wpum-form input[type="email"]:hover,
body.mcx-auth-page .wpum-template.wpum-form input[type="password"]:hover {
  border-color: rgba(130, 208, 255, .3) !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="text"]:focus-visible,
body.mcx-auth-page .wpum-template.wpum-form input[type="email"]:focus-visible,
body.mcx-auth-page .wpum-template.wpum-form input[type="password"]:focus-visible {
  border-color: var(--mcx-auth-ice) !important;
  background: #07162a !important;
  box-shadow: 0 0 0 4px rgba(130, 208, 255, .11) !important;
}

/* The registration honeypot must remain outside the visual and keyboard flow. */
body.mcx-auth-page .wpum-registration-form .fieldset-robo {
  position: absolute !important;
  top: auto !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.mcx-auth-page .wpum-template.wpum-form .fieldset-remember,
body.mcx-auth-page .wpum-template.wpum-form .fieldset-privacy {
  margin: 2px 0 24px !important;
}

body.mcx-auth-page .wpum-template.wpum-form .fieldset-remember label,
body.mcx-auth-page .wpum-template.wpum-form .fieldset-privacy label,
body.mcx-auth-page .wpum-template.wpum-form .fieldset-remember .field,
body.mcx-auth-page .wpum-template.wpum-form .fieldset-privacy .field {
  display: flex !important;
  width: auto !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  color: var(--mcx-auth-muted) !important;
  -webkit-text-fill-color: var(--mcx-auth-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  cursor: pointer !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="checkbox"] {
  flex: 0 0 17px !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  margin: 2px 0 0 !important;
  accent-color: var(--mcx-auth-ice) !important;
}

body.mcx-auth-page .wpum-template.wpum-form .fieldset-privacy small.description {
  display: block !important;
  margin: 0 !important;
  color: var(--mcx-auth-muted) !important;
  -webkit-text-fill-color: var(--mcx-auth-muted) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

body.mcx-auth-page .wpum-template.wpum-form .fieldset-privacy > label > .wpum-required {
  display: none !important;
}

body.mcx-auth-page .wpum-template.wpum-form a,
body.mcx-auth-page .wpum-action-links a {
  color: var(--mcx-auth-ice) !important;
  -webkit-text-fill-color: var(--mcx-auth-ice) !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  text-underline-offset: 4px;
}

body.mcx-auth-page .wpum-template.wpum-form a:hover,
body.mcx-auth-page .wpum-action-links a:hover {
  color: var(--mcx-auth-frost) !important;
  -webkit-text-fill-color: var(--mcx-auth-frost) !important;
  text-decoration: underline !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="submit"],
body.mcx-auth-page .wpum-template.wpum-form .button {
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 12px 5px 12px 5px !important;
  background: linear-gradient(100deg, var(--mcx-auth-ice), var(--mcx-auth-periwinkle)) !important;
  color: #031225 !important;
  -webkit-text-fill-color: #031225 !important;
  box-shadow: 0 14px 34px rgba(67, 145, 216, .18) !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 54px !important;
  letter-spacing: .03em !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="submit"]:hover,
body.mcx-auth-page .wpum-template.wpum-form .button:hover {
  filter: brightness(1.06) saturate(.92) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 42px rgba(67, 145, 216, .25) !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="submit"]:active,
body.mcx-auth-page .wpum-template.wpum-form .button:active {
  transform: translateY(1px) scale(.995) !important;
}

body.mcx-auth-page .wpum-template.wpum-form input[type="submit"]:focus-visible,
body.mcx-auth-page .wpum-template.wpum-form .button:focus-visible,
body.mcx-auth-page .wpum-action-links a:focus-visible,
body.mcx-auth-page .wpum-template.wpum-form a:focus-visible {
  outline: 2px solid var(--mcx-auth-frost) !important;
  outline-offset: 3px !important;
}

body.mcx-auth-page .wpum-action-links,
body.mcx-auth-page .elementor-shortcode .wpum-form ~ .wpum-action-links {
  width: 100% !important;
  max-width: none !important;
  margin: 18px 0 0 !important;
  padding: 0 4px !important;
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px 18px !important;
  list-style: none !important;
  text-align: left !important;
}

body.mcx-auth-page .wpum-action-links li,
body.mcx-auth-page .elementor-shortcode .wpum-form ~ .wpum-action-links li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mcx-auth-muted) !important;
  -webkit-text-fill-color: var(--mcx-auth-muted) !important;
  font-size: 13px !important;
  font-weight: 480 !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  list-style: none !important;
}

body.mcx-auth-page .wpum-action-links li + li::before,
body.mcx-auth-page .elementor-shortcode .wpum-form ~ .wpum-action-links li + li::before {
  width: 1px !important;
  height: 13px !important;
  margin-right: 18px !important;
  display: inline-block !important;
  content: "" !important;
  background: rgba(130, 208, 255, .18) !important;
}

/* WP User Manager notices and validation states. */
body.mcx-auth-page .wpum-message,
body.mcx-auth-page .wpum-alert,
body.mcx-auth-page .wpum-error,
body.mcx-auth-page .wpum-success,
body.mcx-auth-page .wpum-form .error,
body.mcx-auth-page .wpum-form .success {
  margin: 0 0 20px !important;
  padding: 13px 15px !important;
  border: 1px solid var(--mcx-auth-line) !important;
  border-radius: 10px 4px 10px 4px !important;
  background: rgba(8, 25, 45, .88) !important;
  color: var(--mcx-auth-text) !important;
  -webkit-text-fill-color: var(--mcx-auth-text) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

body.mcx-auth-page .wpum-error,
body.mcx-auth-page .wpum-form .error {
  border-color: rgba(255, 156, 171, .34) !important;
  color: #ffd4da !important;
  -webkit-text-fill-color: #ffd4da !important;
}

body.mcx-auth-page .wpum-success,
body.mcx-auth-page .wpum-form .success {
  border-color: rgba(105, 218, 184, .34) !important;
  color: #c9f8e9 !important;
  -webkit-text-fill-color: #c9f8e9 !important;
}

@media (max-width: 900px) {
  body.mcx-auth-page .elementor > .e-con > .e-con-inner {
    align-items: center !important;
    justify-content: center !important;
    padding-right: clamp(20px, 5vw, 48px) !important;
    padding-left: clamp(20px, 5vw, 48px) !important;
  }
}

@media (max-width: 640px) {
  body.mcx-auth-page #content,
  body.mcx-auth-page .elementor > .e-con > .e-con-inner {
    min-height: 0;
  }

  body.mcx-auth-page .elementor > .e-con > .e-con-inner {
    padding: 34px 16px 58px !important;
  }

  body.mcx-auth-page .wpum-template.wpum-form {
    padding: 30px 22px 28px !important;
    border-radius: 22px 9px 22px 9px !important;
  }

  body.mcx-auth-page .wpum-template.wpum-form::before {
    font-size: 28px !important;
  }

  body.mcx-auth-page .wpum-action-links,
  body.mcx-auth-page .elementor-shortcode .wpum-form ~ .wpum-action-links {
    gap: 8px 14px !important;
  }

  body.mcx-auth-page .wpum-action-links li + li::before,
  body.mcx-auth-page .elementor-shortcode .wpum-form ~ .wpum-action-links li + li::before {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mcx-auth-page .wpum-template.wpum-form input,
  body.mcx-auth-page .wpum-template.wpum-form .button,
  body.mcx-auth-page .wpum-action-links a {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
