html,
body {
  min-width: 320px;
}

.auth-page,
.auth-page * {
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  background: #f7f4ff;
}

.auth-page .box-l {
  position: relative;
  flex: 0 0 56%;
  width: 56%;
  padding: 32px;
  overflow: hidden;
}

.auth-page .box-l::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
}

.auth-page .auth-visual {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 142px 48px 64px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
}

.auth-page .auth-visual::after {
  content: "";
  position: absolute;
  right: -265px;
  bottom: -315px;
  width: 760px;
  height: 760px;
  border: 70px solid rgba(224, 20, 91, .64);
  border-left-color: rgba(75, 42, 174, .76);
  border-radius: 50%;
  pointer-events: none;
}

.auth-page .auth-visual-logo {
  position: absolute;
  top: 144px;
  left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 54px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.auth-page .auth-visual-logo img,
.auth-page .auth-brand img {
  display: block;
  width: 146px;
  max-width: 146px;
  height: auto;
  flex: 0 0 auto;
}

.auth-page .auth-eyebrow {
  position: relative;
  z-index: 1;
  margin: 128px 0 18px;
  color: rgba(255, 255, 255, .94);
  font-family: "HarmonyOSSansTCBold", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.auth-page .auth-visual h1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-family: "HarmonyOSSansTCBlack", Arial, sans-serif;
  font-size: clamp(48px, 5.2vw, 86px);
  font-weight: 900;
  line-height: .98;
}

.auth-page .auth-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .86);
  font-family: "HarmonyOSSansTCLight", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

.auth-page .auth-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: rgba(255, 255, 255, .86);
  font-family: "HarmonyOSSansTCLight", Arial, sans-serif;
  font-size: 14px;
}

.auth-page .auth-metrics strong {
  font-family: "HarmonyOSSansTCBold", Arial, sans-serif;
}

.auth-page .box-r {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 32px 48px;
  background: linear-gradient(135deg, #fbfaff 0%, #f4efff 100%);
}

.auth-page .box-r form {
  width: min(574px, 100%);
  height: auto;
  min-height: 626px;
  padding: 132px 44px 34px;
  border: 1px solid rgba(199, 190, 227, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 80px rgba(83, 69, 126, .08);
}

.auth-page .box-r .back {
  top: 28px;
  left: 28px;
}

.auth-page .auth-brand {
  position: absolute;
  top: 44px;
  left: 82px;
  right: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-page .auth-brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #d8cee9;
  border-radius: 999px;
  color: #6540bb;
  background: #faf8ff;
  font-family: "HarmonyOSSansTCBold", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-page .auth-kicker {
  width: 100%;
  margin: 0 0 18px;
  color: #ec1c63;
  font-family: "HarmonyOSSansTCBold", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-page .box-r h2 {
  width: 100%;
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.1;
  text-align: left;
}

.auth-page .box-r .text {
  width: 100%;
  margin: 0 0 20px;
  color: #9a9a9a;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.auth-page .box-r .text a,
.auth-page .box-r .item .pass a {
  color: #ec1c63;
  text-decoration: none;
}

.auth-page .box-r .item,
.auth-page .box-r.reg .item {
  margin-top: 18px;
}

.auth-page .box-r .item input,
.auth-page .box-r.reg .item input {
  height: 64px;
  line-height: 64px;
  border: 1px solid #d7cde8;
  border-radius: 18px;
  box-shadow: none;
  color: #111;
  font-size: 16px;
}

.auth-page .auth-inline-action {
  margin-top: 14px;
}

.auth-page .box-r .item .pass a {
  color: #ec1c63;
  font-size: 16px;
}

.auth-page #btlogin,
.auth-page #btreg,
.auth-page #btpwd {
  height: 66px;
  line-height: 66px;
  margin-top: 0;
  border: 0;
  border-radius: 28px;
  background: #cfc7e3;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
}

.auth-page #btlogin.cur,
.auth-page #btreg.cur,
.auth-page #btpwd.cur {
  background: #ec1c63;
}

.auth-page .box-r .foot {
  width: 100%;
  color: #757575;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.auth-page .box-r.reg form {
  min-height: 720px;
  padding-top: 116px;
}

.auth-page .box-r.reg {
  align-items: flex-start;
  overflow-y: auto;
}

.auth-page .box-r.reg form {
  margin: 0 auto;
}

.auth-page .box-r.reg .type {
  width: 100%;
  margin-bottom: 6px;
}

.auth-page .box-r.reg .line {
  width: 100%;
}

@media (max-width: 1180px) {
  .auth-page .box-l {
    flex-basis: 52%;
    width: 52%;
  }

  .auth-page .box-r {
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .auth-page .box-l {
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .auth-page .auth-visual {
    display: none;
  }

  .auth-page .box-r {
    width: min(430px, calc(100% - 32px));
    padding: max(22px, env(safe-area-inset-top)) 0 max(22px, env(safe-area-inset-bottom));
    background: transparent;
  }

  .auth-page .box-r form,
  .auth-page .box-r.reg form {
    min-height: auto;
    padding: 92px 22px 24px;
    border-radius: 24px;
  }

  .auth-page .auth-brand {
    top: 28px;
    left: 54px;
    right: 22px;
  }

  .auth-page .auth-brand img {
    width: 124px;
    max-width: 124px;
  }

  .auth-page .auth-brand a {
    min-width: 62px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .auth-page .box-r h2,
  .auth-page .box-r .text,
  .auth-page .auth-kicker {
    text-align: left;
  }
}
