.register-page { min-height: 100vh; background: #edf4fe; }
.register-header { position: relative; z-index: 5; height: 76px; border-bottom: 1px solid rgba(180, 198, 221, .7); background: rgba(248, 251, 255, .88); backdrop-filter: blur(16px); }
.register-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.register-back { display: inline-flex; align-items: center; gap: 8px; color: #536a86; font-size: 14px; font-weight: 650; }
.register-back:hover { color: var(--blue); }
.register-main { min-height: calc(100vh - 132px); position: relative; display: grid; align-items: center; overflow: hidden; padding: 70px 0; }
.register-main::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(83, 113, 155, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 113, 155, .12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000, transparent 73%); }
.register-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.register-glow-one { width: 560px; height: 560px; right: -210px; top: -240px; background: radial-gradient(circle, rgba(85, 223, 190, .24), transparent 67%); }
.register-glow-two { width: 520px; height: 520px; left: -260px; bottom: -260px; background: radial-gradient(circle, rgba(79, 111, 234, .18), transparent 68%); }
.register-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1fr); gap: 90px; align-items: center; }
.register-intro h1 { margin: 24px 0 24px; font-size: clamp(45px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.register-intro h1 em { font-style: normal; background: linear-gradient(110deg, #436de9 8%, #7954c9 58%, #3ebfa5); -webkit-background-clip: text; color: transparent; }
.register-intro > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.registration-steps { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 12px; }
.registration-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: center; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; color: #708199; }
.registration-steps li.current { border-color: #cfdaed; background: rgba(255, 255, 255, .72); color: var(--ink); box-shadow: 0 12px 35px rgba(36, 69, 112, .07); }
.registration-steps li > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #5571a5; background: #e1eaff; font-size: 11px; font-weight: 800; }
.registration-steps li.current > span { color: #087660; background: #d8f6ee; }
.registration-steps b, .registration-steps small { display: block; }
.registration-steps b { font-size: 14px; }
.registration-steps small { margin-top: 4px; color: #7b8ca1; font-size: 12px; }
.account-note { max-width: 560px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; margin-top: 25px; padding: 16px 18px; border-left: 3px solid var(--cyan); background: rgba(255, 255, 255, .58); }
.account-note > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #087660; background: #d8f6ee; font-weight: 800; }
.account-note p { margin: 0; color: #62758e; font-size: 12px; line-height: 1.65; }
.account-note b { display: block; color: #294361; font-size: 13px; }

.register-card { min-width: 0; padding: 34px; border: 1px solid rgba(255, 255, 255, .95); border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 34px 90px rgba(31, 58, 100, .2), 0 8px 26px rgba(31, 58, 100, .08); }
.register-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.register-card-head img { border-radius: 14px; box-shadow: 0 10px 22px rgba(16, 42, 77, .16); }
.register-card-head small { color: #6d819c; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.register-card-head h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.035em; }
.register-card form { margin-top: 25px; }
.form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.form-field label { color: #2d4562; font-size: 13px; font-weight: 750; }
.form-field input { width: 100%; min-height: 48px; border: 1px solid #cedbea; border-radius: 11px; padding: 0 14px; color: var(--ink); background: #fbfdff; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-field input:hover { border-color: #aebed5; }
.form-field input:focus { border-color: #6a80dc; background: #fff; box-shadow: 0 0 0 4px rgba(79, 111, 234, .12); }
.form-field input[aria-invalid="true"] { border-color: #dc6f72; box-shadow: 0 0 0 4px rgba(220, 71, 78, .09); }
.form-field > small, .password-rule { color: #7b8da4; font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-input { position: relative; }
.password-input input { padding-right: 58px; }
.password-input button { position: absolute; right: 8px; top: 7px; height: 34px; border: 0; border-radius: 8px; padding: 0 8px; color: #607896; background: transparent; font-size: 11px; }
.password-input button:hover { color: var(--blue); background: #edf2ff; }
/* 验证码行：按钮更宽，输入框留出空间 */
#code { padding-right: 108px; }
.password-input [data-send-code] { width: 96px; color: var(--blue); background: #edf2ff; font-weight: 700; }
.password-input [data-send-code]:hover { background: #e2eaff; }
.password-input [data-send-code]:disabled { color: #93a2b6; background: #f1f5fa; cursor: default; }
.password-rule { display: block; margin: -8px 0 20px; }
.form-message { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; color: #9a383d; background: #fff0f1; border: 1px solid #f3d0d2; font-size: 12px; line-height: 1.55; }
.form-message.info { color: #315f91; background: #edf5ff; border-color: #d4e5fa; }
.register-submit { width: 100%; min-height: 50px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(110deg, var(--blue), var(--violet)); box-shadow: 0 13px 30px rgba(79, 111, 234, .24); font-weight: 750; }
.register-submit:hover { filter: brightness(1.04); }
.register-submit:disabled { cursor: wait; opacity: .7; }
.form-footnote { margin: 13px 4px 0; color: #8997a9; text-align: center; font-size: 10px; line-height: 1.6; }
.registration-success { padding: 34px 4px 4px; text-align: center; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: #087660; background: #d9f8ef; font-size: 26px; font-weight: 850; }
.registration-success > small { color: #16866e; font-weight: 750; }
.registration-success h2 { margin: 8px 0 12px; font-size: 25px; }
.registration-success > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.success-account { display: flex; justify-content: space-between; margin: 22px 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #f7faff; font-size: 12px; }
.success-account span { color: #74869b; }
.registration-success .primary-button { display: inline-block; }
.register-footer { height: 56px; color: #7c8da2; background: #e7f0fb; border-top: 1px solid #d7e3f1; font-size: 11px; }
.register-footer .shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 980px) {
  .register-main { padding: 52px 0 70px; }
  .register-layout { grid-template-columns: 1fr; gap: 45px; }
  .register-intro { text-align: center; }
  .register-intro > p, .account-note { margin-inline: auto; }
  .registration-steps { max-width: 560px; margin-inline: auto; text-align: left; }
  .register-card { width: min(620px, 100%); margin: auto; }
}
@media (max-width: 620px) {
  .register-header { height: 66px; }
  .register-back { font-size: 12px; }
  .register-main { min-height: calc(100vh - 122px); padding: 38px 0 48px; }
  .register-intro h1 { font-size: 41px; }
  .register-intro > p { font-size: 14px; }
  .registration-steps { margin-top: 28px; }
  .account-note { text-align: left; }
  .register-card { padding: 24px 20px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .register-footer .shell { justify-content: center; }
  .register-footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .form-field input, .password-input button { transition: none; }
}
