:root {
  --blue-950: #071431;
  --blue-900: #0a1b42;
  --blue-800: #102e71;
  --blue-700: #1646b0;
  --blue-600: #2463ec;
  --blue-500: #3578ff;
  --blue-300: #9bc3ff;
  --blue-100: #e8f1ff;
  --blue-50: #f3f7ff;
  --ink: #101f3e;
  --ink-soft: #344464;
  --muted: #73819c;
  --line: #e5ebf5;
  --surface: #ffffff;
  --page: #f2f6fe;
  --red: #cf4657;
  --red-soft: #fff0f2;
  --green: #108465;
  --green-soft: #eaf8f3;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(520px, 1.08fr);
  min-height: 100dvh;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px clamp(36px, 5vw, 76px) 40px;
  color: #fff;
  background:
    radial-gradient(780px 680px at 2% 112%, rgba(44, 113, 255, 0.48), transparent 64%),
    radial-gradient(620px 540px at 108% -12%, rgba(78, 151, 255, 0.34), transparent 66%),
    linear-gradient(148deg, #071432 0%, #0a1d49 48%, #113477 100%);
}

.auth-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -170px;
  bottom: 11%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 188, 255, 0.2), transparent 66%);
  pointer-events: none;
}

.auth-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(154, 194, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 194, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 26% 45%, black 0%, transparent 72%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.auth-brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(164, 201, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 8, 31, 0.22);
}

.auth-brand-mark img {
  display: block;
  border-radius: 11px;
}

.auth-brand-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth-brand-word strong {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.auth-brand-word small {
  color: rgba(195, 216, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.auth-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-top: clamp(70px, 14vh, 148px);
}

.auth-eyebrow {
  margin: 0 0 22px;
  color: #7eb2ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.auth-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -0.035em;
}

.auth-lead {
  max-width: 390px;
  margin: 26px 0 0;
  color: rgba(206, 222, 250, 0.72);
  font-size: 13.5px;
  line-height: 1.85;
}

.auth-points {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 450px;
  margin-top: clamp(42px, 8vh, 86px);
  border-top: 1px solid rgba(156, 192, 250, 0.15);
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(156, 192, 250, 0.12);
}

.auth-point-index {
  color: #61a0ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.auth-point > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.auth-point strong {
  min-width: 72px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-point small {
  color: rgba(190, 210, 242, 0.55);
  font-size: 10.5px;
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(137, 181, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.auth-orbit-one {
  width: 620px;
  height: 620px;
  right: -345px;
  bottom: -300px;
}

.auth-orbit-two {
  width: 880px;
  height: 880px;
  right: -470px;
  bottom: -425px;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 42px 32px;
  background:
    radial-gradient(800px 580px at 92% 4%, rgba(193, 218, 255, 0.58), transparent 65%),
    radial-gradient(700px 600px at 2% 100%, rgba(224, 236, 255, 0.76), transparent 66%),
    #f5f8ff;
}

.auth-mobile-brand {
  display: none;
}

.auth-card {
  width: min(100%, 430px);
  padding: 35px 35px 26px;
  border: 1px solid rgba(219, 230, 247, 0.92);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 28px 70px rgba(26, 58, 119, 0.12),
    0 3px 10px rgba(26, 58, 119, 0.035);
}

.auth-card-head {
  padding: 1px 2px 0;
}

.auth-kicker {
  margin: 0 0 10px;
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.auth-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.auth-card-head > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0 16px;
  padding: 4px;
  border: 1px solid #e9eef8;
  border-radius: 13px;
  background: #f4f7fd;
}

.auth-tab {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8190aa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-tab:hover {
  color: var(--blue-700);
}

.auth-tab.is-active {
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 4px 12px rgba(35, 72, 133, 0.09);
}

.auth-notice {
  margin: 0 0 15px;
  padding: 10px 12px;
  border: 1px solid #f2ccd2;
  border-radius: 10px;
  background: var(--red-soft);
  color: #a72f41;
  font-size: 11.5px;
  line-height: 1.6;
}

.auth-notice.is-info {
  border-color: #cfe0fb;
  background: var(--blue-50);
  color: #3b5f9f;
}

.auth-notice.is-success {
  border-color: #c7e8dd;
  background: var(--green-soft);
  color: var(--green);
}

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

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-label {
  padding-left: 2px;
  color: #4c5a72;
  font-size: 11px;
  font-weight: 600;
}

.auth-input {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px;
  gap: 10px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fbfdff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input:focus-within {
  border-color: #8fb7ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58, 120, 246, 0.1);
}

.auth-input svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: #9aa8bd;
  transition: fill 160ms ease;
}

.auth-input:focus-within svg {
  fill: var(--blue-500);
}

.auth-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.auth-input input:focus-visible {
  outline: none;
}

.auth-input input::placeholder {
  color: #aeb9ca;
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 40px #fbfdff inset;
}

.auth-rule {
  margin: 0;
  color: #92a0b5;
  font-size: 10px;
  line-height: 1.65;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 51px;
  margin-top: 2px;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #2d6df2 0%, #1d50d9 100%);
  box-shadow: 0 13px 25px rgba(30, 86, 213, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.auth-submit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.auth-submit:hover {
  box-shadow: 0 16px 30px rgba(30, 86, 213, 0.28);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 17px 0 0;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.auth-switch button:hover {
  color: var(--blue-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-meta {
  display: flex;
  align-items: flex-start;
  margin-top: 21px;
  padding-top: 17px;
  gap: 8px;
  border-top: 1px solid #edf1f8;
  color: #96a3b8;
  font-size: 9.5px;
  line-height: 1.65;
}

.auth-meta svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  fill: #a9b6c9;
}

.auth-footer {
  margin: 20px 0 0;
  color: #95a4bb;
  font-size: 10px;
  letter-spacing: 0.02em;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #6ba0ff;
  outline-offset: 2px;
}

@media (max-width: 1060px) {
  .auth-page {
    grid-template-columns: minmax(380px, 0.82fr) minmax(480px, 1.18fr);
  }

  .auth-hero {
    padding-inline: 38px;
  }

  .auth-hero-copy h1 {
    font-size: 42px;
  }

  .auth-point small {
    display: none;
  }
}

@media (max-width: 860px) {
  .auth-page {
    display: block;
  }

  .auth-hero {
    display: none;
  }

  .auth-panel {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: max(26px, env(safe-area-inset-top)) 18px 28px;
    background:
      radial-gradient(780px 540px at 92% -10%, rgba(165, 201, 255, 0.62), transparent 62%),
      radial-gradient(800px 700px at -20% 110%, rgba(208, 227, 255, 0.55), transparent 68%),
      #f1f6ff;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 6px 0 20px;
    gap: 10px;
  }

  .auth-mobile-brand img {
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(21, 70, 169, 0.18);
  }

  .auth-mobile-brand span {
    display: flex;
    flex-direction: column;
  }

  .auth-mobile-brand strong {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }

  .auth-mobile-brand small {
    color: #7e8da5;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .auth-card {
    width: min(100%, 460px);
    padding: 29px 27px 23px;
    border-radius: 22px;
    box-shadow:
      0 22px 55px rgba(26, 58, 119, 0.1),
      0 2px 7px rgba(26, 58, 119, 0.03);
  }

  .auth-footer {
    margin-top: 18px;
  }
}

@media (max-width: 430px) {
  .auth-panel {
    padding-inline: 14px;
  }

  .auth-card {
    padding: 25px 20px 21px;
  }

  .auth-card h2 {
    font-size: 26px;
  }

  .auth-tabs {
    margin-top: 21px;
  }

  .auth-input {
    height: 49px;
  }

  .auth-meta {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
