/* ===================================================================
   CBPayment 登录注册样式  ·  依赖 style.css 的设计变量，需在其后引入
   =================================================================== */

/* ---------- 页面骨架 ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }

.auth-nav {
  position: relative;
  z-index: 2;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  flex: none;
}
.auth-nav__inner { display: flex; align-items: center; gap: 16px; }

.auth {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 24px 0 56px;
}
.auth__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.auth__inner { position: relative; z-index: 1; display: grid; gap: 34px; }

/* ---------- 左侧品牌区（手机隐藏） ---------- */
.auth__aside { display: none; }
.auth__title { margin-top: 18px; font-size: 30px; }
.auth__desc { margin-top: 14px; font-size: 15px; color: var(--text-2); max-width: 30em; }

.auth__points { display: grid; gap: 14px; margin-top: 28px; }
.auth__points li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--text-2); }
.auth__points svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--mint); }
.auth__points b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }

.auth__orgs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.auth__orgs span {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-3);
  border: 1px solid var(--line);
}

/* ---------- 表单卡片 ---------- */
.auth-card {
  padding: 26px 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.auth-card__head { text-align: center; }
.auth-card__title { font-size: 22px; }
.auth-card__desc { margin-top: 8px; font-size: 13.5px; color: var(--text-2); }

/* 登录 / 注册切换 */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 22px 0 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}
.auth-tabs a {
  padding: 9px 0;
  border-radius: 999px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  transition: color .25s, background .25s;
}
.auth-tabs a.is-active { color: #fff; background: var(--grad-btn); }
@media (hover: hover) {
  .auth-tabs a:not(.is-active):hover { color: var(--text); background: rgba(255, 255, 255, .07); }
}

/* 找回密码步骤条 */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 2px;
}
.auth-steps li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); }
.auth-steps li + li::before { content: ""; width: 16px; height: 1px; background: var(--line-2); }
.auth-steps__num {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: rgba(7, 11, 26, .55);
}
.auth-steps li.is-active { color: var(--text); }
.auth-steps li.is-active .auth-steps__num { border-color: transparent; background: var(--grad-btn); color: #fff; }
.auth-steps li.is-done .auth-steps__num { border-color: transparent; background: rgba(52, 211, 153, .16); color: var(--mint); }

/* ---------- 表单控件 ---------- */
.auth-form { display: grid; gap: 16px; margin-top: 22px; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field__label i { font-style: normal; color: var(--text-3); font-weight: 400; }

.field__ctrl { position: relative; display: flex; align-items: center; }
.field__icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
  transition: color .25s;
}
.field__input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(7, 11, 26, .55);
  transition: border-color .25s, box-shadow .25s, background .25s;
  appearance: none;
}
.field__input::placeholder { color: var(--text-3); }
.field__input:focus {
  outline: 0;
  border-color: var(--brand-2);
  background: rgba(7, 11, 26, .78);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .22);
}
.field__ctrl:focus-within .field__icon { color: var(--brand-2); }
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px #0B1024 inset;
}
.field--has-toggle .field__input { padding-right: 46px; }

.field__toggle {
  position: absolute;
  right: 6px;
  display: inline-flex;
  padding: 8px;
  border-radius: 10px;
  color: var(--text-3);
  transition: color .25s, background .25s;
}
.field__toggle svg { width: 18px; height: 18px; }
.field__toggle .icon-hide { display: none; }
.field__toggle.is-on .icon-hide { display: block; }
.field__toggle.is-on .icon-show { display: none; }
@media (hover: hover) {
  .field__toggle:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
}

/* 校验提示 */
.field__msg { min-height: 0; font-size: 12.5px; line-height: 1.5; color: #FB7185; }
.field.is-invalid .field__input { border-color: #FB7185; }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(251, 113, 133, .2); }
.field.is-invalid .check__box { border-color: #FB7185; }

/* 密码强度 */
.strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 2px; }
.strength span { height: 3px; border-radius: 999px; background: var(--line-2); transition: background .3s; }
.strength[data-level="1"] span:nth-child(1) { background: #FB7185; }
.strength[data-level="2"] span:nth-child(-n+2) { background: #FBBF24; }
.strength[data-level="3"] span { background: var(--mint); }

/* 勾选项与辅助行 */
.check { display: flex; align-items: flex-start; gap: 9px; }
.check__ctrl { position: relative; display: inline-flex; flex: none; margin-top: 3px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: rgba(7, 11, 26, .55);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
  transition: border-color .2s, background-color .2s;
}
.check input:checked + .check__box {
  border-color: transparent;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6 9.6 17 19 7.4'/%3E%3C/svg%3E");
}
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(99, 102, 241, .3); }
.check__text { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.check__text a { color: var(--brand-2); }

.auth-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-form__link { font-size: 12.5px; font-weight: 600; color: var(--brand-2); white-space: nowrap; }

.auth-form__submit { width: 100%; margin-top: 2px; }
.auth-form__submit[disabled] { opacity: .6; pointer-events: none; }

/* 提交状态 */
.auth-form__status {
  display: none;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
}
.auth-form__status.is-shown { display: block; }
.auth-form__status.is-error { border-color: rgba(251, 113, 133, .5); color: #FDA4AF; background: rgba(251, 113, 133, .1); }
.auth-form__status.is-ok { border-color: rgba(52, 211, 153, .5); color: #6EE7B7; background: rgba(52, 211, 153, .1); }

/* ---------- 卡片底部 ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-size: 12px;
  color: var(--text-3);
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 第三方登录 */
.auth-social { display: grid; gap: 10px; }
.auth-social__btn { width: 100%; }

.auth-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
/* 表单下方的补充说明 */
.auth-hint {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.auth-hint svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand-2); }
.auth-hint a { color: var(--brand-2); }

.auth-alt { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-alt a { font-weight: 600; color: var(--brand-2); }
.auth-note { margin-top: 16px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--text-3); }

/* ---------- 页脚 ---------- */
.auth-foot {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 18px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.auth-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--text-3);
}
.auth-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
@media (hover: hover) { .auth-foot__links a:hover { color: var(--brand-2); } }

/* =========================================================
   平板  ≥ 600px
   ========================================================= */
@media (min-width: 600px) {
  .auth { padding: 36px 0 64px; }
  .auth-card { padding: 32px 30px 28px; }
  .auth-card__title { font-size: 24px; }
  .auth__panel { width: 100%; max-width: 460px; margin-inline: auto; }
  .auth-foot__inner { justify-content: space-between; }
}

/* =========================================================
   桌面  ≥ 992px
   ========================================================= */
@media (min-width: 992px) {
  .auth { padding: 48px 0 72px; }
  .auth__inner { grid-template-columns: 1fr 460px; align-items: center; gap: 64px; }
  .auth__aside { display: block; }
  .auth__title { font-size: 38px; }
  .auth__panel { max-width: none; margin-inline: 0; }
  .auth-card { padding: 36px 34px 30px; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .auth__bg .orb { animation: none; }
}
