/* ds3 独立登录页：移植 default auth-ui 双栏布局 */
#reg {
  --ds-login-hero-light: url("../../../static/ds3/img/login/pc-login-bg.png");
  --ds-login-hero-dark: url("../../../static/ds3/img/login/pc-login-black-bg.png");
  --ds-login-mobile-top-light: url("../../../static/ds3/img/login/Mobile-main-top-bg.png");
  --ds-login-mobile-top-dark: url("../../../static/ds3/img/login/Mobile-main-top-black-bg.png");
  margin: 0;
  min-height: 100vh;
  background: var(--tpl-bg-base, #fff);
}

body.theme2#reg,
body.dark#reg {
  background: var(--tpl-bg-muted, #1c1d23);
}

#reg .show-mobile {
  display: none;
}

#reg .auth-page-layout {
  display: grid;
  grid-template-columns: 52.35% 47.65%;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

#reg .auth-page-hero {
  position: relative;
  background: transparent;
}

#reg .auth-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ds-login-hero-light) center / cover no-repeat;
}

body.theme2#reg .auth-page-hero::before,
body.dark#reg .auth-page-hero::before {
  background-image: var(--ds-login-hero-dark);
}

#reg .auth-page-form {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f5f5f8;
}

body.theme2#reg .auth-page-form,
body.dark#reg .auth-page-form {
  background: #1c1d23;
}

#reg .auth-page-form .reg-w.auth-shell {
  width: 336px;
  max-width: calc(100% - 80px);
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

#reg .reg-logo.auth-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 168px;
  height: 46px;
  margin: 0 0 28px;
}

#reg .reg-logo.auth-logo a {
  display: block;
  width: 168px;
  height: 46px;
}

#reg .reg-logo.auth-logo a {
  position: relative;
}

#reg .reg-logo.auth-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

#reg .reg-logo .logo2 {
  display: none !important;
}

body.theme2#reg .reg-logo .logo1,
body.dark#reg .reg-logo .logo1 {
  display: none !important;
}

body.theme2#reg .reg-logo .logo2,
body.dark#reg .reg-logo .logo2 {
  display: block !important;
}

body.theme2#reg .auth-pwd-eye,
body.dark#reg .auth-pwd-eye {
  background-image: var(--ds-auth-eye-close-dark);
}

body.theme2#reg .auth-pwd-eye.is-open,
body.dark#reg .auth-pwd-eye.is-open {
  background-image: var(--ds-auth-eye-open-dark);
}

body.theme2#reg .auth-forgot-link,
body.dark#reg .auth-forgot-link {
  color: rgba(255, 255, 255, 0.45) !important;
}

body.theme2#reg #ui-nav .mb-title,
body.theme2#reg #ui-nav .btn-left,
body.dark#reg #ui-nav .mb-title,
body.dark#reg #ui-nav .btn-left {
  color: rgba(255, 255, 255, 0.92);
}

#reg .auth-inline-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 46px;
  margin: 0 0 28px;
}

#reg .auth-inline-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f1f6;
  color: #232a3d;
  text-decoration: none;
  line-height: 0;
}

#reg .auth-inline-back .fa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  line-height: 1;
}

#reg .auth-inline-back .fa::before {
  display: block;
  line-height: 1;
  transform: translateX(-0.5px);
}

body.theme2#reg .auth-inline-back,
body.dark#reg .auth-inline-back {
  background: #2b3042;
  color: #f2f6ff;
}

#reg .auth-inline-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: #1d2336;
  text-align: center;
}

body.theme2#reg .auth-inline-title,
body.dark#reg .auth-inline-title {
  color: #f3f6ff;
}

#reg .auth-page-form .auth-field-label {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #70707f;
}

#reg .auth-page-form .auth-field-label:first-child {
  margin-top: 0;
}

body.theme2#reg .auth-page-form .auth-field-label,
body.dark#reg .auth-page-form .auth-field-label {
  color: rgba(255, 255, 255, 0.55);
}

#reg .auth-page-form .reg-group {
  height: 44px;
  min-height: 44px !important;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
  background: #ececf3 !important;
  border-color: #ececf3 !important;
}

body.theme2#reg .auth-page-form .reg-group,
body.dark#reg .auth-page-form .reg-group {
  background: #26272d !important;
  border-color: #26272d !important;
}

#reg .auth-page-form .reg-group .l-icon {
  display: none;
}

#reg .auth-page-form .reg-group .reg-control {
  height: 44px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  color: #9090a0;
}

body.theme2#reg .auth-page-form .reg-group .reg-control,
body.dark#reg .auth-page-form .reg-group .reg-control {
  color: #a7acc0;
}

#reg .auth-page-form .reg-group .reg-control::placeholder {
  color: #b7b9c8;
}

body.theme2#reg .auth-page-form .reg-group .reg-control::placeholder,
body.dark#reg .auth-page-form .reg-group .reg-control::placeholder {
  color: #7f869f;
}

#reg .auth-forgot-row {
  margin: 8px 0 0;
  text-align: right;
}

#reg .auth-forgot-link {
  color: #8f93a6 !important;
  font-size: 14px;
  text-decoration: none;
}

#reg .auth-forgot-link:hover {
  color: var(--tpl-accent, #40cc92) !important;
}

#reg .error-tip {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: #ff5d6c;
}

#reg .error-tip.is-show {
  display: block;
}

#reg .auth-page-form .btn-sub.auth-page-btn {
  width: 100%;
  height: 44px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  line-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff !important;
  background: #d0d3d6 !important;
  cursor: pointer;
}

#reg .auth-page-form .btn-sub.auth-page-btn.is-active {
  background: var(--tpl-accent, #40cc92) !important;
}

body.theme2#reg .auth-page-form .btn-sub.auth-page-btn,
body.dark#reg .auth-page-form .btn-sub.auth-page-btn {
  background: #3a3f54 !important;
}

body.theme2#reg .auth-page-form .btn-sub.auth-page-btn.is-active,
body.dark#reg .auth-page-form .btn-sub.auth-page-btn.is-active {
  background: var(--tpl-accent, #40cc92) !important;
}

#reg .auth-page-form .reg-group.verify_code {
  align-items: center;
  padding-right: 8px;
}

#reg .auth-page-form .reg-group.verify_code .m-hi {
  width: 92px;
  height: 30px;
}

#reg #ui-nav {
  position: relative;
  padding-top: 18px;
  background: transparent;
}

#reg #ui-nav .mb-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tpl-text-strong, #111);
}

#reg #ui-nav .btn-left {
  color: var(--tpl-text-strong, #111);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 0;
}

#reg #ui-nav .btn-left .fa {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

#reg #ui-nav .btn-left .fa::before {
  display: block;
  line-height: 1;
}

@media (max-width: 820px) {
  #reg .show-mobile {
    display: block;
  }

  #reg .auth-inline-head {
    display: none !important;
  }

  #reg .auth-page-layout {
    display: block;
    width: auto;
    min-height: auto;
  }

  #reg .auth-page-hero {
    display: none;
  }

  #reg .auth-page-form {
    display: block;
    min-height: auto;
    background: transparent !important;
  }

  #reg .auth-page-form .reg-w.auth-shell {
    width: auto;
    max-width: calc(100vw - 24px);
    margin: 68px auto 18px;
    padding: 26px 18px 18px;
    background: var(--tpl-bg-base, #fff);
    border-radius: 12px;
  }

  body.theme2#reg .auth-page-form .reg-w.auth-shell,
  body.dark#reg .auth-page-form .reg-w.auth-shell {
    background: #111319;
  }

  body.theme2#reg,
  body.dark#reg {
    background-image: var(--ds-login-mobile-top-dark) !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
  }

  body.theme1#reg {
    background-image: var(--ds-login-mobile-top-light) !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
  }

  #reg .reg-logo.auth-logo {
    width: 164px;
    height: 42px;
    margin: 0 auto 18px;
  }

  #reg .reg-logo.auth-logo a {
    width: 164px;
    height: 42px;
  }
}
