:root {
  --auth-ink: #13233a;
  --auth-muted: #73839a;
  --auth-blue: #1682ee;
  --auth-cyan: #43c6ec;
  --auth-line: #cfe0f1;
  --auth-navy: #061a3c;
}

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

.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #eff7ff;
}

.auth-page a { color: inherit; text-decoration: none; }
.auth-page button,
.auth-page input { font: inherit; }

.auth-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 59px;
  padding: 0 28px;
}

.auth-nav-dark {
  color: #fff;
  background: rgba(76, 79, 81, .84);
  box-shadow: 0 2px 12px rgba(15, 29, 48, .08);
}

.auth-nav-light {
  color: #14243a;
  background: rgba(255, 255, 255, .24);
}

.auth-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.auth-nav-links a {
  position: relative;
  padding: 20px 15px 18px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.auth-nav-links a::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 10px;
  left: 15px;
  height: 2px;
  border-radius: 99px;
  background: #67d5e7;
  opacity: 0;
  transform: scaleX(.3);
  transition: .2s ease;
}

.auth-nav-links a:hover::after,
.auth-nav-links a.active::after { opacity: 1; transform: scaleX(1); }

.auth-top-action {
  position: absolute;
  right: 18px;
  top: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 38px;
  padding: 0 15px;
  border-radius: 0;
  color: #fff;
  background: #16191b;
  font-size: 13px;
  font-weight: 800;
}

.auth-nav-light .auth-top-action {
  border-radius: 99px;
  color: #1478df;
  background: #e0f1ff;
}

.auth-brand { display: none; }

.auth-nav .auth-brand span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #645cf0, #28c4de);
  font-size: 17px;
  font-weight: 900;
}

.auth-nav .auth-brand strong { font-size: 14px; }

.auth-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
}

.auth-nav-light .auth-menu-button { color: #25384d; background: rgba(19, 44, 71, .08); }

.auth-main {
  position: relative;
  min-height: 1091px;
  padding: 96px 28px 76px;
  overflow: hidden;
  background-color: #f5fbff;
  background-image:
    linear-gradient(rgba(71, 130, 194, .095) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 130, 194, .095) 1px, transparent 1px),
    radial-gradient(circle at 11% 9%, rgba(93, 167, 255, .19), transparent 27rem),
    radial-gradient(circle at 89% 11%, rgba(101, 219, 233, .13), transparent 29rem),
    linear-gradient(180deg, #edf7ff, #fff 65%, #f0f8ff);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(430px, .9fr);
  align-items: center;
  gap: 43px;
  width: min(1240px, 100%);
  min-height: 100%;
  margin: 0 auto;
}

.auth-register-page .auth-shell {
  grid-template-columns: minmax(0, 1.2fr) minmax(430px, .9fr);
}

.auth-intro-card,
.auth-card {
  border: 1px solid #c7def6;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 55px rgba(49, 105, 159, .10);
}

.auth-intro-card {
  padding: 38px 40px 40px;
  border-radius: 28px;
}

.auth-intro-card h1 {
  margin: 0;
  font-size: clamp(42px, 4.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 500;
}

.auth-register-page .auth-intro-card h1 { font-size: clamp(38px, 3.7vw, 52px); }

.auth-intro-card p {
  max-width: 650px;
  margin: 20px 0 24px;
  color: #657995;
  font-size: 15px;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  position: relative;
  padding-left: 29px;
  color: #263b55;
  font-size: 15px;
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 6px solid #d9edff;
  border-radius: 50%;
  background: #40a9ed;
}

.auth-card {
  width: 100%;
  padding: 34px 34px 31px;
  border-radius: 30px;
}

.auth-login-page .auth-card { min-height: 523px; }
.auth-register-page .auth-card { min-height: 975px; padding-top: 31px; }

.auth-card h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.03em;
}

.auth-card .auth-card-desc {
  margin: 13px 0 23px;
  color: #71839b;
  font-size: 13px;
  line-height: 1.65;
}

.auth-form { display: grid; gap: 13px; }

.auth-form > label:not(.auth-agreement) {
  display: grid;
  gap: 8px;
  color: #21334b;
  font-size: 12px;
  font-weight: 800;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c8dbea;
  border-radius: 16px;
  outline: 0;
  color: #17283f;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  transition: .2s ease;
}

.auth-register-page .auth-form { gap: 11px; }
.auth-register-page .auth-form input:not([type="checkbox"]) { height: 43px; border-radius: 14px; }

.auth-form input:not([type="checkbox"]):focus {
  border-color: #4aa8ee;
  box-shadow: 0 0 0 4px rgba(74, 168, 238, .13);
}

.auth-sms-row {
  display: grid;
  grid-template-columns: 1fr 114px;
  gap: 8px;
}

.auth-sms-button {
  height: 43px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(120deg, #112c4c, #2779db);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.auth-sms-button:disabled { opacity: .58; cursor: wait; }

.auth-help-text {
  margin: -1px 0 2px;
  color: #70829a;
  font-size: 10px;
  line-height: 1.65;
}

.auth-help-text a,
.auth-agreement a,
.auth-links a { color: #0879e5; font-weight: 850; }

.auth-agreement {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: #25364d;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 700;
}

.auth-agreement input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #208be9;
}

.auth-submit {
  justify-self: start;
  min-width: 128px;
  height: 50px;
  margin-top: 1px;
  padding: 0 28px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(110deg, #1780ef, #43c4eb);
  box-shadow: 0 15px 27px rgba(30, 136, 232, .24);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.auth-register-page .auth-submit { min-width: 115px; height: 47px; }
.auth-submit:hover { transform: translateY(-2px); filter: brightness(1.04); }

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7b899d;
  font-size: 14px;
}

.auth-register-page .auth-links { margin-top: 3px; }
.auth-links [data-auth-reset] { margin-left: 0; }

.auth-footer {
  position: relative;
  padding: 60px max(7vw, 60px) 24px;
  color: #a0afc2;
  background: linear-gradient(112deg, #0b2250, #031126 76%);
}

.auth-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 21px 27px;
  border: 1px solid rgba(116, 181, 232, .32);
  border-radius: 22px;
  background: rgba(42, 76, 116, .34);
}

.auth-footer-cta strong {
  color: #66c8eb;
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 500;
}

.auth-footer-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 52px;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(110deg, #0b73f8, #10a8ef);
  font-size: 15px;
  font-weight: 850;
}

.auth-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr .85fr 1fr;
  gap: 42px;
  max-width: 1200px;
  margin: 43px auto 0;
}

.auth-footer-grid > section { display: grid; align-content: start; gap: 11px; }
.auth-footer-grid h3 { margin: 0 0 7px; color: #59bee5; font-size: 23px; font-weight: 500; }
.auth-footer-grid a,
.auth-footer-grid p,
.auth-footer-grid li,
.auth-footer-grid span { margin: 0; color: #9cacc0; font-size: 12px; line-height: 1.7; }
.auth-footer-grid ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.auth-footer-grid li::before { content: "✓"; margin-right: 8px; color: #5bc5ed; font-weight: 900; }
.auth-footer-grid a:hover { color: #fff; }

.auth-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 10px 15px;
  border-radius: 5px;
  color: #101c2d !important;
  background: #fff;
}

.auth-footer-brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 42px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #615cf1, #2fc9e2);
  font-size: 26px;
  font-weight: 900;
}

.auth-footer-brand strong { font-size: 22px; letter-spacing: .02em; }
.auth-footer-brand small { display: block; margin-top: 2px; font-size: 8px; letter-spacing: .12em; }
.auth-footer-copy { max-width: 300px; }

.auth-qr {
  position: relative;
  width: 108px;
  height: 108px;
  margin-top: 3px;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 9px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(10, 19, 30, .95) 12%, transparent 12% 25%, rgba(10, 19, 30, .95) 25% 37%, transparent 37% 49%, rgba(10, 19, 30, .95) 49% 63%, transparent 63% 75%, rgba(10, 19, 30, .95) 75% 88%, transparent 88%),
    linear-gradient(rgba(10, 19, 30, .95) 12%, transparent 12% 25%, rgba(10, 19, 30, .95) 25% 37%, transparent 37% 49%, rgba(10, 19, 30, .95) 49% 63%, transparent 63% 75%, rgba(10, 19, 30, .95) 75% 88%, transparent 88%);
  background-size: 24px 24px;
}

.auth-qr::before,
.auth-qr::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border: 6px solid #fff;
  outline: 5px solid #111b2a;
  background: #fff;
  box-shadow: inset 0 0 0 6px #111b2a;
}

.auth-qr::before { top: 1px; left: 1px; }
.auth-qr::after { right: 1px; bottom: 1px; }

.auth-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 44px auto 0;
  padding-top: 17px;
  border-top: 1px solid rgba(139, 184, 220, .18);
  color: #8899ae;
  font-size: 11px;
}

.auth-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(360px, calc(100% - 30px));
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  color: #fff;
  background: rgba(14, 32, 54, .93);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .25s ease;
}

.auth-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .auth-nav { justify-content: flex-start; }
  .auth-nav-links { gap: 0; }
  .auth-nav-links a { padding-inline: 9px; font-size: 12px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); gap: 24px; }
  .auth-intro-card { padding-inline: 29px; }
  .auth-intro-card h1 { font-size: 43px; }
  .auth-card { padding-inline: 27px; }
  .auth-footer-grid { gap: 25px; }
}

@media (max-width: 760px) {
  .auth-nav {
    min-height: 51px;
    padding: 0 13px;
  }

  .auth-nav-links {
    position: absolute;
    top: 51px;
    right: 12px;
    left: 12px;
    display: none;
    padding: 7px;
    border: 1px solid rgba(110, 150, 190, .23);
    border-radius: 10px;
    background: rgba(16, 31, 52, .96);
    box-shadow: 0 15px 36px rgba(9, 29, 53, .22);
  }

  .auth-nav-light .auth-nav-links { background: rgba(255, 255, 255, .97); }
  .auth-nav.nav-open .auth-nav-links { display: grid; }
  .auth-nav-links a { padding: 11px; color: #eaf4ff; font-size: 12px; }
  .auth-nav-light .auth-nav-links a { color: #1b2b41; }
  .auth-nav-links a::after { display: none; }
  .auth-top-action { top: 10px; right: 13px; min-width: 91px; height: 32px; padding-inline: 11px; font-size: 11px; }
  .auth-nav-light .auth-top-action { top: 10px; }
  .auth-menu-button { position: absolute; left: 50%; top: 8px; display: grid; place-items: center; transform: translateX(-50%); }

  .auth-main {
    min-height: 934px;
    padding: 92px 12px 36px;
  }

  .auth-register-page .auth-main {
    min-height: 859px;
    padding-top: 76px;
  }

  .auth-shell,
  .auth-register-page .auth-shell { display: block; min-height: 0; }
  .auth-intro-card { display: none; }
  .auth-card,
  .auth-login-page .auth-card,
  .auth-register-page .auth-card { width: min(100%, 520px); min-height: 0; margin: 0 auto; padding: 20px 18px 18px; border-radius: 21px; }
  .auth-login-page .auth-card { min-height: 437px; }
  .auth-register-page .auth-card { width: min(100%, 520px); padding-top: 17px; }
  .auth-card h2 { font-size: 23px; }
  .auth-card .auth-card-desc { margin: 9px 0 16px; font-size: 11px; }
  .auth-form { gap: 11px; }
  .auth-form > label:not(.auth-agreement) { gap: 6px; font-size: 10px; }
  .auth-form input:not([type="checkbox"]),
  .auth-register-page .auth-form input:not([type="checkbox"]) { height: 41px; padding-inline: 12px; border-radius: 14px; font-size: 10px; }
  .auth-register-page .auth-form { gap: 9px; }
  .auth-sms-row { grid-template-columns: 1fr; gap: 7px; }
  .auth-sms-button { height: 41px; border-radius: 11px; }
  .auth-help-text { font-size: 9px; }
  .auth-agreement { font-size: 9px; }
  .auth-submit,
  .auth-register-page .auth-submit { width: 100%; min-width: 0; height: 42px; border-radius: 13px; font-size: 12px; }
  .auth-links { gap: 9px; font-size: 12px; }

  .auth-footer { padding: 30px 14px 17px; }
  .auth-footer-cta { align-items: stretch; flex-direction: column; gap: 16px; padding: 16px 14px 15px; border-radius: 16px; text-align: center; }
  .auth-footer-cta strong { font-size: 20px; line-height: 1.2; }
  .auth-footer-cta a { min-width: 0; width: 100%; height: 45px; font-size: 13px; }
  .auth-footer-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 31px; }
  .auth-footer-grid h3 { font-size: 22px; }
  .auth-footer-grid a,
  .auth-footer-grid p,
  .auth-footer-grid li,
  .auth-footer-grid span { font-size: 11px; }
  .auth-footer-copy { max-width: none; }
  .auth-footer-bottom { display: grid; gap: 10px; margin-top: 30px; font-size: 10px; }
  .auth-qr { width: 94px; height: 94px; }
}

@media (max-width: 370px) {
  .auth-card,
  .auth-login-page .auth-card,
  .auth-register-page .auth-card { padding-inline: 14px; }
  .auth-links { gap: 6px; font-size: 11px; }
  .auth-footer-cta strong { font-size: 18px; }
}
