.auth-page {
  --auth-ink: #183454;
  --auth-muted: #64758b;
  --auth-blue: #286bd6;
  --auth-line: #dce7f2;
  margin: 0;
  min-width: 320px;
  background: #f5f9fd;
  color: var(--auth-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
  color: inherit;
}

.auth-page button,
.auth-page input {
  font: inherit;
}

.auth-page a {
  color: var(--auth-blue);
  text-decoration: none;
}

.auth-page a:hover {
  color: #164fae;
}

.auth-page :is(a, button, canvas):focus-visible {
  outline: 3px solid #6199e8;
  outline-offset: 4px;
}

.auth-page .auth-shell {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 28px 64px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px max(40px, calc((100vw - 1180px) / 2)) 48px;
  overflow: clip;
  background:
    radial-gradient(ellipse at 12% 40%, #e1efff 0, transparent 48%),
    radial-gradient(ellipse at 90% 12%, #edf4ff 0, transparent 42%),
    linear-gradient(125deg, #f2f8ff, #fbfdff 57%, #f0f6fc);
}

.auth-page .auth-shell::before {
  width: 480px;
  height: 700px;
  inset: 120px auto auto -170px;
  border-radius: 90px;
  transform: rotate(-32deg);
  background: linear-gradient(90deg, transparent, #ffffffa3, #ffffff08);
  box-shadow: 40px 10px 100px #84b2e71a;
  transition: none;
  z-index: -1;
}

.auth-page .auth-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-bottom: 14px;
}

.auth-page .auth-brand {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--auth-ink);
}

.auth-page .auth-brand .logo {
  position: static;
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: none;
  filter: drop-shadow(0 3px 6px #37679e1a);
}

.auth-page .auth-brand span {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 2px;
}

.auth-page .auth-home,
.auth-page .mobile-back-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: #ffffff80;
  color: #536e8b;
  font-size: 13px;
  transition: background .2s;
}

.auth-page .mobile-back-login span {
  font-size: 24px;
  line-height: 16px;
}

.auth-page .auth-home:hover,
.auth-page .mobile-back-login:hover {
  background: #fff;
}

.auth-page .auth-main {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 10px 0 22px;
}

.auth-page .auth-mobile-tabs {
  display: flex;
  flex: none;
  width: 212px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid #dce7f0;
  border-radius: 16px;
  background: #eaf1f880;
}

.auth-page .auth-mobile-tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
}

.auth-page .auth-mobile-tabs button.is-active {
  background: #fff;
  color: #245bb1;
  box-shadow: 0 3px 9px #31578212, 0 0 0 1px #dce7f066;
}

.auth-page .form-warp,
.auth-page .container.sign-up-mode .form-warp {
  position: static;
  display: block;
  width: 100%;
  max-width: 430px;
  transform: none;
  transition: none;
}

.auth-page .form-warp form,
.auth-page .form-warp.form-warp2 {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  padding: 34px 32px;
  border: 1px solid #ffffff;
  border-radius: 28px;
  outline: 0;
  background: linear-gradient(145deg, #ffffffed, #ffffffb8);
  box-shadow: 0 24px 70px #38639012, 0 3px 12px #38639006, inset 0 0 0 1px #deebf466;
  backdrop-filter: blur(20px);
  opacity: 1;
  transition: none;
}

.auth-page .form-warp .sign-up-form,
.auth-page .container.sign-up-mode .form-warp .sign-in-form {
  display: none;
}

.auth-page .container.sign-up-mode .form-warp .sign-up-form {
  display: flex;
  opacity: 1;
}

.auth-page .form-warp form:not([aria-hidden="true"]),
.auth-page .form-warp2 {
  animation: authFormIn .4s ease both;
}

.auth-page .auth-eyebrow {
  width: 300px;
  max-width: 100%;
  margin: 0 0 10px;
  color: #597fae;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2.1px;
}

.auth-page .form-title {
  width: 300px;
  max-width: 100%;
  margin: 0;
  color: #193958;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .5px;
}

.auth-page .auth-subtitle {
  width: 300px;
  max-width: 100%;
  margin: 9px 0 13px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.8;
}

.auth-page .auth-label {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 15px 0 7px;
  color: #41566f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.auth-page :is(.userInput, .passwordInput, .mailInput, .newpassword1Input, .newpassword2Input) {
  position: relative;
  display: block;
  width: 300px;
  max-width: 100%;
}

.auth-page .form-warp input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  outline: none;
  background: #f4f8fc;
  color: #203c58;
  font-size: 16px;
  line-height: normal;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.auth-page .form-warp input::placeholder {
  color: #64758b;
  font-size: 13px;
}

.auth-page .form-warp input:hover:not(:disabled) {
  border-color: #bacfe7;
}

.auth-page .form-warp input:focus {
  border-color: #79a6e5;
  background: #fff;
  box-shadow: 0 0 0 4px #3677d612;
}

.auth-page .form-warp input:disabled {
  opacity: 1;
  background: #edf1f5;
  color: #8c99a8;
  cursor: not-allowed;
}

.auth-page .form-warp .icon {
  position: absolute;
  display: block;
  width: 18px;
  height: 18px;
  left: 14px;
  top: 23px;
  transform: translateY(-50%);
  opacity: .48;
  pointer-events: none;
  transition: none;
}

.auth-page #yhm_a {
  display: block;
  font-size: 12px !important;
  line-height: 1.5;
}

.auth-page #yhm_a:not(:empty) {
  margin: 6px 0 0;
}

.auth-page .captcha-containerInput,
.auth-page .qq-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 8px;
  width: 300px;
  max-width: 100%;
}

.auth-page .form-warp .captcha-containerInput input,
.auth-page .form-warp .qq-code-row input {
  padding: 0 12px;
}

.auth-page #captchaInput1,
.auth-page #captchaInput2 {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.auth-page .captcha-containerInput .icon {
  display: none;
}

.auth-page .captcha-containerInput canvas {
  position: static;
  display: block;
  width: 100px;
  height: 40px;
  border: 1px solid #dfebf4;
  border-radius: 9px;
  background: #edf4fb;
  transform: none;
  cursor: pointer;
}

.auth-page .qq-code-row button,
.auth-page .form-warp2 .captcha-containerInput button {
  width: 100px;
  height: 46px;
  padding: 0 5px;
  border: 1px solid #d3e3f7;
  border-radius: 12px;
  background: #eaf2fd;
  color: #3267b4;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s;
}

.auth-page .qq-code-row button:hover,
.auth-page .form-warp2 .captcha-containerInput button:hover {
  background: #dfeafb;
}

.auth-page .auth-hint,
.auth-page .auth-note {
  width: 300px;
  max-width: 100%;
  margin: 7px 0 0;
  color: #62758c;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-page .auth-note {
  margin-top: 16px;
}

.auth-page .forgetPassword {
  width: 300px;
  max-width: 100%;
  margin: 17px 0 0;
  text-align: right;
  font-size: 12px;
}

.auth-page .forgetPassword a {
  color: #3568ad;
}

.auth-page .submit-btn {
  width: 300px;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  margin: 23px 0 0;
  border-radius: 12px;
  background: transparent;
}

.auth-page .submit-btn button {
  width: 100%;
  height: 48px;
  border: 1px solid #2f70d2;
  border-radius: 12px;
  background: linear-gradient(115deg, #2865c8, #4286e4);
  box-shadow: 0 8px 18px #286bd622, inset 0 1px 0 #ffffff33;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.auth-page .submit-btn button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(115deg, #245db9, #377bd9);
  box-shadow: 0 10px 22px #286bd632;
}

.auth-page .submit-btn button:active:not(:disabled) {
  transform: translateY(0);
}

.auth-page button:disabled {
  cursor: not-allowed;
}

.auth-page .submit-btn button:disabled {
  border-color: #b6c7dc;
  background: #bdcfe6;
  box-shadow: none;
  color: #fff;
}

.auth-page .qq-code-row button:disabled,
.auth-page .form-warp2 .captcha-containerInput button:disabled {
  border-color: #e0e6ed;
  background: #edf1f6;
  color: #8291a4;
}

.auth-page .field-error {
  display: block;
  width: 300px;
  max-width: 100%;
  margin-top: 6px;
  color: #c23d55;
  font-size: 12px;
  line-height: 1.6;
}

.auth-page .form-warp .input-invalid {
  border-color: #dd8092 !important;
  background: #fff5f7 !important;
}

.auth-page .login-inline-message,
.auth-page .register-inline-message,
.auth-page .reset-message {
  width: 300px;
  max-width: 100%;
  margin-top: 10px;
  color: #506d91;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-page :is(.login-inline-message, .register-inline-message, .reset-message):empty {
  display: none;
}

.auth-page .login-inline-message.show,
.auth-page .reset-message:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #dbe7f6;
  border-radius: 11px;
  background: #eef5ff;
}

.auth-page .is-error {
  color: #bb3c52;
}

.auth-page .is-success {
  color: #227965;
}

.auth-page .login-inline-message.is-error {
  border-color: #f3d5dc;
  background: #fff3f5;
}

.auth-page .login-inline-message.is-success {
  border-color: #d4e9e1;
  background: #eef9f4;
}

.auth-page .form-warp2 #form1,
.auth-page .form-warp2 #form2 {
  display: flex;
  width: 300px;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.auth-page .auth-step {
  width: 300px;
  max-width: 100%;
  margin: 17px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e4ecf4;
  color: #53779f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1px;
}

.auth-page .desc-warp {
  position: static;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
  height: auto;
  max-width: 500px;
  min-width: 0;
  padding: 24px 0;
}

.auth-page .auth-story-heading .auth-eyebrow {
  width: auto;
  margin-bottom: 20px;
}

.auth-page .auth-story-heading h1 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: 1px;
}

.auth-page .auth-story-copy {
  max-width: 330px;
  margin-top: 16px;
  color: #647e99;
  font-size: 14px;
  line-height: 1.9;
}

.auth-page .auth-art {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 310px;
  margin: 22px 0 20px;
  perspective: 1000px;
}

.auth-page .art-orbit {
  position: absolute;
  width: 330px;
  height: 150px;
  top: 115px;
  left: 32px;
  border: 1px solid #ffffffbd;
  border-radius: 50%;
  transform: rotate(-21deg);
  box-shadow: 0 0 0 24px #ffffff16, 0 0 0 50px #ffffff12;
}

.auth-page .art-glass {
  position: absolute;
  width: 215px;
  height: 228px;
  left: 100px;
  top: 37px;
  border: 1px solid #ffffffc9;
  border-radius: 24px;
  background: linear-gradient(130deg, #ffffff8c, #a6ccff20);
  box-shadow: 0 14px 40px #477eac0c;
  transform: rotate(12deg);
  animation: authGlassFloat 9s ease-in-out infinite;
}

.auth-page .art-card {
  position: absolute;
  left: 55px;
  top: 24px;
  width: 222px;
  padding: 17px;
  border: 1px solid #ffffff;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffffef, #f5faffd9);
  box-shadow: 12px 25px 40px #37679914, inset 0 0 0 1px #dae8f74d;
  transform: rotate(-8deg);
}

.auth-page .art-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #6687a9;
  font-size: 10px;
  letter-spacing: 2px;
}

.auth-page .art-symbol {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #5c8bcc;
  font-size: 18px;
}

.auth-page .art-landscape {
  position: relative;
  height: 120px;
  overflow: hidden;
  border: 1px solid #e0edfc;
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 75% 20%, #fff 0, #ffffff80 14%, transparent 40%),
    linear-gradient(140deg, #bcd9fa, #eaf5ff 60%, #d7eaff);
}

.auth-page .art-landscape-line {
  position: absolute;
  width: 240px;
  height: 100px;
  left: -40px;
  top: 58px;
  border: 1px solid #ffffffb8;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #9cc4f27a, #eaf5ff80);
  transform: rotate(-17deg);
}

.auth-page .art-landscape-line-back {
  left: 25px;
  top: 78px;
  background: linear-gradient(180deg, #c1ddf6a6, #ffffff8c);
  transform: rotate(17deg);
}

.auth-page .art-card-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.auth-page .art-card-lines span {
  width: 73%;
  height: 5px;
  border-radius: 5px;
  background: #d4e4f3;
}

.auth-page .art-card-lines span:nth-child(2) {
  width: 45%;
  background: #e4edf6;
}

.auth-page .art-card-lines span:nth-child(3) {
  width: 21%;
  margin-left: auto;
  background: #abc9ed;
}

.auth-page .art-link {
  position: absolute;
  top: 45px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 19px;
  border: 1px solid #ffffffed;
  border-radius: 16px;
  background: #f7fbffd9;
  box-shadow: 0 12px 25px #49769c12;
  color: #5280b6;
  font-size: 12px;
  transform: rotate(5deg);
}

.auth-page .art-link span:first-child {
  font-size: 25px;
}

.auth-page .art-payment {
  position: absolute;
  bottom: 22px;
  right: 18px;
  display: grid;
  grid-template-columns: 38px auto;
  gap: 5px 12px;
  min-width: 194px;
  padding: 20px;
  border: 1px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(120deg, #ffffffeb, #edf7ffeb);
  box-shadow: 0 15px 30px #37679917;
  transform: rotate(3deg);
}

.auth-page .art-check {
  grid-row: 1 / 3;
  display: grid;
  align-self: center;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d0e3fa;
  border-radius: 12px;
  background: #e7f2ff;
  color: #558ace;
  font-size: 18px;
}

.auth-page .art-payment small {
  color: #7b94ad;
  font-size: 10px;
  letter-spacing: 1px;
}

.auth-page .art-payment strong {
  color: #396185;
  font-size: 14px;
  font-weight: 600;
}

.auth-page .art-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #aac9ed;
  transform: rotate(45deg);
}

.auth-page .art-spark-one { left: 12px; top: 78px; }
.auth-page .art-spark-two { right: 22px; top: 155px; width: 9px; height: 9px; background: #fff; }
.auth-page .art-spark-three { left: 55px; bottom: 35px; width: 4px; height: 4px; }

.auth-page .desc-warp-item {
  display: block;
  padding: 0;
  text-align: left;
}

.auth-page .desc-warp-item .content,
.auth-page .container.sign-up-mode .desc-warp-item .content {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  transform: none;
  transition: none;
}

.auth-page .desc-warp-item .content p {
  padding: 0;
  color: #6b829c;
  font-size: 12px;
  line-height: 1.8;
}

.auth-page .desc-warp-item .content button {
  min-width: 68px;
  padding: 8px 16px;
  border: 1px solid #c4d8ee;
  border-radius: 10px;
  background: #ffffff80;
  color: #386dae;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
}

.auth-page .desc-warp-item .content button:hover {
  background: #fff;
}

.auth-page .desc-warp .sign-in-desc,
.auth-page .sign-up-mode .desc-warp .sign-up-desc {
  display: none;
}

.auth-page .sign-up-mode .desc-warp .sign-in-desc {
  display: block;
  pointer-events: auto;
}

.auth-page .auth-story-footer {
  display: flex;
  gap: 0;
  margin-top: 34px;
  color: #8299b1;
  font-size: 10px;
  letter-spacing: 1px;
}

.auth-page .auth-story-footer span + span::before {
  content: "/";
  padding: 0 17px;
  color: #b9cce0;
}

.auth-page .request-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #eff6ff99;
  backdrop-filter: blur(5px);
}

.auth-page .request-overlay.is-visible {
  display: flex;
}

.auth-page .request-status {
  min-width: 190px;
  max-width: 100%;
  padding: 24px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: #fffffff2;
  box-shadow: 0 20px 60px #38639024;
  color: #315a89;
  font-size: 14px;
  text-align: center;
}

.auth-page .request-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 3px solid #e0ecfa;
  border-top-color: #3677d6;
  border-radius: 50%;
  animation: authRequestSpin .8s linear infinite;
}

.auth-page form.is-submitting {
  pointer-events: none;
}

.auth-page .auth-brand.is-moving {
  animation: authBrandPulse .45s ease;
}

@keyframes authFormIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes authGlassFloat {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-7px); }
}

@keyframes authBrandPulse {
  50% { opacity: .7; }
}

@keyframes authRequestSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) and (min-width: 801px) {
  .auth-page .auth-shell { gap: 24px 32px; padding-inline: 32px; }
  .auth-page .auth-story-heading h1 { font-size: 32px; }
  .auth-page .auth-art { transform: scale(.9); transform-origin: left center; }
}

@media (max-width: 800px) {
  .auth-page .auth-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px 40px;
    overflow: clip;
    background:
      radial-gradient(ellipse at 0 15%, #dcecff, transparent 55%),
      radial-gradient(ellipse at 100% 60%, #e8f3ff, transparent 60%),
      linear-gradient(145deg, #f2f7ff, #fbfdff);
  }
  .auth-page .auth-shell::before {
    width: 220px;
    height: 420px;
    top: -40px;
    left: -170px;
  }
  .auth-page .auth-header {
    width: 100%;
    max-width: 480px;
    min-height: 42px;
    margin: 0 auto;
    padding: 0;
  }
  .auth-page .auth-brand { gap: 8px; }
  .auth-page .auth-brand .logo { width: 31px; height: 31px; }
  .auth-page .auth-brand span { font-size: 19px; letter-spacing: 1px; }
  .auth-page .auth-home,
  .auth-page .mobile-back-login { padding: 7px 9px; font-size: 11px; }
  .auth-page .auth-main { width: 100%; padding: 28px 0 0; }
  .auth-page .auth-mobile-tabs { margin-bottom: 20px; width: 100%; max-width: 300px; }
  .auth-page .auth-mobile-tabs button { height: 38px; }
  .auth-page .form-warp form,
  .auth-page .form-warp.form-warp2 { padding: 28px 26px; border-radius: 24px; }
  .auth-page .form-title { font-size: 27px; }
  .auth-page .auth-subtitle { margin-bottom: 9px; }
  .auth-page .desc-warp { display: none; }
  .auth-page .form-warp { max-width: 400px; }
  .auth-page.auth-recovery .auth-main { padding-top: 26px; }
}

@media (max-width: 400px) {
  .auth-page .auth-shell { padding: 16px 16px 32px; }
  .auth-page .form-warp form,
  .auth-page .form-warp.form-warp2 { padding: 26px 20px; border-radius: 22px; }
  .auth-page .form-title { font-size: 25px; }
  .auth-page .auth-subtitle { font-size: 12px; }
  .auth-page .auth-main { padding-top: 24px; }
}

@media (max-width: 360px) {
  .auth-page .auth-shell { padding-inline: 12px; }
  .auth-page .form-warp form,
  .auth-page .form-warp.form-warp2 { padding-inline: 18px; }
  .auth-page .captcha-containerInput,
  .auth-page .qq-code-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .auth-page .captcha-containerInput canvas,
  .auth-page .qq-code-row button,
  .auth-page .form-warp2 .captcha-containerInput button { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
