/* ==========================================================================
   本站主题 · 登录 / 注册 / 找回密码  （2026 浅色重构版）
   设计基准：参考图（浅灰页底 + 左侧服务器主视觉 + 右侧白色卡片）
   - 全部选择器收敛在 #login / #regist / #forget 内，避免污染其它页面
   - 唯一全局区块：.country-code-popper（el-select 下拉被挂到 body）
   ========================================================================== */

html, body {
  overflow-x: hidden;
  overflow-y: auto;
}

#login, #regist, #forget {
  --lx-ink: #0e1116;
  --lx-ink2: #1a1f2b;
  --lx-text: #3f4653;
  --lx-muted: #6b7280;
  --lx-muted2: #9aa1ad;
  --lx-line: #eceded;
  --lx-soft: #f5f5f7;
  --lx-soft2: #f2f2f5;
  --lx-blue: #2563eb;
  --lx-btn-a: #2e6fbe;
  --lx-btn-b: #1b4e9c;
  --lx-radius: 22px;
  /* 输入框统一高度：区号下拉内层要用 h-2px 去补 prepend 的上下边框，
     否则 flex 拉伸后 prepend 会比号码框高 2px，两者上下边对不齐 */
  --lx-input-h: 46px;

  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 3.2vw, 40px) clamp(16px, 3vw, 40px) clamp(14px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  /* 必须显式指定：fx-login-rem.js 会把 html 根字号固定为 100px（图形验证码弹窗依赖它），
     不重置这里所有子元素都会继承 100px，行高被撑爆 */
  font-size: 14px;
  line-height: 1.5;
  color: var(--lx-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 兜底：所有直接容器显式字号，避免继承 html 的 100px 根字号 */
#login .lx-shell, #regist .lx-shell, #forget .lx-shell,
#login .lx-brand, #regist .lx-brand, #forget .lx-brand,
#login .lx-panel, #regist .lx-panel, #forget .lx-panel,
#login .lx-card, #regist .lx-card, #forget .lx-card,
#login .lx-form, #regist .lx-form, #forget .lx-form {
  font-size: 14px;
  line-height: 1.5;
}

#login *, #regist *, #forget * { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   外层骨架：左品牌区 + 右卡片，整体居中，最大 1280
   -------------------------------------------------------------------------- */
.lx-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  flex: 1 1 auto;
}

/* ============================ 左侧品牌区 ============================ */
.lx-brand {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 34px);
  padding: 4px 0;
}

/* 可选背景层：后台「启用背景图/视频」后才渲染，默认完全不存在（保持浅色极简） */
.lx-brand-bg {
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  display: none;
}

#login.has-bg .lx-brand-bg,
#regist.has-bg .lx-brand-bg,
#forget.has-bg .lx-brand-bg { display: block; }

#login.has-bg .lx-brand,
#regist.has-bg .lx-brand,
#forget.has-bg .lx-brand {
  padding: clamp(20px, 2.4vw, 32px);
  isolation: isolate;
}

.lx-brand-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--lx-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.lx-brand-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lx-brand-veil {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: calc(var(--lx-bg-veil, 55) / 100);
  z-index: 1;
  pointer-events: none;
}

.lx-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lx-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.lx-logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 268px;
  object-fit: contain;
}

.lx-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--lx-ink);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-logo-text svg { flex: 0 0 auto; color: var(--lx-btn-a); }

.lx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e6e8ec;
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}

.lx-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

/* 主视觉：文案 + 服务器图 */
.lx-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 20px);
  isolation: isolate;
}

.lx-watermark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(150px, 17vw, 250px);
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(14, 17, 22, 0.075);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  max-width: 100%;
  overflow: hidden;
  opacity: 0.9;
}

.lx-hero-copy {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: clamp(0px, 1vw, 12px);
}

.lx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f96a3;
  margin-bottom: 14px;
}

.lx-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lx-btn-a), rgba(46, 111, 190, 0.25));
}

.lx-title {
  margin: 0;
  font-size: clamp(38px, 4.1vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -1.6px;
  color: var(--lx-ink);
}

.lx-title em {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: clamp(19px, 2.05vw, 30px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--lx-ink2);
}

.lx-sub {
  margin: 16px 0 0;
  max-width: 400px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--lx-muted);
}

.lx-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lx-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
}

.lx-points svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--lx-btn-a);
}

.lx-hero-art {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lx-rack {
  display: block;
  width: auto;
  height: clamp(260px, 33vh, 440px);
  max-width: none;
  filter: drop-shadow(0 26px 34px rgba(31, 61, 110, 0.16));
}

/* 底部指标 + 落款 */
.lx-brand-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lx-metrics {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
}

.lx-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  padding-left: 14px;
}

.lx-metrics > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: #e2e4e9;
}

.lx-metrics b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--lx-ink);
  line-height: 1.1;
}

.lx-metrics i {
  font-style: normal;
  font-size: 11px;
  color: #8f96a3;
  line-height: 1.1;
}

.lx-foot {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a6acb8;
}

/* ============================ 右侧卡片 ============================ */
.lx-panel {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lx-card {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid #ecedf1;
  border-radius: var(--lx-radius);
  padding: 22px clamp(20px, 2vw, 28px) 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03),
    0 24px 60px -32px rgba(16, 24, 40, 0.22);
}

/* 卡片顶部一道极淡的品牌发丝光，避免纯白卡片在浅灰底上「浮不起来」 */
.lx-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 111, 190, 0.3), transparent);
  pointer-events: none;
}

/* ---- 三段 Tab（登录 / 注册 / 找回密码） ---- */
.lx-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: #f1f1f4;
}

.lx-tabs > * {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.lx-tabs > *:hover { color: #111827; }

.lx-tabs > .on {
  background: #fff;
  color: var(--lx-ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08),
    0 0 0 1px rgba(16, 24, 40, 0.03);
  cursor: default;
}

/* ---- 卡片标题 ---- */
.lx-card-head { margin: 24px 0 0; }

.lx-card-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.9px;
  color: var(--lx-ink);
}

.lx-card-head p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lx-muted);
}

/* ---- 协议行 ---- */
.lx-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7280;
}

.lx-agree .lx-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 5px;
  background: var(--lx-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.lx-agree .lx-check.off {
  background: #fff;
  border: 1.5px solid #cfd3da;
  box-shadow: none;
  color: transparent;
}

.lx-agree .lx-check svg { display: block; }
.lx-agree .lx-check.off svg { opacity: 0; }

.lx-agree label {
  cursor: pointer;
  min-width: 0;
}

.lx-agree a {
  color: var(--lx-blue);
  text-decoration: none;
  font-weight: 600;
}

.lx-agree a:hover { text-decoration: underline; }

.lx-agree-tip {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: #a0a6b2;
}

.lx-agree-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lx-agree-row > .lx-forget {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  padding-top: 1px;
}

.lx-agree-row > .lx-forget:hover { color: var(--lx-blue); }

/* ---- 分段控件（邮箱密码 / 手机密码 / 验证码） ---- */
.lx-seg {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0 0;
  padding: 4px;
  border-radius: 12px;
  background: #f4f4f7;
}

.lx-seg > button {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  padding: 0 4px;
  -webkit-tap-highlight-color: transparent;
}

.lx-seg > button:hover { color: #111827; }

.lx-seg > button.on {
  background: #fff;
  border-color: #e6e8ee;
  color: var(--lx-ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* ---- 表单 ---- */
.lx-form { margin-top: 18px; }

.lx-field { margin-bottom: 12px; }

.lx-field:last-child { margin-bottom: 0; }

.lx-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #565d6b;
}

/* 覆盖 element-ui 默认输入框 */
#login .lx-form .el-input,
#regist .lx-form .el-input,
#forget .lx-form .el-input { width: 100%; }

#login .lx-form .el-input__inner,
#regist .lx-form .el-input__inner,
#forget .lx-form .el-input__inner,
#login .lx-form .el-textarea__inner,
#regist .lx-form .el-textarea__inner,
#forget .lx-form .el-textarea__inner {
  height: var(--lx-input-h);
  line-height: var(--lx-input-h);
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #ecedf0;
  background: #f7f7f9;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--lx-ink);
  transition: border-color 0.16s ease, background 0.16s ease,
    box-shadow 0.16s ease;
  box-shadow: none;
}

#login .lx-form .el-input__inner::placeholder,
#regist .lx-form .el-input__inner::placeholder,
#forget .lx-form .el-input__inner::placeholder {
  color: #a3a9b5;
  font-size: 13.5px;
}

#login .lx-form .el-input__inner:hover,
#regist .lx-form .el-input__inner:hover,
#forget .lx-form .el-input__inner:hover {
  border-color: #dfe2e8;
  background: #f5f5f8;
}

#login .lx-form .el-input__inner:focus,
#regist .lx-form .el-input__inner:focus,
#forget .lx-form .el-input__inner:focus,
#login .lx-form .el-input.is-focus .el-input__inner {
  border-color: #9db9dd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 111, 190, 0.1);
}

#login .lx-form .el-input__prefix,
#regist .lx-form .el-input__prefix,
#forget .lx-form .el-input__prefix { left: 11px; color: #a3a9b5; }

#login .lx-form .el-input__prefix + .el-input__inner,
#regist .lx-form .el-input__prefix + .el-input__inner,
#forget .lx-form .el-input__prefix + .el-input__inner { padding-left: 32px; }

#login .lx-form .el-input__suffix,
#regist .lx-form .el-input__suffix,
#forget .lx-form .el-input__suffix { right: 10px; }

/* 右侧有图标（密码可见 / 清空）时给文字留位，否则长密码会压到图标底下 */
#login .lx-form .el-input--suffix > .el-input__inner,
#regist .lx-form .el-input--suffix > .el-input__inner,
#forget .lx-form .el-input--suffix > .el-input__inner { padding-right: 38px; }

#login .lx-form .el-input__icon,
#regist .lx-form .el-input__icon,
#forget .lx-form .el-input__icon { line-height: var(--lx-input-h); font-size: 14px; }

/* ---- 区号 + 手机号 ----
   element-ui 默认把输入框组做成 inline-table，且给组内的 el-select 挂了
   `margin: -10px -20px`（配合 prepend 的 padding:0 20px）。我们把 prepend 的
   padding 归零后，这个负 margin 没跟着改 → table-cell 被压到 43px，
   而内部 el-select 是 82px：区号会溢出到输入框左边界之外，号码紧贴区号看不清。
   这里彻底改成 flex，宽度自己控，不再受 table 自动列宽影响。 */
#login .lx-form .input-with-select,
#regist .lx-form .input-with-select,
#forget .lx-form .input-with-select {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  line-height: normal;
}

#login .lx-form .input-with-select .el-input-group__prepend,
#regist .lx-form .input-with-select .el-input-group__prepend,
#forget .lx-form .input-with-select .el-input-group__prepend {
  display: flex;
  align-items: center;
  flex: 0 0 82px;
  width: 82px;
  background: #f2f2f5;
  border: 1px solid #ecedf0;
  border-right: 0;
  border-radius: 11px 0 0 11px;
  padding: 0;
  /* 与号码框之间补一道极淡分隔线：两块浅灰背景色差太小，不加边界看不清是两段 */
  box-shadow: inset -1px 0 0 #e7e8ec;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
}

#login .lx-form .input-with-select .el-select,
#regist .lx-form .input-with-select .el-select,
#forget .lx-form .input-with-select .el-select {
  display: flex;
  align-items: stretch;
  width: 100%;
  /* 关键：抵消 element 的 margin:-10px -20px */
  margin: 0;
}

#login .lx-form .input-with-select .el-select .el-input,
#regist .lx-form .input-with-select .el-select .el-input,
#forget .lx-form .input-with-select .el-select .el-input {
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* 区号下拉内层：高度 = 输入框高度 - prepend 的上下边框(2px)，正好与号码框等高 */
#login .lx-form .input-with-select .el-select .el-input__inner,
#regist .lx-form .input-with-select .el-select .el-input__inner,
#forget .lx-form .input-with-select .el-select .el-input__inner {
  flex: 1 1 auto;
  height: calc(var(--lx-input-h) - 2px);
  line-height: calc(var(--lx-input-h) - 2px);
  width: 100%;
  padding: 0 20px 0 12px;
  border-radius: 11px 0 0 11px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #4b5563;
  min-width: 0;
  text-overflow: ellipsis;
}

#login .lx-form .input-with-select > .el-input__inner,
#regist .lx-form .input-with-select > .el-input__inner,
#forget .lx-form .input-with-select > .el-input__inner {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-radius: 0 11px 11px 0;
  padding-left: 14px;
}

#login .lx-form .input-with-select .el-select .el-input__suffix,
#regist .lx-form .input-with-select .el-select .el-input__suffix,
#forget .lx-form .input-with-select .el-select .el-input__suffix { right: 7px; }

/* 验证码行 */
.lx-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.lx-code-row > .el-input { flex: 1 1 0; min-width: 0; }

.lx-code-row .lx-send-btn {
  flex: 0 0 auto;
  height: var(--lx-input-h);
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #dfe3ea;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #3f4653;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.lx-code-row .lx-send-btn:hover:not(:disabled) {
  border-color: #9db9dd;
  color: var(--lx-btn-b);
  background: #f7fafd;
}

.lx-code-row .lx-send-btn:disabled,
.lx-code-row .lx-send-btn.is-disabled {
  color: #b3b8c2;
  background: #f7f7f9;
  border-color: #ecedf0;
  cursor: not-allowed;
}

/* 算术验证码 */
.lx-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.lx-captcha-row > .el-input { flex: 1 1 0; min-width: 0; }

.lx-math-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--lx-input-h);
  padding: 0 14px;
  border-radius: 11px;
  border: 1px dashed #d8dde6;
  background: #fafbfc;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #2b3340;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.lx-math-badge:hover { border-color: #9db9dd; background: #f4f8fd; }

.lx-math-badge i { font-size: 12px; color: #9aa1ad; }

/* 错误提示 */
.lx-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #fde3e3;
  font-size: 12.5px;
  line-height: 1.5;
  color: #c02a2a;
}

.lx-error i { margin-top: 1px; }

/* 主按钮 */
.lx-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(102deg, var(--lx-btn-a) 0%, var(--lx-btn-b) 100%);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 22px -12px rgba(27, 78, 156, 0.7);
  -webkit-tap-highlight-color: transparent;
}

.lx-submit:hover:not(:disabled) { filter: brightness(1.06); }

/* 顶部内高光：让按钮有实体厚度，而不是一块纯色渐变 */
.lx-submit::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.lx-submit:active:not(:disabled) { transform: translateY(1px); }

.lx-submit:disabled { opacity: 0.72; cursor: not-allowed; }

.lx-submit > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lx-submit svg { transition: transform 0.2s ease; }

.lx-submit:hover:not(:disabled) svg { transform: translateX(3px); }

/* ---- 登录按钮 + 加官方群 并排 ---- */
.lx-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
}

/* 主按钮退化成 flex 子项：不再吃满整行，高度由并排行统一 */
.lx-actions > .lx-submit {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-top: 0;
}

.lx-join {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dfe4ec;
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: #3f4653;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.lx-join svg { flex: 0 0 auto; color: #12b7f5; }

.lx-join:hover {
  border-color: #c4d4ea;
  background: #f6f9fd;
  color: var(--lx-btn-b);
  box-shadow: 0 6px 16px -12px rgba(16, 24, 40, 0.35);
}

.lx-join:active { transform: translateY(1px); }

/* 次级链接 */
.lx-alt {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: #8f96a3;
}

.lx-alt a {
  color: var(--lx-blue);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.lx-alt a:hover { text-decoration: underline; }

/* 第三方登录 */
.lx-oauth { margin-top: 18px; }

.lx-oauth-div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #b0b6c1;
}

.lx-oauth-div::before,
.lx-oauth-div::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: #eff0f3;
}

.lx-oauth-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.lx-oauth-badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  overflow: hidden;
}

.lx-oauth-badge:hover {
  border-color: #dfe4ec;
  box-shadow: 0 6px 16px -10px rgba(16, 24, 40, 0.3);
  transform: translateY(-1px);
}

.lx-oauth-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* 卡片下方说明 */
.lx-notice {
  margin: 0;
  padding: 0 6px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #a0a6b2;
  text-align: center;
}

/* 页脚版权 */
.lx-copyright {
  flex: 0 0 auto;
  width: 100%;
  margin-top: clamp(20px, 3vw, 34px);
  text-align: center;
  font-size: 11.5px;
  color: #a8aeba;
  line-height: 1.6;
}

.lx-copyright a { color: inherit; text-decoration: none; }

/* ---- 找回密码：步骤条 ---- */
.lx-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
}

.lx-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #b0b6c1;
}

.lx-step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #f1f2f5;
  color: #9aa1ad;
  transition: all 0.2s ease;
}

.lx-step.on { color: #4b5563; }

.lx-step.on .dot { background: #e8effa; color: var(--lx-btn-b); }

.lx-step.cur { color: var(--lx-ink); }

.lx-step.cur .dot { background: var(--lx-btn-b); color: #fff; }

.lx-step-line {
  flex: 1 1 0;
  height: 1px;
  background: #eceef2;
  min-width: 16px;
}

.lx-step-line.on { background: #c3d4ea; }

.lx-verified {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2f8f4;
  border: 1px solid #dff0e5;
  font-size: 12.5px;
  color: #21794a;
  margin-bottom: 14px;
  word-break: break-all;
}

.lx-verified i { flex: 0 0 auto; }

.lx-back {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: #8f96a3;
  cursor: pointer;
  text-decoration: none;
}

.lx-back:hover { color: var(--lx-btn-b); }

/* 密码强度 */
.lx-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #9aa1ad;
  white-space: nowrap;
}

.lx-strength .bar {
  flex: 1 1 0;
  height: 3px;
  border-radius: 2px;
  background: #eef0f3;
  overflow: hidden;
}

.lx-strength .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--lx-btn-a);
  transition: width 0.2s ease;
}

.lx-strength .bar i.lv1 { background: #ef4444; }
.lx-strength .bar i.lv2 { background: #f59e0b; }
.lx-strength .bar i.lv3 { background: #10b981; }

.lx-strength .lv-text { font-weight: 700; color: #6b7280; min-width: 12px; }

/* ---- 区号下拉（挂到 body，需全局） ---- */
.country-code-popper.el-select-dropdown {
  border-radius: 12px;
  border: 1px solid #ecedf1;
  box-shadow: 0 18px 40px -18px rgba(16, 24, 40, 0.3);
  min-width: 210px;
  overflow: hidden;
}

.country-code-popper .el-select-dropdown__item {
  height: 38px;
  line-height: 38px;
  font-size: 13px;
  color: #3f4653;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.country-code-popper .el-select-dropdown__item.hover,
.country-code-popper .el-select-dropdown__item:hover { background: #f4f8fd; }

.country-code-popper .el-select-dropdown__item.selected {
  color: var(--lx-btn-b);
  font-weight: 600;
  background: #eff5fc;
}

.country-code-popper .country-code-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.country-code-popper .country-code-number { color: #9aa1ad; font-variant-numeric: tabular-nums; }

.country-code-popper .el-select-dropdown__item.selected .country-code-number { color: var(--lx-btn-b); }

.country-code-popper .el-scrollbar__bar { display: none; }

/* --------------------------------------------------------------------------
   登录 / 注册 / 找回密码 主视觉：机柜「镶嵌」在宣传文案背后
   - 图片绝对定位、脱离排版流，不再和文案抢横向空间
   - 水平遮罩让图片在文字区域变淡、向右过渡到实体，兼顾构图与可读性
   - 三页共用同一套 Tab，视觉处理保持一致，避免来回切换时断层
   -------------------------------------------------------------------------- */
:is(#login, #regist, #forget) .lx-hero {
  display: block;
  padding-block: clamp(12px, 2vw, 26px);
}

:is(#login, #regist, #forget) .lx-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

:is(#login, #regist, #forget) .lx-hero-art {
  position: absolute;
  /* 纵向放开到整块品牌区，机柜才能立满整列，而不是缩在标题那几行里 */
  top: calc(-1 * clamp(40px, 8vh, 80px));
  bottom: calc(-1 * clamp(40px, 8vh, 80px));
  left: 0;
  right: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 34%,
    #000 66%,
    rgba(0, 0, 0, 0.45) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 34%,
    #000 66%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

:is(#login, #regist, #forget) .lx-rack {
  position: absolute;
  top: 50%;
  left: 66%;
  width: auto;
  height: clamp(340px, 56vh, 520px);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.24;
  filter: saturate(0.5) drop-shadow(0 26px 34px rgba(31, 61, 110, 0.1));
}

/* 文案压在图上时补一点底部亮度，长段落也不会糊 */
:is(#login, #regist, #forget) .lx-sub { color: #46525f; }
:is(#login, #regist, #forget) .lx-points li { color: #414c58; }

/* ==========================================================================
   响应式
   ========================================================================== */

/* 大屏收窄一点 */
@media (max-width: 1180px) {
  .lx-shell { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
}

/* 941~1180 仍是两列，但品牌列被压窄，文案与机柜重叠更深 → 再压淡一档保正文清晰 */
@media (min-width: 941px) and (max-width: 1180px) {
  :is(#login, #regist, #forget) .lx-rack { opacity: 0.19; }
}

/* 平板：上下堆叠，主视觉收成顶部横幅 */
@media (max-width: 940px) {
  #login, #regist, #forget {
    justify-content: flex-start;
    padding: 26px 20px 20px;
  }
  .lx-shell {
    grid-template-columns: minmax(0, 1fr);
    /* 单列时不能吃满剩余高度：grid 默认 align-content:stretch 会把自动行高
       一起拉高，品牌区与卡片之间就会凭空多出几十像素空白 */
    align-content: start;
    flex: 0 0 auto;
    gap: 24px;
    max-width: 520px;
  }
  .lx-brand { gap: 16px; }
  .lx-hero { align-items: flex-end; }
  /* 平板：文案占满整行，机柜缩到右侧做浅淡的收尾，不再挤占标题宽度 */
  :is(#login, #regist, #forget) .lx-hero { padding-block: 10px; }
  :is(#login, #regist, #forget) .lx-hero-art {
    inset: -22px 0 -22px auto;
    width: 116px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, #000 42%, rgba(0, 0, 0, 0.4) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, #000 42%, rgba(0, 0, 0, 0.4) 100%);
  }
  :is(#login, #regist, #forget) .lx-rack {
    left: auto;
    right: -6px;
    width: 96px;
    height: auto;
    transform: translateY(-50%);
    opacity: 0.18;
  }
  :is(#login, #regist, #forget) .lx-hero-copy { padding-right: 96px; max-width: 100%; }
  .lx-title { font-size: clamp(30px, 5.6vw, 40px); letter-spacing: -1px; }
  .lx-title em { font-size: clamp(16px, 2.4vw, 20px); margin-top: 6px; }
  .lx-sub { font-size: 12.5px; margin-top: 12px; max-width: 100%; }
  .lx-points { display: none; }
  .lx-watermark { font-size: clamp(120px, 26vw, 180px); }
  .lx-metrics { display: none; }
  .lx-foot { display: none; }
  .lx-panel { max-width: 100%; }
  .lx-copyright { margin-top: 22px; }
}

/* 手机：卡片铺满，元素紧凑 */
@media (max-width: 640px) {
  #login, #regist, #forget { padding: 18px 14px 16px; --lx-input-h: 44px; }

  .lx-shell { gap: 18px; max-width: 100%; }

  .lx-brand-top { gap: 10px; }
  .lx-logo-img { height: 31px; max-width: 224px; }
  .lx-logo-text { font-size: 14.5px; max-width: 220px; }
  .lx-status { height: 22px; font-size: 9.5px; padding: 0 8px; letter-spacing: 0.06em; }

  .lx-hero { gap: 0; }
  /* 手机：机柜缩到右上角一小片轮廓，文案保持完整可读，不与标题抢视线 */
  :is(#login, #regist, #forget) .lx-hero { padding-block: 6px; }
  :is(#login, #regist, #forget) .lx-hero-art { inset: -20px 0 -20px auto; width: 88px; }
  :is(#login, #regist, #forget) .lx-rack {
    right: -10px;
    width: 72px;
    height: auto;
    opacity: 0.15;
  }
  :is(#login, #regist, #forget) .lx-hero-copy { padding-right: 68px; }
  .lx-watermark { display: none; }
  .lx-kicker { font-size: 9.5px; margin-bottom: 8px; letter-spacing: 0.12em; }
  .lx-title { font-size: 26px; letter-spacing: -0.7px; }
  .lx-title em { font-size: 15px; margin-top: 4px; letter-spacing: -0.3px; }
  .lx-sub {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lx-card {
    border-radius: 18px;
    padding: 16px 16px 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
      0 18px 40px -28px rgba(16, 24, 40, 0.25);
  }

  .lx-tabs { padding: 3px; border-radius: 12px; }
  .lx-tabs > * { height: 36px; font-size: 13px; border-radius: 9px; }
  .lx-tabs > .on { font-size: 13px; }

  .lx-card-head { margin-top: 18px; }
  .lx-card-head h2 { font-size: 22px; letter-spacing: -0.6px; }
  .lx-card-head p { font-size: 12px; margin-top: 6px; }

  .lx-agree { margin-top: 16px; font-size: 12px; gap: 8px; }
  .lx-agree-tip { display: none; }
  .lx-agree-row { gap: 8px; }

  .lx-seg { margin-top: 16px; padding: 3px; border-radius: 11px; }
  .lx-seg > button { height: 32px; font-size: 12.5px; border-radius: 8px; }

  .lx-form { margin-top: 14px; }
  .lx-field { margin-bottom: 10px; }
  .lx-label { font-size: 11.5px; margin-bottom: 6px; }

  #login .lx-form .el-input__inner,
  #regist .lx-form .el-input__inner,
  #forget .lx-form .el-input__inner {
    height: var(--lx-input-h);
    line-height: var(--lx-input-h);
    font-size: 16px; /* 防 iOS 聚焦放大 */
    border-radius: 10px;
  }

  #login .lx-form .el-input__inner::placeholder,
  #regist .lx-form .el-input__inner::placeholder,
  #forget .lx-form .el-input__inner::placeholder { font-size: 13.5px; }

  #login .lx-form .el-input__icon,
  #regist .lx-form .el-input__icon,
  #forget .lx-form .el-input__icon { line-height: var(--lx-input-h); }

  .lx-code-row .lx-send-btn,
  .lx-math-badge { height: var(--lx-input-h); border-radius: 10px; padding: 0 11px; font-size: 12px; }

  .lx-submit { height: 46px; margin-top: 14px; font-size: 14.5px; border-radius: 10px; }

  /* 手机：两个按钮仍并排，但收紧内边距，保证「登录」按钮不至于被挤窄 */
  .lx-actions { margin-top: 14px; gap: 8px; }
  .lx-join { height: 46px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; gap: 6px; }

  .lx-alt { margin-top: 14px; font-size: 12px; }
  .lx-notice { font-size: 11px; }

  /* 手机：7 个 40px 图标 + 12px 间距 = 352px，窄屏会被 flex 压成 30px 的扁方块。
     这里改为固定不收缩 + 收紧间距，保证图标始终是正圆角正方形。 */
  .lx-oauth { margin-top: 16px; }
  .lx-oauth-list { gap: 6px; margin-top: 12px; }
  .lx-oauth-badge { width: 36px; height: 36px; border-radius: 10px; }
  .lx-oauth-badge img { width: 20px; height: 20px; }

  .lx-copyright { font-size: 10.5px; margin-top: 18px; }
}

/* 窄手机（iPhone SE / 360 及以下）：再收一档，保证 7 个图标单行放下 */
@media (max-width: 400px) {
  .lx-oauth-list { gap: 4px; }
  .lx-oauth-badge { width: 34px; height: 34px; border-radius: 9px; }
  .lx-oauth-badge img { width: 19px; height: 19px; }
}

/* 超小屏 */
@media (max-width: 360px) {
  .lx-card { padding: 14px 13px 16px; }
  .lx-title { font-size: 23px; }
  .lx-tabs > * { font-size: 12px; }
  .lx-seg > button { font-size: 11.5px; }
}

/* 横屏矮屏（手机横放） */
@media (max-height: 560px) and (min-width: 641px) {
  #login, #regist, #forget { padding-top: 16px; padding-bottom: 12px; }
  /* 横屏矮屏统一按宽度收机柜，避免宽高互相打架变形 */
  :is(#login, #regist, #forget) .lx-rack { width: 86px; height: auto; }
  .lx-points { display: none; }
  .lx-title { font-size: 32px; }
  .lx-title em { font-size: 18px; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  #login *, #regist *, #forget * {
    transition: none !important;
    animation: none !important;
  }
}
