body.auth-page {
  background-color: #e4f1ff;
  background-position: left center;
}

body.auth-page .auth-main {
  width: min(1300px, calc(100% - 48px));
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.auth-page .auth-heading h1 {
  color: #555;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
}

body.auth-page .auth-title-line {
  position: relative;
  display: inline-block;
}

body.auth-page .auth-heading strong {
  margin-left: 10px;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(to right, #6386fe, #8d5dff, #6386fe) 0 / 200% auto;
  background-clip: text;
  animation: auth-title-scroll 2s linear infinite;
}

body.auth-page .auth-badge {
  position: absolute;
  right: -68px;
  top: -20px;
  width: 67px;
  height: 60px;
}

body.auth-page .auth-heading p {
  margin: 16px 0 60px;
  color: #555;
  font-size: 32px;
  line-height: 1.3;
}

body.auth-page .auth-heading p span {
  color: #318ffc;
}

body.auth-page .auth-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  height: 500px;
  min-height: 0;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 5px;
}

body.auth-page .auth-stage.has-banner {
  border-color: #fff;
}

body.auth-page .auth-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

body.auth-page .auth-illustration {
  flex: 1 1 auto;
  min-width: 0;
}

body.auth-page .auth-illustration img {
  width: min(100%, 900px);
  max-height: 490px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, .1));
}

body.auth-page .auth-stage.has-banner .auth-illustration {
  display: none;
}

body.auth-page .auth-card {
  position: relative;
  z-index: 1;
  flex: 0 0 366px;
  width: 366px;
  margin-left: auto;
  margin-right: 57px;
  padding: 30px 23px;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

body.auth-page .auth-card-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

body.auth-page .auth-card h2 {
  margin: 15px 0 20px;
  color: #333;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
}

body.auth-page .auth-field {
  position: relative;
  margin-bottom: 16px;
}

body.auth-page .auth-field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.auth-page .auth-field input:not([type="checkbox"]) {
  height: 33px;
  padding-left: 32px;
  font-size: 12px;
}

body.auth-page .auth-input-icon {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  pointer-events: none;
}

body.auth-page .account-icon { background-image: url("../assets/auth/account-icon.png"); }
body.auth-page .password-icon { background-image: url("../assets/auth/password-icon.png"); }
body.auth-page .kaptcha-icon { background-image: url("../assets/auth/kaptcha-icon.png"); }

body.auth-page .auth-field[data-field="password"] input,
body.auth-page .auth-field[data-field="againPassWord"] input { padding-right: 36px; }

body.auth-page .password-visibility {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: #9ca5ad;
}

body.auth-page .password-visibility img {
  display: block;
  width: 18px;
  height: 18px;
}

body.auth-page .password-visibility .eye-icon,
body.auth-page .password-visibility[aria-pressed="true"] .eye-off-icon {
  display: none;
}

body.auth-page .password-visibility[aria-pressed="true"] .eye-icon {
  display: block;
}

body.auth-page .captcha-row {
  gap: 6px;
}

body.auth-page .captcha-image {
  flex: 0 0 120px;
  width: 120px;
  height: 33px;
  border: 0;
  background: #f3f3f3;
}

body.auth-page .phone-row,
body.auth-page .code-row { position: relative; }

body.auth-page .phone-row { gap: 6px; }

body.auth-page .phone-row select {
  flex: 0 0 130px;
  width: 130px;
  height: 33px;
  padding: 0 5px;
  font-size: 12px;
}

body.auth-page .phone-row .auth-input-icon { left: 146px; }

body.auth-page .code-row { gap: 10px; }

body.auth-page .code-button {
  flex: 0 0 112px;
  width: 112px;
  height: 33px;
  border-color: #dcdfe6;
  border-radius: 3px;
  background: #fff;
  color: #333;
}

body.auth-page .code-button:disabled {
  background: #f7f7f7;
  color: #a5a5a5;
}

body.auth-page .password-hint {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 8px);
  left: 0;
  display: none;
  width: max-content;
  max-width: min(300px, 90vw);
  margin: 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
  color: #f20000;
  font-size: 12px;
}

body.auth-page .auth-field:focus-within .password-hint { display: block; }
body.auth-page .password-hint.is-valid { color: #2ba471; }

body[data-auth-page="register"] .auth-field { margin-bottom: 12px; }
body[data-auth-page="register"] .agreement-row { margin-top: 0; }
body[data-auth-page="register"] .auth-submit { margin-top: 12px; }
body[data-auth-page="register"] .auth-form-footer { margin-top: 16px; }
body[data-auth-page="forget-password"] .auth-form-footer { color: #333; }

body.auth-page .auth-submit {
  height: 33px;
  margin-top: 20px;
  background: #318ffc;
  font-size: 12px;
  font-weight: 500;
}

body.auth-page .auth-form-footer {
  margin-top: 25px;
  color: #999;
}

body.auth-page .auth-form-footer a:last-child {
  color: #0256ff;
}

@keyframes auth-title-scroll {
  to { background-position: 200% center; }
}

@media (max-width: 1200px) {
  body.auth-page .auth-heading h1 { font-size: 42px; }
  body.auth-page .auth-heading p { font-size: 24px; margin-bottom: 40px; }
}

@media (max-width: 900px) {
  body.auth-page .auth-main {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 16px;
  }

  body.auth-page .auth-heading,
  body.auth-page .auth-banner,
  body.auth-page .auth-illustration { display: none; }

  body.auth-page .auth-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    justify-content: center;
    overflow: visible;
    border: 0;
  }

  body.auth-page .auth-stage.has-banner { border: 0; }

  body.auth-page .auth-card {
    flex-basis: auto;
    width: min(100%, 366px);
    margin: 0;
  }
}

@media (max-width: 390px) {
  body.auth-page .auth-card { padding: 25px 20px; }
  body.auth-page .captcha-image { flex-basis: 100px; width: 100px; }
  body.auth-page .phone-row select { flex-basis: 108px; width: 108px; }
  body.auth-page .phone-row .auth-input-icon { left: 124px; }
  body.auth-page .code-button { flex-basis: 100px; width: 100px; }
}
