* {
  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;
  }
}

/* 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;
}