[v-cloak] {
  display: none;
}

/* TungstenCloud independent theme */
body {
  overflow: auto;
  background:
    radial-gradient(circle at 16% 22%, color-mix(in srgb, var(--color-primary) 15%, transparent), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(20, 177, 208, .13), transparent 34%),
    var(--tc-bg) !important;
}

#login {
  min-height: 100vh;
  height: auto;
  padding: .6rem .35rem;
}

.login-container {
  width: min(15rem, calc(100vw - .7rem));
  min-height: 8rem;
  height: auto;
  border: 1px solid var(--tc-line);
  border-radius: .28rem;
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow);
  overflow: hidden;
}

.container-back {
  width: 55%;
  height: 100%;
  min-height: 8rem;
  left: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(140deg, #07182b 0%, #0b3f78 62%, #087c9f 100%);
  background-size: .44rem .44rem, .44rem .44rem, auto;
}

.container-back::after {
  content: "TC";
  position: absolute;
  right: -.2rem;
  bottom: -.62rem;
  color: rgba(255,255,255,.06);
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1;
}

.back-text {
  width: 70%;
  margin: 1.5rem 0 0 .7rem;
}

.text-welcome {
  font-size: .68rem;
  letter-spacing: -.04em;
}

.text-welcome::after {
  content: "TUNGSTENCLOUD";
  display: block;
  margin-top: .13rem;
  color: rgba(255,255,255,.48);
  font-size: .12rem;
  letter-spacing: .17em;
}

.text-title { margin-top: .38rem; font-size: .24rem; line-height: 1.45; }
.text-level { max-width: 4.8rem; margin-top: .34rem; color: rgba(255,255,255,.66); font-size: .14rem; line-height: 1.8; }
.back-line1, .back-line2, .back-line3 { opacity: .35; }

.container-before {
  width: 51%;
  min-width: 6.3rem;
  height: auto;
  min-height: 7.4rem;
  right: 0;
  border: 0;
  border-radius: .24rem 0 0 .24rem;
  background: var(--tc-surface);
  box-shadow: -20px 0 60px rgba(2, 12, 24, .16);
}

.login { width: 5.1rem; color: var(--tc-text); }
.login-text { padding-top: .9rem; }
.login-text-title { color: var(--tc-text); font-size: .34rem; font-weight: 760; letter-spacing: -.03em; }
.login-text-regist, .read-text { color: var(--tc-muted) !important; }
.login-top { border-bottom-color: var(--tc-line); }
.login-top > div { color: var(--tc-muted); }
.login-top > .active { color: var(--color-primary); }
.login-top > .active::after { background: var(--color-primary); }
.login-form .el-input__inner { height: .48rem; padding: 0 .16rem; border-color: var(--tc-line); background: var(--tc-surface-2); }
.login-form .el-input__inner:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent); }
.login-btn { height: .48rem; border-radius: .12rem !important; background: linear-gradient(135deg, var(--color-primary), #1595c0) !important; }
.pass-btn { height: .46rem; }
.lang-box .el-input__inner { background: var(--tc-surface-2) !important; }
.login-jump-btn { z-index: 4; }

:root[data-theme-mode="dark"] .oauth-img { filter: brightness(1.2); }
:root[data-theme-mode="dark"] .container-before { box-shadow: -20px 0 60px rgba(0,0,0,.3); }

@media (max-width: 760px) {
  #login { align-items: flex-start; padding: 1rem .18rem .35rem; }
  .login-container { width: 100%; min-height: 0; overflow: visible; border-radius: .22rem; }
  .container-back { display: none; }
  .container-before { position: relative; width: 100%; min-width: 0; min-height: 0; padding: .35rem .25rem .45rem; border-radius: .22rem; box-shadow: none; }
  .login { width: 100%; }
  .login-text { padding-top: .35rem; }
  .login-jump-btn { top: .16rem; right: .18rem; }
}
.container-back {
  width: 15.7rem;
  height: 6.8rem;
  background: var(--color-primary);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  font-family: Source Han Sans CN;
}
.container-back .back-text {
  font-size: 0.27rem;
  z-index: 10;
  color: #ffffff;
  margin-top: 1.39rem;
  margin-left: 0.65rem;
  font-weight: 400;
}
.container-back .text-welcome {
  font-size: 0.74rem;
  font-family: Bahnschrift;
  line-height: 0.74rem;
}
.container-back .text-title {
  margin-top: 5px;
}
.container-back .text-level {
  font-size: 0.12rem;
  margin-top: 0.81rem;
}
.back-line1,
.back-line2,
.back-line3 {
  width: 0.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  position: absolute;
}
.back-line1 {
  height: 5rem;
  opacity: 1;
  transform: rotate(45deg);
  top: -1.2rem;
  left: 4.15rem;
}
.back-line2 {
  height: 7rem;
  transform: rotate(110deg);
  top: 0;
  left: 5rem;
}
.back-line3 {
  height: 5rem;
  transform: rotate(45deg);
  top: 2.3rem;
  left: 1.5rem;
  clip-path: polygon(0px 0.3rem, 0.64rem 0px, 100% 100%, 0 100%);
}
.container-before {
  width: 7.5rem;
  height: 8rem;
  background: #ffffff;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.1);
  position: absolute;
  right: 0.9rem;
  border: 4px;
  z-index: 10;
}
.login {
  padding-top: 0.8rem;
  padding-left: 1.24rem;
  padding-right: 1.05rem;
  font-size: 14px;
  font-family: PingFang SC;
  font-weight: 400;
  line-height: 14px;
  position: relative;
}
.login .lang-box {
  position: absolute;
  right: 0.1rem;
  top: 0.1rem;
}
.login .qr-code {
  position: absolute;
  right: 1.05rem;
  top: 0.8rem;
  cursor: pointer;
  width: 0.48rem;
  height: 0.48rem;
}
.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: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  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: 14px;
  color: #666;
}
.login .qr-box-select-account {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  padding: 0.2rem;
  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: 16px;
  color: var(--color-primary);
  cursor: pointer;
}
.login .qr-box-select-account .qr-box-select-account-title {
  font-size: 14px;
  color: #666;
}
.login-text {
  display: flex;
  flex-direction: column;
}
.login-text-title {
  font-size: 0.32rem;
  color: #1e2736;
  line-height: 0.32rem;
}
.login-text-regist {
  font-weight: Regular;
  margin-top: 0.08rem;
  color: #1e2736;
}
.login-text-regist a {
  color: var(--color-primary);
  cursor: pointer;
}
.login-form {
  margin-top: 0.68rem;
}
.login-top {
  display: flex;
  flex-direction: row;
}
.login-email,
.login-phone {
  height: 0.34rem;
  color: #666b80;
  cursor: pointer;
}
.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
.login-email {
  margin-right: 0.4rem;
}
.form-main {
  margin-top: 0.3rem;
}
.form-item {
  margin-top: 0.3rem;
}
.input-with-select .el-input-group__prepend {
  background: #ffffff;
  width: 60px;
}
.code-item {
  display: flex;
  flex-direction: row;
}
.code-btn {
  margin-left: 0.1rem;
  color: #ffffff;
}
.rember-item {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.5;
}
.rember-item a {
  color: var(--color-primary);
  cursor: pointer;
}
.login-btn {
  width: 100%;
  height: 46px;
}
.pass-btn {
  width: 100%;
  height: 46px;
  margin-left: 0 !important;
  margin-top: 0.15rem;
}
.read-item {
  margin-top: 0.2rem;
}
.read-item a {
  color: var(--color-primary);
  cursor: pointer;
}
.line-item {
  margin-top: 0.4rem;
}
.line-item text {
  font-size: 16px;
  color: #1e2736;
}
.type-btn {
  width: 100%;
  height: 46px;
  font-size: 0.16rem;
}
.login-type {
  display: flex;
  align-items: center;
  column-gap: 0.15rem;
  flex-wrap: wrap;
}
.a-text {
  color: var(--color-primary);
  cursor: pointer;
  margin-right: 5px;
}
.oauth-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}
.oauth-item:hover .oauth-img {
  filter: brightness(0.8);
}
.oauth-img {
  width: 40px;
  height: 40px;
}
@media screen and (max-width: 750px) {
  .login-container {
    height: calc(100vh - 1.2rem);
    width: 100vw;
    background: #f2f2fe;
    padding: 0.6rem 0;
  }
  .container-back {
    display: none;
  }
  .container-before {
    width: 100%;
    height: 100%;
    margin: 0rem 0.3rem;
    position: unset;
    z-index: 0;
  }
  .login {
    padding-top: 1.17rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    font-size: 0.26rem;
    line-height: 0.3rem;
  }
  .login .qr-code {
    right: 0.3rem;
    top: 1.17rem;
    cursor: pointer;
  }
  .login-text-title {
    font-size: 0.4rem;
  }
  .login-text-regist {
    margin-top: 0.16rem;
    font-size: 0.28rem;
  }
  .login-form {
    margin-top: 1.21rem;
  }
  .form-main {
    margin-top: 0.6rem;
  }
  .login-email,
  .login-phone {
    height: 0.34rem;
    width: 100%;
    text-align: center;
    color: #666b80;
    cursor: pointer;
    padding-bottom: 0.13rem;
  }
  .el-checkbox__label {
    font-size: 0.22rem;
  }
  .read-item {
    line-height: 0.3rem;
  }
  .login-btn {
    font-size: 0.34rem;
    height: 0.8rem;
  }
  .type-btn {
    border: none;
    color: var(--color-primary);
    font-size: 0.34rem;
  }
}

.lang-option {
  display: flex;
  align-items: center;
  column-gap: 5px;
}
.lang-option .lang-img {
  width: 30px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
.read-text {
  flex: 1;
  font-size: 14px;
  line-height: 19px;
  padding: 0 10px;
  color: #606266;
  font-weight: 500;
}
#login {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-container {
  width: 15.7rem;
  height: 8.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* TungstenCloud 1.5 login layout: keep this block last so legacy rules cannot override it. */
html[theme="tungstencloud"] body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 22%, rgba(23, 105, 224, .15), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(20, 177, 208, .13), transparent 34%),
    var(--tc-bg) !important;
}
html[theme="tungstencloud"] #login {
  width: 100%;
  min-height: 100vh;
  height: auto !important;
  padding: 32px 24px !important;
}
html[theme="tungstencloud"] .login-container {
  position: relative !important;
  width: min(1180px, calc(100vw - 48px)) !important;
  min-height: 640px;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 24px !important;
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow);
}
html[theme="tungstencloud"] .container-back {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 640px;
  border-radius: 0 !important;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(140deg, #07182b 0%, #0b3f78 62%, #087c9f 100%) !important;
  background-size: 44px 44px, 44px 44px, auto !important;
}
html[theme="tungstencloud"] .container-back::after {
  content: "TC";
  position: absolute;
  right: -20px;
  bottom: -62px;
  color: rgba(255,255,255,.06);
  font-size: 330px;
  font-weight: 900;
  line-height: 1;
}
html[theme="tungstencloud"] .back-text {
  position: relative;
  z-index: 3;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 118px 48px 64px !important;
  overflow: hidden;
}
html[theme="tungstencloud"] .text-welcome {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(44px, 4.3vw, 60px) !important;
  line-height: 1 !important;
  letter-spacing: -.04em;
  text-overflow: clip;
}
html[theme="tungstencloud"] .text-welcome::after {
  content: "TUNGSTENCLOUD";
  display: block;
  margin-top: 13px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  letter-spacing: .17em;
}
html[theme="tungstencloud"] .text-title {
  max-width: 100%;
  margin-top: 58px !important;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2vw, 25px) !important;
  line-height: 1.5;
}
html[theme="tungstencloud"] .text-level { max-width: 430px; margin-top: 28px !important; color: rgba(255,255,255,.72); font-size: 14px !important; line-height: 1.8; }
html[theme="tungstencloud"] .container-before {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  width: auto !important;
  min-width: 0 !important;
  min-height: 640px;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 64px 62px !important;
  border: 0 !important;
  border-left: 1px solid var(--tc-line) !important;
  border-radius: 0 !important;
  background: var(--tc-surface) !important;
  box-shadow: none !important;
}
html[theme="tungstencloud"] .login {
  position: relative;
  width: 100% !important;
  max-width: 430px;
  padding: 0 !important;
  color: var(--tc-text);
  font-size: 14px;
  line-height: 1.45;
}
html[theme="tungstencloud"] .login-text { padding-top: 0 !important; }
html[theme="tungstencloud"] .login-text-title { color: var(--tc-text) !important; font-size: 32px !important; font-weight: 760; line-height: 1.2 !important; }
html[theme="tungstencloud"] .login-form { margin-top: 42px !important; }
html[theme="tungstencloud"] .form-main { margin-top: 30px !important; }
html[theme="tungstencloud"] .form-item { margin-top: 24px !important; }
html[theme="tungstencloud"] .login-form .el-input__inner { height: 48px !important; line-height: 48px !important; }
html[theme="tungstencloud"] .login-btn { height: 48px !important; font-size: 16px !important; border-radius: 12px !important; }
html[theme="tungstencloud"] .pass-btn { height: 46px !important; }
html[theme="tungstencloud"] .login-jump-btn { z-index: 8; top: 22px !important; right: 28px !important; }
html[theme="tungstencloud"] .login .qr-code { right: 0 !important; top: 0 !important; }

@media (max-width: 980px) {
  html[theme="tungstencloud"] #login { align-items: flex-start; padding: 28px 16px !important; }
  html[theme="tungstencloud"] .login-container { width: min(620px, 100%) !important; min-height: 0; display: block !important; overflow: visible; border-radius: 20px !important; }
  html[theme="tungstencloud"] .container-back { display: none !important; }
  html[theme="tungstencloud"] .container-before { width: 100% !important; min-height: 600px; margin: 0 !important; padding: 86px 42px 48px !important; border-left: 0 !important; border-radius: 20px !important; }
  html[theme="tungstencloud"] .login { width: 100% !important; max-width: 430px; font-size: 14px !important; line-height: 1.45 !important; }
  html[theme="tungstencloud"] .login-text { padding-top: 0 !important; }
  html[theme="tungstencloud"] .login-form { margin-top: 36px !important; }
  html[theme="tungstencloud"] .login-jump-btn { top: 14px !important; right: 16px !important; }
  html[theme="tungstencloud"] .qr-code { display: none !important; }
}

@media (max-width: 520px) {
  html[theme="tungstencloud"] #login { padding: 12px !important; }
  html[theme="tungstencloud"] .container-before { min-height: calc(100vh - 24px); padding: 76px 22px 38px !important; }
  html[theme="tungstencloud"] .login-text-title { font-size: 28px !important; }
  html[theme="tungstencloud"] .login-form { margin-top: 32px !important; }
  html[theme="tungstencloud"] .form-main { margin-top: 24px !important; }
  html[theme="tungstencloud"] .form-item { margin-top: 20px !important; }
  html[theme="tungstencloud"] .rember-item { align-items: flex-start; gap: 8px; }
  html[theme="tungstencloud"] .read-text { padding: 0 4px !important; font-size: 13px !important; }
}
