[v-cloak] {
  display: none;
}

/* 本页面统一用 border-box，避免「width:100% + padding」把内容撑出屏幕 */
#login,
#forget,
#regist,
#login *,
#forget *,
#regist * {
  box-sizing: border-box;
}

/* ============================================================
   登录 / 注册页
   左侧浅色品牌栏（约 1/3） + 右侧浅底 + 浮起的白色表单卡片
   ============================================================ */

#login,
#forget,
#regist {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: block;
  overflow: hidden;
  background: #eef4ff url("/web/mod/img/auth-left-bg.jpg") center center / cover no-repeat;
}

.login-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
}

/* ---------- 左侧品牌栏 ---------- */
.container-back {
  position: relative;
  flex: 0 0 34%;
  width: 34%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  display: block;
}

/* 左侧栏改用背景图，不再需要自绘插画 */
.container-back::after { display: none; }

.back-line1,
.back-line2,
.back-line3 {
  display: none;
}

/* 左上角 Logo（与首页完全一致，不加工处理） */
.k8-auth-logo {
  position: absolute;
  top: 34px;
  left: 40px;
  z-index: 5;
  /* 页面根字号被框架设成 ~99px，这里必须压掉行高，否则 Logo 会被顶下去 */
  line-height: 0;
  font-size: 0;
}

.k8-auth-logo a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  font-size: 0;
}

.k8-auth-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.k8-auth-home {
  position: absolute;
  left: 40px;
  bottom: 30px;
  z-index: 5;
  color: #7b879b;
  font-size: 13px;
  text-decoration: none;
}

.k8-auth-home:hover {
  color: var(--color-primary);
}

/* 左侧欢迎文案默认隐藏（版式里不显示） */
.container-back .back-text {
  display: none;
}

/* ---------- 右侧 ---------- */
.container-before {
  position: relative;
  flex: 1 1 auto;
  width: 66%;
  height: 100%;
  right: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: transparent;
}

/* 整页已有背景图，不再叠加纹路 */
.container-before::before { display: none; }

/* 白色表单卡片 */
.login {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 34px 44px 38px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(17, 42, 102, .1);
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- 语言切换 / 跳转 ---------- */
.login-jump-btn {
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #8a94a6;
}

.login .lang-box {
  position: static;
  display: flex;
  gap: 12px;
}

.login .lang-box span {
  cursor: pointer;
  color: #8a94a6;
}

.login .lang-box span:hover {
  color: var(--color-primary);
}

.login .lang-box span.active {
  color: #10131a;
  border-bottom: 0;
  font-weight: 600;
}

/* 标题区：只保留右上角“还没有账户？注册” */
.login-text {
  position: absolute;
  top: 40px;
  right: 44px;
  z-index: 3;
  display: block;
}

.login-text-title {
  display: none;
}

.login-text-regist {
  margin-top: 0;
  font-size: 13px;
  color: #8a94a6;
  white-space: nowrap;
}

.login-text-regist a {
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 2px;
}

.login-form {
  margin-top: 0;
}

/* ---------- 手机号 / 邮箱切换标签 ---------- */
.login-top {
  display: flex;
  flex-direction: row;
  gap: 22px;
  border-bottom: 0;
  padding-right: 150px;
  min-height: 40px;
}

.login-email,
.login-phone {
  height: auto;
  margin-right: 0;
  padding: 0 0 8px;
  font-size: 17px;
  font-weight: 400;
  color: #8a94a6;
  cursor: pointer;
  position: relative;
}

.login-email.active,
.login-phone.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 3px solid var(--color-primary);
}

/* ---------- 表单 ---------- */
.form-main {
  margin-top: 22px;
}

.form-item {
  margin-top: 16px;
}

/* 字段标题 */
.k8-flabel {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #606a7b;
  line-height: 1.4;
}

.code-item {
  display: block;
  position: relative;
}

.code-item .el-input {
  width: 100%;
}

.code-item .code-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  margin-left: 0;
  height: 34px;
  line-height: 34px;
  padding: 0 14px;
  color: var(--color-primary) !important;
  background: rgba(22, 93, 255, .08) !important;
  border: 0 !important;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none !important;
}

.code-item .code-btn span,
.code-item .code-btn i {
  color: inherit !important;
}

/* 验证码登录 / 忘记密码 一行 */
.k8-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.k8-switch-link,
.k8-forget,
.rember-item a {
  color: var(--color-primary);
  cursor: pointer;
  font-size: 13px;
}

.k8-switch-link {
  margin-right: auto;
}

.rember-item {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.5;
}

.read-text {
  flex: 1;
  padding: 0 0 0 8px;
  font-size: 12.5px;
  line-height: 19px;
  color: #8a94a6;
  font-weight: 400;
}

.read-item {
  margin-top: 12px;
}

.read-item a {
  color: var(--color-primary);
  cursor: pointer;
}

.login-btn {
  width: 100%;
  height: 46px;
  font-size: 16px;
  border-radius: 4px;
}

/* 原来的“密码登录/验证码登录”按钮已移到上方文字链，这里隐藏避免重复 */
.pass-btn {
  display: none !important;
}

.line-item {
  margin-top: 22px;
}

.login-type {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 15px;
  flex-wrap: wrap;
}

.oauth-item {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}

.oauth-item:hover .oauth-img {
  filter: brightness(0.85);
}

.oauth-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ---------- 扫码登录 ---------- */
.login .qr-code {
  position: absolute;
  right: 44px;
  top: 96px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.login .qr-code .login-icon {
  fill: var(--color-primary);
  width: 100%;
  height: 100%;
}

.login .qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.login .qr-box .qr-box-img {
  width: 200px;
  height: 200px;
  position: relative;
}

.login .qr-box .qr-box-img img {
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.login .qr-box .qr-box-img .qr-expire-time {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.login .qr-box .qr-box-img .qr-expire-time .el-icon-refresh-right {
  font-size: 30px;
}

.login .qr-box .qr-box-tips {
  margin-top: 10px;
  font-size: 13px;
  color: #8a94a6;
}

.login .qr-box-select-account {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
}

.login .qr-box-select-account .qr-box-back {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-size: 15px;
  color: var(--color-primary);
  cursor: pointer;
}

.login .qr-box-select-account .qr-box-select-account-title {
  font-size: 13px;
  color: #8a94a6;
}

.input-with-select .el-input-group__prepend {
  background: #fff;
  width: 86px;
}

.lang-option {
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.lang-option .lang-img {
  width: 30px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* Element UI 输入框 / 按钮统一 */
.login .el-input__inner {
  height: 46px;
  line-height: 46px;
  border-radius: 4px;
  border-color: #dfe4ee;
  font-size: 14px;
  background: #fbfcfe;
}

.login .el-input__inner:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.login .el-button--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* 底部条款 */
.k8-auth-foot {
  position: absolute;
  left: 34%;
  right: 0;
  bottom: 20px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: #9aa4b2;
  pointer-events: none;
}

.k8-auth-foot a {
  color: #9aa4b2;
  text-decoration: none;
  pointer-events: auto;
}

.k8-auth-foot a:hover {
  color: var(--color-primary);
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 900px) {
  #login,
  #forget,
  #regist {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .login-container {
    display: block;
    height: auto;
  }

  .container-back {
    display: block;
    width: 100%;
    flex: none;
    height: 132px;
    background: transparent;
  }

  /* 手机端不显示大插画，避免占地方 */
  .container-back::after {
    display: none;
  }

  .k8-auth-logo {
    top: 26px;
    left: 24px;
  }

  .k8-auth-logo img {
    height: 26px;
  }

  .k8-auth-home {
    left: auto;
    right: 24px;
    bottom: auto;
    top: 34px;
    font-size: 13px;
  }

  .container-before {
    width: auto;
    height: auto;
    padding: 22px 16px 74px;
    align-items: flex-start;
    overflow: visible;
    background: transparent;
  }

  .container-before::before {
    display: none;
  }

  .login {
    max-width: 100%;
    padding: 26px 20px 28px;
    border-radius: 10px;
  }

  .login-jump-btn {
    display: none;
  }

  /* 语言切换放回卡片右上角 */
  .login .lang-box {
    position: absolute;
    top: 26px;
    right: 20px;
    font-size: 12px;
    gap: 8px;
  }

  .login-text {
    top: 60px;
    right: 20px;
  }

  .login-top {
    padding-right: 0;
  }

  .login-text-title {
    display: none;
  }

  .k8-auth-foot {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 18px;
    padding: 0 16px;
    gap: 10px;
    pointer-events: auto;
  }
}
