/* 登录/注册 — 对齐 super-i tc-login */

/* ========== 独立页背景（等同 mask1） ========== */
.linkon-auth-body {
  margin: 0;
  min-height: 100vh;
  background: rgba(149, 149, 149, 0.15);
  backdrop-filter: blur(1.562vw);
  -webkit-backdrop-filter: blur(1.562vw);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.linkon-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  box-sizing: border-box;
}

.linkon-auth-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.linkon-auth-foot {
  margin-top: 24px;
  text-align: center;
  color: #888;
  line-height: 1.8;
}

.linkon-auth-foot a {
  color: #666;
}

/* ========== 弹窗浮层（#tc-login）— 必须保持 fixed 居中 ========== */
#tc-login.tc-layout {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 61;
  display: none;
}

#tc-login.tc-layout.on {
  display: block;
  animation: fadeIn 1s forwards;
}

/* ========== 独立页卡片 ========== */
.tc-login-page {
  position: relative;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  width: max-content;
  max-width: min(96vw, 960px);
  margin: 0 auto;
  border-radius: 20px;
  border: 2px solid #fff;
  background: rgba(254, 254, 254, 0.86);
  box-shadow: 0 0.104vw 0.625vw 0 rgba(116, 116, 116, 0.1);
  overflow: hidden;
}

/* ========== 修正 common.css 错误资源路径 ========== */
.tc-login .blur-radio {
  background-image: url("../img/user/user-blur.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.linkon-auth-submit.is-disabled,
.linkon-auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.tc-login .Eform2 .C-btn3,
.tc-login .C-btn3.submit {
  background-image: url("../img/user/btn-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  width: 100%;
  min-height: 36px;
  height: auto;
  padding: 8px 16px;
  border: 2px solid #fff;
  box-sizing: border-box;
}

/* ========== 左右分栏布局 ========== */
@media (min-width: 769px) {
  .tc-login .sec2.flex-xb {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .tc-login .sec2 .zuo {
    flex: 1 1 auto;
    min-width: 280px;
    position: relative;
    overflow: hidden;
  }

  .tc-login .sec2 .you {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5vw 1.8vw;
    box-sizing: border-box;
  }

  .tc-login .Eform2 {
    width: 13.437vw;
    min-width: 220px;
    max-width: 280px;
  }

  .tc-login .Eform2 .Eform-itme-input input {
    min-height: 36px;
    height: auto;
    box-sizing: border-box;
  }

  .tc-login .Eform2 .getcode {
    min-height: 36px;
    height: auto;
  }
}

/* ========== 登录方式切换 ========== */
.tc-login #phone-login-box,
.tc-login #password-login-box {
  display: none;
}

.tc-login.is-mode-mobile #phone-login-box,
.tc-login.is-register #phone-login-box {
  display: block;
}

.tc-login.is-mode-password #password-login-box {
  display: block;
}

.tc-login.is-mode-password #phone-login-box,
.tc-login.is-mode-password .t7,
.tc-login.is-mode-password .quick-login {
  display: none !important;
}

.tc-login .phonelogin,
.tc-login .feishulogin {
  cursor: pointer;
  text-decoration: none;
}

.linkon-auth-agree,
.linkon-auth-keeplogin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: #727272;
  line-height: 1.6;
  cursor: pointer;
  width: 100%;
}

.linkon-auth-agree input,
.linkon-auth-keeplogin input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.linkon-auth-agree-text {
  flex: 1;
  min-width: 0;
  display: block;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.6;
}

.linkon-auth-agree-text a {
  color: #696969;
  text-decoration: none;
  white-space: nowrap;
  display: inline;
}

.linkon-auth-agree-text a:hover {
  color: #000;
  text-decoration: underline;
}

.linkon-auth-extra {
  margin-top: 14px;
  color: #b8b8b8;
  text-align: center;
}

.linkon-auth-extra a {
  color: #696969;
}

.linkon-auth-extra a:hover {
  color: #000;
}

.tc-login.is-mode-password .linkon-auth-pwd-link {
  display: none;
}

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  .linkon-auth-body {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .tc-login-page {
    width: 95%;
    max-width: 95%;
  }

  .tc-login .sec2.flex-xb {
    flex-direction: column;
  }

  .tc-login .sec2 .zuo {
    padding: 48px 20px 16px;
    text-align: center;
  }

  .tc-login .sec2 .zuo .t3 {
    font-size: 28px !important;
    line-height: 1.25;
  }

  .tc-login .sec2 .you {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 20px 24px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  .tc-login .Eform2 {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .tc-login .Eform2 .Eform-itme-input input,
  .tc-login .Eform2 .getcode {
    min-height: 40px;
  }

  .tc-login .Eform2 .C-btn3 {
    min-height: 40px;
    margin-top: 20px;
  }

  .quick-login {
    grid-template-columns: repeat(2, 1fr);
  }
}

.linkon-forgot-form .linkon-forgot-step {
  display: none;
}

.linkon-forgot-form.is-step-1 .linkon-forgot-step-1,
.linkon-forgot-form.is-step-2 .linkon-forgot-step-2,
.linkon-forgot-form.is-step-3 .linkon-forgot-step-3 {
  display: block;
}

/* ========== 微信扫码登录 ========== */
.linkon-wechat-qr-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: inherit;
}

.linkon-wechat-qr-layer[hidden] {
  display: none !important;
}

.tc-login .you,
.linkon-auth-main .you {
  position: relative;
}

.linkon-wechat-qr-card {
  width: min(100%, 320px);
  text-align: center;
}

.linkon-wechat-qr-head {
  margin-bottom: 12px;
  padding: 0 4px;
}

.linkon-wechat-qr-close {
  border: none;
  background: #f3f3f3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.linkon-wechat-qr-frame {
  width: 300px;
  height: 360px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
}

.linkon-wechat-qr-frame iframe {
  width: 300px;
  height: 360px;
  border: 0;
}

.linkon-wechat-qr-hint {
  margin: 12px 0 0;
  color: #888;
}

.tc-login.is-wechat-qr .Eform2 > :not(#linkonWechatQr) {
  visibility: hidden;
}

.quick-login .wechatlogin img {
  width: 22px;
  height: 22px;
}
