@font-face {
  font-family: "PingFang SC Custom";
  src: url("/web/custom/assets/font/PingFang SC.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  color: #071733;
  font-family: "PingFang SC Custom", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  background: #eef6ff;
}

a {
  text-decoration: none;
}

#regist {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  width: 100%;
  padding: 72px max(72px, calc((100vw - 1440px) / 2 + 72px)) 118px;
  overflow: hidden;
  background: url("/web/custom/assets/img/register-ai-cloud-bg.png") left center / cover no-repeat;
}

.regist-brand {
  position: absolute;
  top: 34px;
  left: max(12px, calc((100vw - 1440px) / 2 - 72px));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 38px;
}

.regist-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.custom-form {
  margin-top: 18px;
}

.custom-form .el-form-item__label {
  color: #344563;
  line-height: 1.2;
}

.custom-form .el-select {
  width: 100%;
}

.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(1440px, 100%);
  min-height: 640px;
  margin: 0 auto;
}

.container-before {
  position: relative;
  z-index: 4;
  width: 460px;
  max-height: calc(100vh - 174px);
  overflow-y: auto;
  border: 1px solid rgba(214, 226, 244, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 70px rgba(31, 78, 140, 0.14);
  backdrop-filter: blur(18px);
}

.container-before::-webkit-scrollbar {
  width: 6px;
}

.container-before::-webkit-scrollbar-track {
  background-color: transparent;
}

.container-before::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-color: rgba(31, 111, 255, 0.45);
}

.login {
  padding: 42px 42px 38px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.login-text {
  display: flex;
  flex-direction: column;
}

.login-text-title {
  color: #071733;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.login-text-regist {
  margin-top: 10px;
  color: #52627a;
  font-size: 14px;
}

.login-text-regist a {
  margin-left: 4px;
  color: #1677ff;
  cursor: pointer;
}

.login-form {
  margin-top: 34px;
}

.login-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
  border: 1px solid #d7dde8;
  border-radius: 6px;
  background: rgba(246, 247, 250, 0.92);
}

.login-email,
.login-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 4px;
  color: #52627a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.active {
  color: #1677ff;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 64, 88, 0.08);
}

.form-main {
  margin-top: 22px;
}

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

.input-with-select .el-input-group__prepend {
  width: 60px;
  border-color: #d7dde8;
  background: #f7f8fa;
}

.country-code-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #8a94a6;
  font-weight: 600;
}

.select-input .el-select {
  width: 88px;
}

.code-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
}

.code-btn {
  margin-left: 0;
  border-color: #1677ff;
  color: #ffffff;
  background: #1677ff;
}

.login-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #1677ff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.22);
}

.login-btn:hover,
.login-btn:focus {
  color: #ffffff;
  background: #1677ff;
}

.read-text {
  flex: 1;
  padding-left: 10px;
  color: #606f85;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.read-item {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
}

.read-item a {
  color: #1677ff;
  cursor: pointer;
}

.read-item .check-div {
  flex: 0 0 auto;
  margin-top: 1px;
}

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

.type-btn {
  width: 100%;
  height: 44px;
  font-size: 15px;
}

.el-input__inner,
.el-textarea__inner {
  border-color: #d7dde8;
  border-radius: 4px;
  color: #071733;
  background-color: rgba(255, 255, 255, 0.94);
  font-family: "PingFang SC Custom", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.el-input__inner:hover,
.el-textarea__inner:hover {
  border-color: #9dbdf5;
}

.el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: #1677ff;
  box-shadow: none;
}

.el-input__inner:-webkit-autofill,
.el-input__inner:-webkit-autofill:hover,
.el-input__inner:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #071733;
  caret-color: #071733;
  transition: background-color 9999s ease-out 0s;
}

.el-alert {
  border-radius: 4px;
}

.regist-page-footer {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: min(980px, calc(100% - 48px));
  transform: translateX(-50%);
  color: #7a879a;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.regist-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-bottom: 8px;
}

.regist-footer-links a {
  color: #52627a;
  font-size: 13px;
}

.regist-footer-links a:hover {
  color: #1677ff;
}

.regist-page-footer p {
  margin: 0;
}

@media screen and (max-width: 900px) {
  #regist {
    justify-content: center;
    min-height: 100vh;
    padding: 86px 16px 132px;
    background-position: 28% center;
  }

  .regist-brand {
    top: 24px;
    left: 20px;
    width: 118px;
  }

  .login-container {
    min-height: 0;
  }

  .container-before {
    width: min(100%, 460px);
    max-height: calc(100vh - 196px);
  }

  .login {
    padding: 32px 22px 28px;
  }

  .login-text-title {
    font-size: 24px;
  }

  .login-form {
    margin-top: 26px;
  }

  .code-item {
    grid-template-columns: 1fr;
  }

  .code-btn {
    width: 100%;
    height: 40px;
  }

  .regist-page-footer {
    bottom: 18px;
    width: calc(100% - 28px);
    font-size: 11px;
    line-height: 1.65;
  }

  .regist-footer-links {
    gap: 0 14px;
  }
}
