/* ==========================================================================
   fxuser 主题 · 登录 / 注册 / 找回密码 页面样式
   1:1 还原参考图布局：
   - 左侧：全屏深色星云背景图（cover）+ 左下品牌信息与指标卡
   - 右侧：纯白面板，水平/垂直居中的登录卡片（左对齐标题 + 分段 Tab + 黑底主按钮）
   - 背景图可在「首页管理后台 → 登录页」自定义，与首页模板同一套后台
   ========================================================================== */

[v-cloak] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#login, #regist, #forget {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

.login-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* ==========================================================================
   左侧：背景图区域（默认 46%，可通过 --fx-login-split 调整，后台可改）
   注意：宽度同步由 JS（login.js → syncSplit）接管，保证窗口缩放时
   背景区与白色面板始终按同一比例变化，不会出现“背景没跟着变”的错位。
   ========================================================================== */
.login-aside {
  --fx-login-split: 46%;
  position: relative;
  flex: 0 0 var(--fx-login-split);
  width: var(--fx-login-split);
  max-width: var(--fx-login-split);
  height: 100vh;
  box-sizing: border-box;
  padding: clamp(20px, 2.4vw, 34px) clamp(24px, 3vw, 44px) clamp(18px, 2vh, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #ffffff;
  background-color: #160a1e;
  background-image: var(--fx-login-bg, url("/clientarea/template/pc/fxuser/video/login-bg-poster.jpg"));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 背景遮罩：通版均匀压暗，opacity 严格等于后台「遮罩浓度」百分比。
   0 = 完全无遮罩（原图原样），100 = 接近全黑，线性可预期。 */
.login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #08040f;
  opacity: calc(var(--fx-login-overlay, 32) / 100);
  pointer-events: none;
  z-index: 1;
}

/* 文字可读性交给各文字元素自身的 text-shadow，保证遮罩为 0 时背景原样不被压暗 */
.login-aside > * {
  position: relative;
  z-index: 2;
}

/* ---- 顶部品牌 ---- */
.aside-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
}

/*
 * 深色星云背景上的 LOGO 展示：
 * - is-light：后台「会员中心登录页」上传了浅色版 LOGO，直接原色展示（最清晰）
 * - is-invert：未上传浅色版，用站点彩色 LOGO 反白，只保留轮廓，盾牌不会糊成实心白块
 * 尺寸放大到 54px 高（上限 320px 宽），让品牌区更大气
 */
.brand-logo-img {
  display: block;
  height: 54px;
  width: auto;
  max-width: min(320px, 62%);
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.brand-logo-wrap.is-invert .brand-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.brand-text-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-text-logo .cloud-icon {
  flex-shrink: 0;
  stroke: #ffffff;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.brand-badge-vip {
  display: none;
}

/* ---- 左下主信息区 ---- */
.aside-content {
  margin-top: auto;
  padding-bottom: clamp(12px, 2.2vh, 26px);
  max-width: 620px;
}

.aside-title {
  margin: 0 0 4px 0;
  font-size: clamp(24px, 2.02vw, 36px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.aside-title em {
  font-style: normal;
  display: block;
  background: linear-gradient(92deg, #ffffff 0%, #ffd9ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aside-subtitle {
  margin: 14px 0 0 0;
  font-size: clamp(12px, 0.86vw, 13.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 30em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---- 标签胶囊 ---- */
.aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.aside-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.aside-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4fa3;
  box-shadow: 0 0 6px rgba(255, 79, 163, 0.9);
}

/* ---- 指标卡 ---- */
.aside-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.7vw, 10px);
  margin-top: 16px;
  max-width: 480px;
}

.metric-card {
  border-radius: 4px;
  padding: 9px 10px 8px;
  background: rgba(12, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  min-width: 0;
}

.metric-value {
  font-size: clamp(13px, 0.92vw, 15px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-label {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 左下角落款 ---- */
.aside-footer {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 14px;
  flex-shrink: 0;
}

/* 兼容旧版特性列表结构（如仍在使用） */
.aside-features {
  display: none;
}

/* ==========================================================================
   右侧：白色面板 + 居中卡片
   ========================================================================== */
.login-main {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow-y: auto;
}

.login-box-container {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 40px) 24px;
  box-sizing: border-box;
  min-height: min-content;
}

/* ---- 登录卡片正上方的站点 LOGO（与后台「LOGO」设置同源） ---- */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  margin: 0 0 22px 0;
  padding: 0;
  text-decoration: none;
  line-height: 0;
  outline: none;
}

.login-brand-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(320px, 86%);
  max-height: 52px;
  object-fit: contain;
  object-position: center;
}

.login-brand-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #14171f;
  line-height: 1;
}

.login-brand-fallback .cloud-icon {
  flex-shrink: 0;
  color: #14171f;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 4px;
  padding: 30px 30px 26px;
  box-sizing: border-box;
  border: 1px solid #eef0f3;
  box-shadow: 0 18px 48px -20px rgba(15, 23, 42, 0.20), 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 22px 56px -20px rgba(15, 23, 42, 0.24), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.card-header {
  text-align: left;
  margin-bottom: 16px;
}

.card-title {
  margin: 0 0 5px 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #14171f;
  letter-spacing: 0.2px;
}

.card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9aa1ad;
}

/* ---- 分段式 Tab ---- */
.login-tabs-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  margin-bottom: 16px;
  background: #f3f4f6;
  border-radius: 3px;
}

.tab-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-item:hover {
  color: #14171f;
}

.tab-item.active {
  background: #14161b;
  color: #ffffff;
  font-weight: 600;
}

.tab-item.active::after {
  display: none;
}

/* ---- 登录方式子 Tab（账号登录 / 手机登录） ---- */
.login-subtabs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef0f3;
}

.subtab-item {
  position: relative;
  padding: 0 0 8px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #9aa1ad;
  cursor: pointer;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.subtab-item:hover {
  color: #14171f;
}

.subtab-item.active {
  color: #14171f;
  font-weight: 600;
}

.subtab-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #14161b;
}

/* ---- 表单 ---- */
.card-form-body {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.form-pane {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.form-group,
#regist .form-group,
#forget .form-group {
  margin: 0 0 13px 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: normal !important;
}

.form-group:last-child {
  margin-bottom: 8px !important;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.4;
}

.login-card .el-input {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100%;
}

.login-card .el-input__inner {
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 12px 0 38px !important;
  border-radius: 3px;
  border: 1px solid #dcdfe4;
  background-color: #ffffff;
  color: #14171f;
  font-size: 12.5px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.login-card .el-input__inner::placeholder {
  color: #b3b9c4;
}

.login-card .el-input__inner:hover {
  border-color: #c3c8d0;
}

.login-card .el-input__inner:focus {
  border-color: #14161b;
  box-shadow: 0 0 0 3px rgba(20, 22, 27, 0.07);
  outline: none;
}

.login-card .el-input__prefix {
  left: 12px;
  width: 18px;
  color: #b3b9c4;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card .el-input__suffix {
  right: 8px;
  color: #b3b9c4;
}

.login-card .el-input__icon {
  line-height: 38px;
}

/* 按钮内图标 */
.btn-primary-blue .el-icon-loading {
  font-size: 14px;
}

/* ---- 区号选择（手机登录/注册） ---- */
.card-form-body .input-with-select {
  --country-code-width: 96px;
  display: flex !important;
  width: 100%;
  min-width: 0;
  height: 38px;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dcdfe4;
}

.card-form-body .input-with-select:focus-within {
  box-shadow: inset 0 0 0 1px #14161b, 0 0 0 3px rgba(20, 22, 27, 0.07);
}

.card-form-body .input-with-select > .el-input-group__prepend {
  display: flex;
  flex: 0 0 var(--country-code-width);
  width: var(--country-code-width);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #dcdfe4;
  border-radius: 3px 0 0 3px;
  background: #f7f8fa;
}

.card-form-body .input-with-select:focus-within > .el-input-group__prepend {
  border-color: #14161b;
  border-right-color: #dcdfe4;
}

.card-form-body .input-with-select .el-input-group__prepend .el-select {
  display: block;
  width: 100%;
  margin: 0 !important;
}

.card-form-body .input-with-select .el-select .el-input {
  width: 100%;
  min-width: 0;
}

.card-form-body .input-with-select .el-select .el-input__inner {
  padding: 0 26px 0 12px !important;
  border: 0 !important;
  border-radius: 3px 0 0 3px;
  background: transparent;
  color: #14171f;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
}

.card-form-body .input-with-select > .el-input__inner {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 0 12px 0 38px !important;
  border: 1px solid transparent !important;
  border-radius: 0 3px 3px 0;
  background: transparent;
  box-shadow: none !important;
}

.card-form-body .input-with-select .el-input__inner {
  box-sizing: border-box;
  height: 38px !important;
  line-height: 38px !important;
}

.card-form-body .input-with-select > .el-input__prefix {
  left: calc(var(--country-code-width) + 8px);
  transform: none !important;
  pointer-events: none;
}

.card-form-body .input-with-select .el-input__icon {
  line-height: 38px;
}

.country-code-popper.el-select-dropdown {
  width: 280px;
  min-width: 0 !important;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  border: 1px solid #e8eaee;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.country-code-popper .el-select-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  color: #14171f;
  font-size: 12.5px;
}

.country-code-popper .country-code-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-code-popper .country-code-number {
  flex: 0 0 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #6b7280;
}

.country-code-popper .el-select-dropdown__item.hover,
.country-code-popper .el-select-dropdown__item:hover {
  background: #f5f6f8;
}

.country-code-popper .el-select-dropdown__item.selected,
.country-code-popper .el-select-dropdown__item.selected .country-code-number {
  color: #14161b;
  font-weight: 600;
}

/* ---- 算术验证码 ---- */
.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-row .el-input {
  flex: 1;
  min-width: 0;
}

.math-captcha-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  background: #f7f8fa;
  border: 1px solid #dcdfe4;
  border-radius: 3px;
  color: #14171f;
  font-size: 13px;
  font-weight: 600;
  font-family: Consolas, Monaco, monospace;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.math-captcha-badge:hover {
  background: #f1f2f5;
  border-color: #c3c8d0;
}

.math-captcha-badge .el-icon-refresh {
  font-size: 12px;
  color: #9aa1ad;
  transition: transform 0.3s;
}

.math-captcha-badge:hover .el-icon-refresh {
  transform: rotate(180deg);
  color: #14171f;
}

/* ---- 短信验证码 ---- */
.code-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.code-input-row .el-input {
  flex: 1;
  min-width: 0;
}

.send-code-btn {
  height: 38px !important;
  padding: 0 14px;
  border-radius: 3px;
  border: 1px solid #dcdfe4;
  background: #ffffff;
  color: #14171f;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.send-code-btn:hover {
  background: #f5f6f8;
  border-color: #c3c8d0;
}

/* ---- 记住登录 / 忘记密码 ---- */
.form-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2px 0 14px 0 !important;
  font-size: 12.5px;
}

.form-extra-row .el-checkbox {
  margin-right: 0;
}

.form-extra-row .el-checkbox__label {
  color: #6b7280;
  font-size: 12px;
  padding-left: 6px;
}

.form-extra-row .el-checkbox__inner {
  border-radius: 2px;
  width: 13px;
  height: 13px;
}

.form-extra-row .el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #14161b;
  border-color: #14161b;
}

.form-extra-row .el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: #14161b;
}

.forget-pwd-link {
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.18s;
}

.forget-pwd-link:hover {
  color: #14161b;
  text-decoration: underline;
}

/* ---- 错误提示 ---- */
.form-error-tip {
  padding: 7px 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 3px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- 主按钮 ---- */
.form-btn-row {
  margin-bottom: 14px !important;
}

.btn-primary-blue {
  width: 100%;
  height: 40px !important;
  background: #14161b;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(20, 22, 27, 0.55);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-blue:hover {
  background: #262a33;
  box-shadow: 0 8px 20px -6px rgba(20, 22, 27, 0.6);
}

.btn-primary-blue:active {
  transform: translateY(1px);
}

.btn-primary-blue:disabled {
  background: #b6bac2;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ---- 底部导航 ---- */
.card-footer-nav {
  text-align: center;
  font-size: 12px;
  color: #9aa1ad;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.nav-accent-link {
  color: #14161b;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.nav-accent-link:hover {
  text-decoration: underline;
}

.nav-divider {
  color: #d5d9e0;
}

.nav-sub-link {
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
}

.nav-sub-link:hover {
  color: #14161b;
  text-decoration: underline;
}

/* ---- 第三方登录 ---- */
.oauth-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.oauth-divider {
  text-align: center;
  font-size: 11.5px;
  color: #b3b9c4;
  margin-bottom: 12px;
}

.oauth-list {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.oauth-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e8eaee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #ffffff;
}

.oauth-badge:hover {
  border-color: #14161b;
  transform: scale(1.06);
}

.oauth-icon {
  width: 18px;
  height: 18px;
}

/* ---- 卡片下方说明 ---- */
.login-safety-notice {
  margin-top: 14px;
  font-size: 11.5px;
  color: #b3b9c4;
  text-align: center;
  max-width: 400px;
  line-height: 1.55;
}

/* ---- 微信扫码 ---- */
.qr-pane {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.qr-box {
  text-align: center;
}

.qr-box-img {
  width: 176px;
  height: 176px;
  margin: 0 auto 12px;
  border: 1px solid #e8eaee;
  border-radius: 4px;
  padding: 6px;
  background: #ffffff;
  position: relative;
  box-sizing: border-box;
}

.qr-box-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-expire-time {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-size: 12.5px;
  cursor: pointer;
}

.qr-box-tips {
  font-size: 12px;
  color: #9aa1ad;
}

/* ==========================================================================
   右下角悬浮客服（默认隐藏，后台可开启）
   ========================================================================== */
.floating-service-widget {
  position: fixed;
  right: 18px;
  bottom: 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 99;
}

.floating-service-widget.is-on {
  display: flex;
}

.floating-service-widget .service-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e8eaee;
  border-radius: 20px;
  padding: 4px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

.service-badge-text {
  cursor: pointer;
}

.service-btn {
  width: 48px;
  height: 52px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef0f3;
  transition: all 0.2s ease;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  border-color: #d5d9e0;
}

.service-btn i {
  font-size: 18px;
  color: #4b5563;
}

.service-btn i.icon-wechat {
  color: #10b981;
}

.service-label {
  font-size: 11px;
  color: #6b7280;
}

/* ==========================================================================
   响应式
   原则：背景区宽度随视口连续变化（46% ↔ 40%），不在此处直接 display:none，
   只有窄屏（<900px）才隐藏背景、切换为满屏表单，避免“缩小窗口背景突然消失/不同步”。
   ========================================================================== */
@media screen and (max-width: 1440px) {
  .login-aside {
    --fx-login-split: 44%;
  }
}

@media screen and (max-width: 1200px) {
  .login-aside {
    --fx-login-split: 42%;
  }
  .brand-logo-img {
    height: 46px;
    max-height: 46px;
  }
  .brand-name {
    font-size: 22px;
  }
  .aside-tags {
    gap: 6px;
  }
  .aside-tag {
    height: 24px;
    font-size: 11px;
    padding: 0 9px;
  }
  .login-brand { margin-bottom: 18px; }
  .login-brand-img, .login-brand-fallback { height: 46px; max-height: 46px; }
}

@media screen and (max-width: 1024px) {
  .login-aside {
    --fx-login-split: 38%;
  }
  .login-aside {
    padding: 18px 20px 16px;
  }
  .aside-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-card {
    padding: 26px 22px 22px;
  }
}

@media screen and (max-width: 900px) {
  .login-aside {
    display: none;
  }
  .login-main {
    width: 100%;
    flex: 1 1 100%;
  }
  .login-brand { margin-bottom: 20px; }
}

@media screen and (max-width: 480px) {
  .login-box-container {
    padding: 20px 16px;
    justify-content: flex-start;
  }
  .login-brand { margin: 8px 0 18px; }
  .login-brand-img, .login-brand-fallback { height: 42px; max-height: 42px; font-size: 19px; }
  .login-card {
    border: none;
    box-shadow: none;
    padding: 12px 2px 0;
    max-width: 100%;
  }
  .card-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   找回密码：两步流程（1 验证身份 → 2 设置新密码）
   ========================================================================== */
/* 图形验证码弹窗由后端返回内联 HTML，内部全部使用 rem 单位
   （width:5.66rem / 输入框 4.45rem 等，按 100px 根字号设计）。
   登录页没有全局根字号，若不指定会按浏览器默认 16px 计算，
   弹窗被挤成 0 宽并跑到屏幕外 —— 这里显式固定根字号。 */
html {
  font-size: 100px;
}

#forget-captcha .captcha-content,
#login-captcha .captcha-content,
#regist-captcha .captcha-content {
  z-index: 3000;
}

@media screen and (max-width: 750px) {
  html {
    font-size: 50px;
  }
}

/* 账号类型自动识别提示 */
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
  color: #9aa1ad;
}

.reset-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2px 0 18px 0;
}

.reset-step {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #b3b9c4;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.reset-step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #9aa1ad;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.reset-step.on {
  color: #14171f;
}

.reset-step.on .dot {
  background: #14161b;
  border-color: #14161b;
  color: #ffffff;
}

.reset-step.cur .txt {
  font-weight: 600;
}

.reset-step-line {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 10px;
  background: #eef0f3;
  position: relative;
  min-width: 24px;
  border-radius: 2px;
}

.reset-step-line.on {
  background: #14161b;
}

/* 验证通过提示 */
.verify-ok-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  margin-bottom: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 3px;
  color: #15803d;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.verify-ok-tip i {
  font-size: 14px;
  flex-shrink: 0;
}

/* 返回上一步 */
.reset-back-row {
  text-align: center;
  margin-top: 4px;
}

.reset-back-row .nav-sub-link {
  font-size: 12px;
  cursor: pointer;
}

/* ==========================================================================
   密码强度条（注册页）
   放在 .form-group 内部、输入框正下方，独立成行，不与下一个字段的标签重叠
   ========================================================================== */
.form-group.has-strength {
  margin-bottom: 18px !important;
}

.form-group .pwd-strength {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  font-size: 11.5px;
  line-height: 16px !important;
  color: #9aa1ad;
  white-space: nowrap;
}

.form-group .pwd-strength > span:first-child {
  flex: 0 0 auto;
}

.form-group .pwd-strength .bar {
  flex: 1 1 auto;
  min-width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #eef0f3;
  overflow: hidden;
}

.form-group .pwd-strength .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: #14161b;
  transition: width 0.2s ease, background 0.2s ease;
}

.form-group .pwd-strength .bar i.lv1 { background: #ef4444; }
.form-group .pwd-strength .bar i.lv2 { background: #f59e0b; }
.form-group .pwd-strength .bar i.lv3 { background: #10b981; }

.form-group .pwd-strength .pwd-level {
  flex: 0 0 auto;
  min-width: 14px;
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
}
