* {
  margin: 0;
  padding: 0;
}

#regist {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(../img/heiguocloud/auth_bg.jpg) no-repeat center center;
  background-size: cover;
}

.custom-form {
  margin-top: 0.3rem;
}

.custom-form .el-form-item__label {
  line-height: 1;
}

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

@font-face {
  font-family: 'MyFont';
  src: url('../fonts/HarmonyOS_Sans_SC_Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.login-container {
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 背景板 开始 */










.back-line1,
.back-line2,
.back-line3 {
  width: 60px;
  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: 0px;
  left: 5rem;
}

.back-line3 {
  height: 5rem;
  transform: rotate(45deg);
  top: 2.3rem;
  left: 1.5rem;
}

/* 背景板结束 */
/* 前景 登录框 开始 */
.container-before {
  width: 5rem;
  /* Shrink width */
  height: auto;
  /* Remove fixed height to fix whitespace */
  max-height: 90vh;
  /* Prevent overflowing screen */
  overflow-y: auto;
  /* Allow scrolling only if needed */
  overflow-x: hidden;
  /* Prevent horizontal slider */
  background: #FFFFFF;
  box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 0 auto;
  border-radius: 12px;
  z-index: 10;
  padding-bottom: 0.5rem;
}

.login {
  padding-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 14px;
  font-family: "MyFont", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-weight: 400;
  line-height: 14px;
  position: relative;
}

.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;
  background: var(--color-primary);
  color: #FFFFFF;
}

.rember-item {
  margin-top: 0.2rem;
  display: flex;
  justify-content: space-between;
}

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

.login-btn {
  width: 100%;
  height: 46px;
  background: var(--color-primary);
}

.read-text {
  flex: 1;
  font-size: 14px;
  line-height: 19px;
  padding: 0 10px;
  color: #606266;
  font-weight: 500;
}

.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: 0.46rem;
  font-size: 0.16rem;
}

@media screen and (max-width: 750px) {
  .login-btn {
    font-size: 0.34rem;
    height: 0.8rem;
  }

  .type-btn {
    border: none;
    color: var(--color-primary);
    font-size: 0.34rem;
  }

  .code-btn {
    font-size: 0.32rem;
    height: 0.8rem;
  }

  .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-text-title {
    font-size: 0.4rem;
  }

  .login-text-regist {
    margin-top: 0.1rem;
    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.26rem;
  }

  .read-item {
    line-height: 0.3rem;
  }

  .read-item .check-div {
    display: flex;
    white-space: inherit;
  }
}

@media screen and (min-width: 751px) {
  .auth-intro {
    transform: translateX(20px);
  }

  .auth-intro-button {
    margin-top: 18px;
  }
}

/* Shared Language Selector Styles */
.lang-box {
  position: fixed;
  right: 30px;
  top: 30px;
  z-index: 999;
}

.lang-select {
  width: 140px;
}

.lang-option {
  display: flex;
  align-items: center;
}

.lang-img {
  width: 24px;
  height: 16px;
  margin-right: 8px;
  border-radius: 2px;
}

.login .lang-box {
  top: 20px;
}

.lang-select .el-input__inner {
  padding-left: 55px !important;
  /* Make space for larger flag */
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Global Font Update */
body,
button,
input,
select,
textarea {
  font-family: "MyFont", "PingFang SC", "Microsoft YaHei", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400;
}

/* Corner Ribbon Button (Skew Style) */
.accsys-control-panel__corner-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 42px;
  overflow: hidden;
  transform: skewX(38deg);
  transform-origin: top left;
  z-index: 10;
}

.accsys-control-panel__corner-btn {
  display: block;
  width: 100%;
  height: 100%;
  transform: skewX(-38deg);
  transform-origin: top left;
  background-color: #e6f0ff;
  background: linear-gradient(to right, #e6f0ff, #f0f7ff);

  text-decoration: none;
  font-size: 14px;
  color: #003cab;
  font-family: "MyFont", "PingFang SC", sans-serif !important;
  line-height: 24px;
  padding: 6px 0 0 25px;
  box-sizing: border-box;
  font-weight: 600;
  text-align: center;
}

.accsys-control-panel__corner-btn:hover {
  filter: brightness(0.98);
}

/* Restore lang-box */
.lang-box {
  position: fixed;
  /* Keep fixed for language selector */
  right: 30px;
  top: 30px;
  z-index: 999;
}

/* --- Input Beautification (Ported from Login) --- */

.login-form .el-input__inner {
  background-color: #f7f8fa;
  border: 1px solid #e5e5e5;
  height: 48px;
  line-height: 48px;
  border-radius: 8px;
  padding-left: 15px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.login-form .el-input__inner:focus {
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

/* --- Unified Phone Input Styling --- */

/* 1. Country Code Container (Prepend) */
.login-form .select-input .el-input-group__prepend {
  background-color: #f7f8fa !important;
  border: 1px solid #e5e5e5 !important;
  border-right: none !important;
  /* Remove right border to merge */
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 0 !important;
  width: 90px !important;
  /* Slightly wider for comfort */
}

/* 2. The Select Component */
.login-form .select-input .el-select {
  width: 100% !important;
  margin: 0 !important;
}

/* 3. The Select Input (Text + Arrow) */
.login-form .select-input .el-select .el-input__inner {
  border: none !important;
  background-color: transparent !important;
  height: 46px;
  line-height: 46px;
  padding: 0 25px 0 10px !important;
  /* Space for text and arrow */
  text-align: center;
  color: #333;
  caret-color: transparent;
  /* Hides the blinking cursor glitch */
  cursor: pointer;
  box-shadow: none !important;
}

/* 4. The Main Phone Input (Right Side) */
.login-form .select-input>.el-input__inner {
  border-top-left-radius: 0 !important;
  /* Flatten left side */
  border-bottom-left-radius: 0 !important;
  border-left: 1px solid #e5e5e5 !important;
  /* Add separator line */
  padding-left: 15px !important;
}

/* Fix Arrow Icon Position */
.login-form .select-input .el-select .el-input .el-select__caret {
  color: #909399;
  font-size: 14px;
  right: 5px;
}

/* Focus State Highlight */
.login-form .select-input.is-focus .el-input-group__prepend {
  border-color: var(--color-primary) !important;
  background-color: #fff !important;
}

/* Disabled Code Button & Normal Button Font */
.code-btn {
  font-size: 14px;
  border-radius: 8px;
  height: 48px;
}

.code-btn.disabled-btn {
  background-color: #f5f7fa !important;
  border-color: #e4e7ed !important;
  color: #c0c4cc !important;
  /* cursor: not-allowed !important; */
  /* pointer-events: none; Removed to allow feedback on click */
}

.login-btn {
  border-radius: 8px;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
}

#regist {
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  padding: 32px 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.login-container {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.container-before {
  width: 100%;
  max-height: none;
  padding-bottom: 0;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
}

.login {
  padding: 40px 48px;
  box-sizing: border-box;
}

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

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

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

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

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

.code-item {
  align-items: stretch;
}

.code-item .el-input {
  min-width: 0;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.password-strength-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
}

.password-strength-bars span {
  height: 4px;
  background: #e7ebf0;
}

.password-strength.level-1 .password-strength-bars span.active {
  background: #e45454;
}

.password-strength.level-2 .password-strength-bars span.active {
  background: #e69a32;
}

.password-strength.level-3 .password-strength-bars span.active {
  background: #34a870;
}

.password-strength-label {
  min-width: 32px;
  color: #7a8494;
  font-size: 12px;
  line-height: 1;
  text-align: right;
}

.form-item.read-item {
  display: flex;
  align-items: flex-start;
}

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

.form-item.read-item .read-text {
  min-width: 0;
  padding: 0 0 0 8px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.form-item.read-item .read-text a {
  margin: 0 3px;
}

.lang-box {
  font-size: 0;
  line-height: 0;
}

.accsys-control-panel__corner-inner {
  width: auto;
  height: 42px;
  overflow: visible;
  transform: none;
}

.accsys-control-panel__corner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 42px;
  padding: 0 18px;
  transform: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 42px;
  white-space: nowrap;
}

@media screen and (max-width: 750px) {
  #regist {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 0;
    background-position: 62% center;
  }

  .login-container {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 12px;
    box-sizing: border-box;
    background: transparent;
    align-items: flex-start;
  }

  .container-before {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    position: relative;
    border-radius: 8px;
  }

  .login {
    width: 100%;
    padding: 60px 20px 28px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
  }

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

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

  .login-top {
    font-size: 14px;
  }

  .login-email,
  .login-phone {
    width: auto;
    height: auto;
    flex: 1;
    margin-right: 0;
    padding: 0 0 10px;
    text-align: center;
  }

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

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

  .login-form .el-input__inner,
  .login-form .select-input .el-select .el-input__inner {
    height: 44px;
    line-height: 44px;
  }

  .login-form .select-input .el-input-group__prepend {
    width: 78px !important;
  }

  .code-btn {
    min-width: 142px;
    height: 44px;
    margin-left: 8px;
    padding: 0 8px !important;
    font-size: 12px;
    white-space: nowrap;
  }

  .login-btn {
    height: 44px;
    font-size: 15px;
  }

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

  .custom-form .el-form-item__label {
    line-height: 1.45;
  }

  .form-item.read-item {
    line-height: 1.5;
  }

  .form-item.read-item .el-checkbox__label,
  .form-item.read-item .read-text {
    font-size: 13px;
  }

  .accsys-control-panel__corner-inner {
    top: 0;
    right: 0;
    width: auto;
    height: 42px;
    overflow: visible;
    transform: none;
  }

  .accsys-control-panel__corner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 42px;
    padding: 0 16px;
    transform: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 13px;
    line-height: 42px;
  }

  .lang-box {
    position: absolute;
    top: 12px;
    right: auto;
    left: 32px;
  }

  .lang-select {
    width: 140px;
  }

  .lang-select .el-input__inner {
    height: 36px;
    line-height: 36px;
    padding-left: 44px !important;
    padding-right: 32px;
    border-radius: 6px;
    font-size: 14px;
  }

  .lang-select .el-input__prefix {
    left: 8px;
  }

  .lang-select .el-input__prefix img {
    width: 28px !important;
    height: 18px !important;
  }

  .login-jump-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    width: auto;
    z-index: 998;
  }
}

@media screen and (max-width: 360px) {
  .code-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .code-item .code-btn {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
}

.container-before.has-auth-intro {
  width: 920px;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.container-before.has-auth-intro .auth-entry-layout {
  gap: 40px;
}

.container-before.has-auth-intro .login {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.1);
}

.auth-intro {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  border: none;
}

@media screen and (max-width: 750px) {
  .container-before.has-auth-intro {
    width: 100%;
  }

  .container-before.has-auth-intro .auth-entry-layout {
    gap: 0;
  }

  .auth-intro {
    min-height: 0;
    padding: 32px 20px 24px;
    background: transparent;
    border: none;
  }

}

@media screen and (min-width: 751px) {
  .auth-intro {
    transform: translateX(20px);
  }

  .auth-intro-button {
    margin-top: 18px;
  }
}

.login-container {
  max-width: 920px;
}

#regist .accsys-control-panel__corner-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 38px;
  overflow: visible;
  transform: none;
  z-index: 12;
  pointer-events: auto;
}

#regist .accsys-control-panel__corner-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 96px;
  height: 38px;
  padding: 0 11px 0 25px;
  box-sizing: border-box;
  transform: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 27% 100%);
  border-radius: 0 8px 0 0;
  background: #e4ecff;
  color: #0052d9;
  font-size: 13px;
  font-weight: 500;
  line-height: 38px;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
}

#regist .accsys-control-panel__corner-btn:hover {
  background: #d9e5ff;
  color: #0052d9;
  filter: none;
}

.auth-entry-layout {
  display: flex;
  width: 100%;
  min-height: 100%;
}

.container-before.has-auth-intro {
  width: 880px;
  min-width: 0;
  max-width: 100%;
  right: auto;
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
}

.container-before.has-auth-intro .login {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-intro {
  position: relative;
  flex: 0 0 380px;
  transform: translateX(20px);
  min-width: 0;
  padding: 48px 36px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: #f3f5f8;
  color: #1e293b;
  border-left: 1px solid #e1e7ef;
}

.auth-intro::before {
  display: none;
}

.auth-intro-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-intro-content::before {
  display: none;
}

.auth-intro-title {
  color: #0052d9;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.auth-intro-subtitle {
  margin-top: 4px;
  color: #111827;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.auth-intro-points {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.auth-intro-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.auth-intro-point i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #0052d9;
  font-size: 13px;
  font-weight: 700;
}

.auth-intro-button {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: flex-start;
  min-width: 148px;
  height: 38px;
  margin-top: 18px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #0052d9;
  border-radius: 0;
  background: #ffffff;
  color: #0052d9;
  font-size: 14px;
  font-weight: 500;
  line-height: 36px;
}

.auth-intro-button:hover {
  color: #0052d9;
  background: #ffffff;
}

.auth-intro-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 38px;
  background: #0052d9;
  color: #ffffff;
}

.auth-intro-button-icon i {
  font-size: 15px;
}

.auth-intro-button-text {
  flex: 1;
  padding: 0 18px;
  text-align: center;
}

@media screen and (max-width: 750px) {
  .container-before.has-auth-intro {
    width: 100%;
    min-height: 0;
  }

  .auth-entry-layout {
    flex-direction: column;
  }

  .container-before.has-auth-intro .login {
    flex: none;
    width: 100%;
    padding: 60px 20px 28px;
  }

  .auth-intro {
    flex: none;
    width: 100%;
    transform: none;
    min-height: 300px;
    padding: 34px 24px 38px;
    align-items: flex-start;
    border-top: 1px solid #e1e7ef;
    border-left: none;
  }

  .auth-intro::before {
    display: none;
  }

  .auth-intro-title {
    font-size: 22px;
    line-height: 1.4;
  }

  .auth-intro-subtitle {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.5;
  }

  .auth-intro-points {
    margin-top: 18px;
  }

  .auth-intro-point {
    font-size: 13px;
  }

  .auth-intro-button {
    height: 38px;
    margin-top: 24px;
    line-height: 36px;
  }
}

@media screen and (max-width: 360px) {
  .auth-intro {
    min-height: 300px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-intro-title {
    font-size: 20px;
  }

  .auth-intro-subtitle {
    font-size: 19px;
  }
}

.container-before.has-auth-intro {
  width: 920px;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.container-before.has-auth-intro .auth-entry-layout {
  gap: 40px;
}

.container-before.has-auth-intro .login {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.1);
}

.auth-intro {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  border: none;
}

@media screen and (max-width: 750px) {
  #regist {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    align-items: stretch;
    background: #ffffff;
  }

  .login-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    align-items: stretch;
    background: #ffffff;
  }

  .container-before,
  .container-before.has-auth-intro {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .auth-entry-layout,
  .container-before.has-auth-intro .auth-entry-layout {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
  }

  .login,
  .container-before.has-auth-intro .login {
    min-height: 100vh;
    min-height: 100svh;
    padding: 76px 32px 40px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-intro {
    display: none;
  }
}

@media screen and (max-width: 360px) {
  .login,
  .container-before.has-auth-intro .login {
    padding-right: 24px;
    padding-left: 24px;
  }
}
