[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { min-height: 100%; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(182, 219, 255, .82) 0%, rgba(230, 243, 255, .94) 46%, rgba(247, 249, 255, 1) 100%),
    #eaf4ff;
  position: relative;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.32) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.sky-glow { position: fixed; border-radius: 999px; filter: blur(10px); pointer-events: none; }
.sky-glow-one { width: 42vw; height: 42vw; left: -13vw; top: 28vh; background: rgba(71, 163, 255, .16); }
.sky-glow-two { width: 34vw; height: 34vw; right: 14vw; top: -16vw; background: rgba(89, 225, 234, .13); }

.auth-brand {
  position: relative;
  z-index: 3;
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 42px;
}

.brand-lockup { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-logo-wrap {
  width: 49px; height: 49px; padding: 8px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.8); border-radius: 16px;
  background: rgba(255,255,255,.48); box-shadow: 0 10px 30px rgba(63, 118, 192, .13);
}
.brand-logo-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-lockup strong { display: block; font-size: 21px; line-height: 1.1; letter-spacing: .08em; }
.brand-lockup small { display: block; margin-top: 6px; color: #70819b; font-size: var(--font-12); font-weight: 700; letter-spacing: .18em; }

.login-layout {
  position: relative; z-index: 2;
  width: min(1320px, calc(100% - 80px));
  min-height: calc(100vh - 144px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding: 54px 0 100px;
}

.login-story { min-height: 610px; position: relative; padding: 14px 0; }
.story-copy { position: relative; z-index: 2; max-width: 590px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #416487; font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.eyebrow i { width: 28px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.story-copy h1, .activation-side h1 { margin: 22px 0 20px; font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.12; letter-spacing: -.045em; }
.story-copy h1 em, .activation-side h1 em { color: var(--blue); font-style: normal; }
.story-copy > p { width: 470px; max-width: 100%; margin: 0; color: #58708f; font-size: 16px; line-height: 1.9; }

.journey-art { position: absolute; left: 8%; right: 0; bottom: 24px; height: 365px; perspective: 1000px; }
.journey-art::after {
  content: ""; position: absolute; left: 17%; right: 5%; bottom: 2px; height: 70px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(33, 105, 208, .2), transparent 68%); filter: blur(8px);
}
.step { position: absolute; border: 1px solid rgba(255,255,255,.92); transform: skewY(-6deg); box-shadow: 0 24px 40px rgba(53, 117, 205, .17), inset 0 1px rgba(255,255,255,.82); }
.step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(72, 162, 255, .22)); }
.step-one { width: 250px; height: 78px; left: 10%; bottom: 38px; border-radius: 28px; background: #ddebff; }
.step-two { width: 220px; height: 94px; left: 28%; bottom: 86px; border-radius: 25px; background: #c5e5ff; }
.step-three { width: 192px; height: 105px; left: 47%; bottom: 143px; border-radius: 23px; background: #9cd7ff; }
.step-four { width: 162px; height: 113px; left: 64%; bottom: 211px; border-radius: 22px; background: #73c1fa; }
.summit-mark {
  position: absolute; z-index: 2; width: 116px; height: 116px; left: 67%; bottom: 258px;
  display: grid; place-items: center; border-radius: 36px; transform: rotate(-8deg);
  color: white; font-size: 50px; font-weight: 900; font-style: italic;
  background: linear-gradient(145deg, var(--brand), var(--brand-2)); border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 22px 42px rgba(30, 107, 225, .28), inset -8px -12px 18px rgba(5, 67, 172, .18), inset 8px 8px 18px rgba(255,255,255,.28);
}
.orbit { position: absolute; border: 1px solid rgba(44, 124, 231, .19); border-radius: 50%; transform: rotate(-17deg); }
.orbit-one { width: 420px; height: 170px; left: 27%; bottom: 105px; }
.orbit-two { width: 500px; height: 220px; left: 20%; bottom: 76px; border-color: rgba(255,255,255,.72); }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); border: 1px solid white; box-shadow: 0 12px 26px rgba(59, 114, 181, .12); backdrop-filter: blur(12px); }
.note-one { width: 83px; height: 58px; right: 4%; bottom: 206px; border-radius: 18px; gap: 5px; }
.note-one i { width: 8px; background: linear-gradient(to top, var(--brand-2), var(--brand)); border-radius: 5px; }
.note-one i:nth-child(1) { height: 18px; }.note-one i:nth-child(2) { height: 32px; }.note-one i:nth-child(3) { height: 24px; }
.note-two { width: 52px; height: 52px; left: 15%; bottom: 210px; border-radius: 17px; color: var(--blue); font-size: 23px; }
.story-proof { position: absolute; left: 0; bottom: 16px; display: flex; align-items: center; gap: 14px; }
.story-proof > span { color: rgba(36, 102, 189, .35); font-size: 38px; font-weight: 800; letter-spacing: -.08em; }
.story-proof p { margin: 0; padding-left: 14px; border-left: 1px solid rgba(49, 108, 182, .2); }
.story-proof strong, .story-proof small { display: block; }.story-proof strong { font-size: 13px; }.story-proof small { margin-top: 5px; color: #7889a0; font-size: var(--font-14); }

.auth-card {
  position: relative; padding: 48px 46px 36px; border: 1px solid rgba(255,255,255,.86); border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.83), rgba(239,247,255,.67));
  box-shadow: var(--shadow); backdrop-filter: blur(28px); overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; width: 180px; height: 180px; top: -110px; right: -70px; border-radius: 50%; background: rgba(67, 180, 244, .12); }
.card-kicker { color: var(--blue); font-size: var(--font-12); font-weight: 800; letter-spacing: .18em; }
.auth-card h2 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.card-intro { margin: 0 0 32px; color: var(--muted); font-size: var(--font-14); line-height: 1.6; }
.field-label { display: block; margin: 18px 0 9px; color: #334761; font-size: var(--font-14); font-weight: 700; }
.input-shell { height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid rgba(70, 111, 165, .14); border-radius: 15px; background: rgba(255,255,255,.86); transition: .2s ease; }
.input-shell:focus-within { border-color: rgba(38,118,243,.6); box-shadow: 0 0 0 4px rgba(38,118,243,.09), 0 10px 24px rgba(45, 105, 185, .08); transform: translateY(-1px); }
.input-shell > svg { width: 18px; height: 18px; fill: none; stroke: #7b99c1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.input-shell input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: var(--font-16); }
.input-shell input::placeholder { color: #a9b6c7; }
.password-toggle { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 0; border-radius: 10px; color: #8293aa; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--blue); background: #edf5ff; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-message { min-height: 34px; padding-top: 10px; color: #d44c55; font-size: 12px; line-height: 1.5; }
.form-message[data-type="success"] { color: #128467; }
.primary-button, .secondary-button {
  height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; font-weight: 700; cursor: pointer; transition: .22s ease;
}
.primary-button { width: 100%; border: 0; color: white; background: linear-gradient(105deg, var(--brand-deep), var(--brand)); box-shadow: 0 12px 26px rgba(31, 108, 224, .23); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 32px rgba(31, 108, 224, .29); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.primary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.primary-button:hover svg { transform: translateX(3px); }
.primary-button.loading span::after { content: " ···"; }
.login-primary-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.login-primary-actions .primary-button { min-width: 0; }
.member-apply-button { height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(30, 107, 225, .25); border-radius: 13px; color: var(--brand-deep); background: rgba(239, 246, 255, .9); font-size: var(--font-14); font-weight: 800; text-decoration: none; }
.member-apply-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.member-apply-button:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 12px 24px rgba(31, 108, 224, .12); }
.member-apply-button:hover svg { transform: translateX(3px); }
.wechat-login-button { width: 100%; height: 48px; margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(39,170,104,.3); border-radius: 12px; color: #168a54; background: rgba(239,255,247,.78); font-size: var(--font-14); font-weight: 800; text-decoration: none; }
.wechat-login-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wechat-login-button:hover { background: #effff7; transform: translateY(-1px); }
.auth-help { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8290a3; font-size: var(--font-14); }
.auth-help button { padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; }
.security-note { margin: 29px -46px -36px; padding: 19px 46px; display: flex; align-items: center; gap: 10px; color: #69809f; background: rgba(222, 239, 255, .55); font-size: var(--font-12); line-height: 1.5; }
.security-note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-footer { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 22px; display: flex; justify-content: space-between; color: #7d8ca0; font-size: var(--font-12); letter-spacing: .04em; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: -100px; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); padding: 16px 20px; color: white; border-radius: 14px; background: rgba(16,33,63,.92); box-shadow: 0 16px 38px rgba(10,30,60,.25); font-size: var(--font-14); line-height: 1.6; transition: bottom .3s ease; }
.toast.show { bottom: 30px; }

.activation-layout { position: relative; z-index: 2; width: min(1080px, calc(100% - 80px)); min-height: calc(100vh - 140px); margin: 0 auto; padding: 70px 0 100px; display: grid; grid-template-columns: 1fr 470px; align-items: center; gap: 100px; }
.activation-side { padding-bottom: 40px; }
.activation-side h1 { font-size: clamp(42px, 4.4vw, 64px); }
.activation-steps { margin: 54px 0 0; padding: 0; list-style: none; }
.activation-steps li { position: relative; display: flex; gap: 17px; padding: 0 0 28px; color: #788aa1; }
.activation-steps li::before { content: ""; position: absolute; top: 37px; left: 17px; width: 1px; height: 22px; background: rgba(72, 122, 185, .2); }
.activation-steps li:last-child::before { display: none; }
.activation-steps li > span { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border: 1px solid rgba(76, 119, 174, .24); border-radius: 12px; font-size: 12px; font-weight: 700; }
.activation-steps li.active > span { color: white; border-color: transparent; background: var(--blue); box-shadow: 0 8px 20px rgba(38,118,243,.25); }
.activation-steps p { margin: 0; }.activation-steps strong, .activation-steps small { display: block; }.activation-steps strong { color: #334b69; font-size: 13px; }.activation-steps small { margin-top: 5px; font-size: var(--font-14); }
.activation-card { min-height: 514px; display: grid; align-content: center; }
.password-guidance { margin: 9px 2px 2px; display: flex; justify-content: space-between; color: #8191a5; font-size: var(--font-12); }
.token-loading, .token-error, .token-success { text-align: center; justify-items: center; }
.token-loading { display: grid; gap: 20px; color: #6d809a; font-size: 13px; }
.token-loading i { width: 43px; height: 43px; border: 3px solid #d6e7fb; border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
.token-error, .token-success { display: grid; }
.token-error h2, .token-success h2 { margin: 18px 0 8px; }
.token-error p, .token-success p { max-width: 310px; margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.error-icon, .success-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; }
.error-icon { color: #d85b66; background: #fff0f1; font-size: 27px; font-weight: 800; }
.success-icon { color: white; background: linear-gradient(145deg, #20b98d, #62d1bb); box-shadow: 0 12px 26px rgba(31,165,128,.2); }
.success-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button { width: 190px; height: 48px; color: var(--blue); border: 1px solid rgba(38,118,243,.22); background: #f3f8ff; font-size: 13px; }
.link-button { max-width: 270px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .login-layout { grid-template-columns: 1fr 420px; gap: 40px; }
  .story-copy h1 { font-size: 54px; }
  .journey-art { left: -4%; transform: scale(.84); transform-origin: left bottom; }
  .activation-layout { gap: 55px; }
}

@media (max-width: 800px) {
  .auth-page { overflow-x: hidden; }
  .auth-brand { width: calc(100% - 32px); padding-top: 16px; }
  .brand-logo-wrap { width: 41px; height: 41px; border-radius: 13px; }
  .brand-lockup strong { font-size: 18px; }.brand-lockup small { display: none; }
  .login-layout, .activation-layout { width: calc(100% - 28px); min-height: 0; grid-template-columns: 1fr; padding: 18px 0 58px; }
  .login-layout { gap: 14px; }
  .login-story { min-height: 152px; padding: 2px 0; overflow: hidden; }
  .eyebrow { gap: 8px; font-size: var(--font-14); }
  .eyebrow i { width: 22px; }
  .story-copy { max-width: calc(100% - 68px); }
  .story-copy h1, .activation-side h1 { margin: 10px 0 8px; font-size: 34px; line-height: 1.05; }
  .story-copy > p { width: 100%; font-size: var(--font-16); line-height: 1.6; }
  .journey-art { inset: 0; height: auto; transform: none; }
  .journey-art::after, .journey-art .orbit, .journey-art .step, .journey-art .floating-note { display: none; }
  .journey-art .summit-mark {
    width: 64px; height: 64px; left: auto; right: 2px; bottom: 14px;
    border-radius: 21px; font-size: 28px; transform: rotate(-7deg);
    box-shadow: 0 14px 28px rgba(30, 107, 225, .22), inset -5px -7px 12px rgba(5, 67, 172, .14), inset 5px 5px 12px rgba(255,255,255,.24);
  }
  .story-proof { display: none; }
  .auth-card { width: 100%; padding: 26px 22px 24px; border-radius: 24px; }
  .auth-card h2 { margin: 8px 0 5px; font-size: 26px; }
  .card-intro { margin-bottom: 16px; }
  .field-label { margin: 12px 0 7px; }
  .input-shell { height: 50px; }
  .form-message { min-height: 25px; padding-top: 6px; }
  .primary-button { height: 50px; }
  .member-apply-button { height: 50px; }
  .wechat-login-button { height: 46px; margin-top: 9px; }
  .auth-help { margin-top: 16px; align-items: flex-start; line-height: 1.5; }
  .security-note { margin: 20px -22px -24px; padding: 15px 22px; }
  .auth-footer { position: relative; left: auto; right: auto; bottom: auto; margin: 0 18px 20px; }
  .activation-layout { gap: 10px; padding-top: 42px; }
  .activation-side { padding: 0; }.activation-side h1 { margin-bottom: 10px; }
  .activation-steps { display: none; }
  .activation-card { min-height: 500px; }
}

@media (max-width: 430px) {
  .auth-brand { width: calc(100% - 28px); padding-top: 13px; }
  .brand-logo-wrap { width: 39px; height: 39px; }
  .login-layout { width: calc(100% - 24px); padding-top: 13px; gap: 11px; }
  .login-story { min-height: 128px; }
  .story-copy { max-width: calc(100% - 58px); }
  .story-copy h1, .activation-side h1 { font-size: 31px; }
  .story-copy > p { display: none; }
  .journey-art .summit-mark { width: 56px; height: 56px; right: 1px; bottom: 12px; border-radius: 19px; font-size: 25px; }
  .auth-card { padding: 23px 19px 22px; }
  .auth-card h2 { font-size: 24px; }
  .security-note { margin: 18px -19px -22px; padding: 14px 19px; }
  .password-guidance { display: block; line-height: 1.7; }
  .password-guidance span { display: block; }
  .auth-footer { display: block; text-align: center; line-height: 1.8; }
  .auth-footer span { display: block; }
  .login-primary-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
