﻿[v-cloak] {
  display: none;
}

html,
body {
  height: 100%;
}

body {
  height: 100dvh;
  margin: 0;
  background: #fff;
}

#login {
  --color-primary: #005BFF;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
}

#login .auth-header {
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  flex-shrink: 0;
}

#login .auth-logo-link {
  display: inline-flex;
  align-items: center;
}

#login .auth-logo {
  width: 148px;
  height: auto;
  display: block;
}

#login .login-container {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 80px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(560px, 720px) 420px;
  column-gap: 100px;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    url("../img/common/register-bg-618.png") calc(50% - 260px) center / min(34vw, 620px) auto no-repeat,
    radial-gradient(circle at 72% 8%, rgba(191, 155, 255, 0.48), transparent 33%),
    radial-gradient(circle at 88% 92%, rgba(255, 199, 181, 0.52), transparent 32%),
    linear-gradient(115deg, #dff0ff 0%, #eef3ff 42%, #e6d2ff 75%, #fff0e9 100%);
}

#login .container-before {
  width: 420px;
  min-width: 420px;
  max-width: 420px;
  height: min(485px, calc(100dvh - 184px));
  min-height: 0;
  max-height: 485px;
  position: relative;
  grid-column: 2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(36, 44, 77, 0.12);
  box-sizing: border-box;
  overflow: visible;
}

#login .login {
  height: 100%;
  padding: 26px 32px 22px;
  font-size: 13px;
  line-height: 18px;
  font-family: PingFang SC;
  color: #111;
  box-sizing: border-box;
  position: relative;
}

#login .login-text {
  min-height: 22px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#login .login-text-regist {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: #111;
}

#login .login-text-regist a,
#login .read-item a,
#login .read-text a,
#login .rember-item a,
#login .auth-footer a {
  color: #8d95a3;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

#login .login-text-regist a:hover,
#login .read-item a:hover,
#login .read-text a:hover,
#login .rember-item a:hover,
#login .auth-footer a:hover {
  color: #4b5563;
  font-weight: 700;
}

#login .login-form,
#login .form-main {
  margin-top: 0;
}

#login .login-top {
  height: 34px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

#login .login-email,
#login .login-phone,
#login .login-mode {
  position: relative;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  color: #9aa1ad;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
}

#login .login-email:hover,
#login .login-phone:hover,
#login .login-mode:hover,
#login .login-email.active,
#login .login-phone.active,
#login .login-mode.active {
  color: #4b5563;
}

#login .login-email::after,
#login .login-phone::after,
#login .login-mode::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #4b5563;
  transform: translateX(-50%);
  transition: width 0.28s ease;
}

#login .login-email.active::after,
#login .login-phone.active::after,
#login .login-mode.active::after {
  width: 100%;
}

#login .form-item,
#login .read-item {
  margin-top: 13px;
}

#login .el-input__inner,
#login .form-item .el-input__inner {
  height: 34px;
  line-height: 34px;
  color: #4b5563;
  background: #fff;
  border-color: #dcdfe6;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none;
}

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

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

#login .el-input__inner:focus {
  border-color: #aeb4bf;
  border-left-color: #aeb4bf;
  outline: none;
  box-shadow: none;
}

#login .el-input.is-active .el-input__inner,
#login .el-input__inner:focus-visible {
  border-left-color: #aeb4bf;
  outline: none;
  box-shadow: none;
}

#login .input-with-select .el-input-group__prepend {
  width: 56px;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 6px 0 0 6px;
  color: #111;
  text-align: center;
}

#login .select-input.el-input-group {
  height: 34px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #fff;
}

#login .select-input .el-input__inner {
  height: 34px;
  line-height: 34px;
  border: 0;
  border-radius: 0 6px 6px 0;
}

#login .select-input.el-input-group:hover {
  border-color: #c6cbd4;
}

#login .select-input.el-input-group:focus-within {
  border-color: #aeb4bf;
}

#login .fixed-phone-code {
  width: 56px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 13px;
  font-weight: 400;
}

#login .code-item {
  display: flex;
  gap: 8px;
}

#login .code-btn {
  height: 34px;
  margin-left: 0;
  background: #005BFF;
  border-color: #005BFF;
  color: #fff;
  font-size: 13px;
}

#login .rember-item {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  line-height: 19px;
}

#login .read-text,
#login .read-item,
#login .el-checkbox__label {
  color: #8d95a3;
  font-size: 12px;
  line-height: 19px;
}

#login .read-text {
  flex: 1 1 auto;
  padding: 0;
}

#login .rember-item > span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

#login .el-checkbox__inner {
  border-color: #dcdfe6;
}

#login .el-checkbox__inner:hover,
#login .el-checkbox__input.is-checked .el-checkbox__inner {
  border-color: #005BFF;
  background-color: #005BFF;
}

#login .login-btn {
  width: 100%;
  height: 40px;
  margin-top: 3px;
  border-radius: 7px;
  background: #005BFF;
  border-color: #005BFF;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

#login .login-btn span {
  color: #fff;
}

#login .login-type {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

#login .oauth-item {
  padding: 4px;
  cursor: pointer;
}

#login .oauth-img {
  width: 32px;
  height: 32px;
}

#login .qr-code {
  position: absolute;
  right: 30px;
  top: 24px;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

#login .qr-code svg {
  width: 38px;
  height: 38px;
}

#login .qr-box {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

#login .qr-expire-time {
  position: absolute;
  inset: 0;
  z-index: 2;
  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-expire-time .el-icon-refresh-right {
  font-size: 30px;
}

#login .qr-box-tips,
#login .qr-box-select-account-title {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

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

#login .qr-box-back {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-size: 16px;
  color: #005BFF;
  cursor: pointer;
}

#login .auth-footer {
  height: 56px;
  min-height: 56px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

#login .el-dialog,
#login .el-dialog__body,
#login .el-dialog__title {
  color: #111;
}

.el-select-dropdown__item,
.el-select-dropdown__item span {
  color: #111;
  font-weight: 400;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover,
.el-select-dropdown__item.selected,
.el-select-dropdown__item.hover span,
.el-select-dropdown__item:hover span,
.el-select-dropdown__item.selected span {
  color: #111;
  font-weight: 700;
}

@media screen and (max-width: 750px) {
  #login .auth-header {
    height: 58px;
    padding: 0 20px;
  }

  #login .auth-logo {
    width: 150px;
  }

  #login .login-container {
    height: 100%;
    min-height: 0;
    padding: 18px 0;
    grid-template-columns: 100%;
    justify-items: center;
    background:
      radial-gradient(circle at 72% 8%, rgba(191, 155, 255, 0.48), transparent 33%),
      radial-gradient(circle at 88% 92%, rgba(255, 199, 181, 0.52), transparent 32%),
      linear-gradient(115deg, #dff0ff 0%, #eef3ff 42%, #e6d2ff 75%, #fff0e9 100%);
  }

  #login .container-before {
    width: min(420px, calc(100% - 36px));
    min-width: 0;
    max-width: calc(100% - 36px);
    height: min(485px, calc(100dvh - 174px));
    grid-column: 1;
    margin: 0;
    justify-self: center;
  }

  #login .login {
    padding: 24px 20px;
  }

  #login .login-top {
    gap: 24px;
    flex-wrap: wrap;
  }

  #login .qr-code {
    right: 20px;
    top: 22px;
  }
}
