/* ============================================================
   登录 / 注册页（自研布局与插画容器）
   ============================================================ */

body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(59, 91, 190, 0.22), transparent 62%),
    radial-gradient(760px 500px at 96% 12%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(139, 92, 246, 0.1), transparent 62%),
    #060a14;
  overflow-x: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 120px;
  background: radial-gradient(circle, rgba(79, 111, 224, 0.5), transparent 65%);
}

.orb-b {
  width: 380px;
  height: 380px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 65%);
}

.orb-c {
  width: 460px;
  height: 460px;
  right: 22%;
  bottom: -240px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 65%);
}

.grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.7), transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.7), transparent 78%);
}

/* 顶部 */

.login-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 46px;
  flex-wrap: wrap;
}

.login-topbar .brand {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 11px;
  display: flex;
  align-items: center;
}

.login-topbar .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 17px;
}

.login-topbar .brand-name {
  display: block;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.login-topbar .brand-ver {
  font-size: 9px;
}

.login-topbar .brand-sub {
  font-size: 9px;
  letter-spacing: 2px;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  color: #7f8db0;
  letter-spacing: 0.4px;
}

.topbar-line {
  width: 1px;
  height: 14px;
  background: rgba(148, 163, 184, 0.2);
}

.edition {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: #9aa8c6;
  letter-spacing: 1px;
}

.safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7fd7b2;
}

.safe .dot {
  background: #34d399;
}

/* 主舞台 */

.login-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 10px 46px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 38px;
  align-items: center;
}

.visual {
  min-width: 0;
  padding: 6px 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid rgba(107, 140, 255, 0.24);
  background: linear-gradient(90deg, rgba(107, 140, 255, 0.14), rgba(34, 211, 238, 0.05));
  color: #9fb4ea;
  font-size: 10.5px;
  letter-spacing: 1px;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.visual h1 {
  margin-top: 18px;
  font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1.28;
  letter-spacing: 0.5px;
  font-weight: 750;
  color: #eef3ff;
}

.grad-text {
  background: linear-gradient(110deg, #8fb0ff 8%, #5ce0ef 62%, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visual > .visual-copy > p {
  margin-top: 14px;
  max-width: 560px;
  color: #8d9cbb;
  font-size: 12.5px;
  line-height: 1.9;
}

.feature-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.f-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(107, 140, 255, 0.24);
  background: rgba(107, 140, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 9.5px;
  color: #a7bbff;
  font-weight: 700;
  flex: none;
  letter-spacing: 0.5px;
}

.feature-list b {
  display: block;
  font-size: 12.5px;
  color: #dfe7f8;
  font-weight: 600;
  line-height: 1.5;
}

.feature-list small {
  display: block;
  font-size: 10.5px;
  color: #76849f;
  margin-top: 1px;
}

.industry-art {
  margin-top: 6px;
  width: 100%;
  max-width: 700px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.42));
}

.industry-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.float-a,
.float-b,
.float-c {
  animation: floatY 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.float-b {
  animation-delay: -2s;
  animation-duration: 7s;
}

.float-c {
  animation-delay: -4s;
  animation-duration: 6.5s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.visual-foot {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  max-width: 620px;
}

.v-stat b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #eaf1ff;
  letter-spacing: 0.3px;
}

.v-stat b::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-left: 6px;
  vertical-align: 6px;
  background: linear-gradient(90deg, #6b8cff, transparent);
  border-radius: 2px;
}

.v-stat span {
  font-size: 10px;
  color: #6b7b9a;
}

/* 登录卡 */

.auth-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 458px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(19, 30, 53, 0.94), rgba(9, 15, 28, 0.96));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 24px 26px 22px;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6b8cff, #22d3ee, transparent);
  opacity: 0.85;
}

.auth-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.13), transparent 65%);
  pointer-events: none;
}

.auth-head {
  position: relative;
  z-index: 1;
}

.auth-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(7, 12, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-tab {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 37px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b98b4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.18s ease;
}

.auth-tab.active {
  color: #fff;
}

.tab-glow {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: 37px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.32), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(107, 140, 255, 0.36);
  box-shadow: 0 6px 18px rgba(91, 124, 250, 0.18);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.auth-tip {
  margin-top: 12px;
  font-size: 11px;
  color: #7c8aa6;
  line-height: 1.6;
  min-height: 18px;
}

.auth-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auth-field label {
  font-size: 11.5px;
  color: #aab7ce;
  font-weight: 500;
}

.auth-field label i {
  color: #f87171;
  font-style: normal;
  margin-left: 2px;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell > .ico {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #687793;
  pointer-events: none;
  z-index: 1;
}

.input-shell input,
.input-shell select {
  width: 100%;
  height: 43px;
  padding: 0 40px 0 37px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(6, 11, 21, 0.58);
  color: #eaf0fb;
  outline: none;
  font-size: 12.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input-shell select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7d8ba6 50%), linear-gradient(135deg, #7d8ba6 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}

.input-shell input::placeholder {
  color: #56647e;
}

.input-shell input:focus,
.input-shell select:focus {
  border-color: rgba(107, 140, 255, 0.7);
  background: rgba(9, 15, 28, 0.85);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.13);
}

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eaf0fb;
  transition: background-color 9999s ease-out;
}

.eye {
  position: absolute;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #687793;
  display: grid;
  place-items: center;
}

.eye:hover {
  color: #b8c6dd;
  background: rgba(255, 255, 255, 0.05);
}

.eye svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #8b98b4;
  cursor: pointer;
  user-select: none;
}

.check-line input {
  width: 14px;
  height: 14px;
  accent-color: #6b8cff;
  cursor: pointer;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #8ea7f0;
  font-size: 11px;
  padding: 0;
  letter-spacing: 0.2px;
}

.link-btn:hover {
  color: #b9cbff;
  text-decoration: underline;
}

.form-msg {
  display: none;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 11px;
  line-height: 1.55;
  animation: shake 0.28s ease;
}

.form-msg.show {
  display: block;
}

.form-msg.ok {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.auth-submit {
  height: 45px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #6b8cff, #38d6e8);
  color: #061027;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 12px 28px rgba(91, 124, 250, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  margin-top: 2px;
}

.auth-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(91, 124, 250, 0.42);
  filter: brightness(1.04);
}

.auth-submit:active {
  transform: none;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-submit.small {
  height: 38px;
  width: auto;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin: 0;
}

.auth-extra {
  font-size: 10px;
  color: #66748f;
  line-height: 1.65;
  text-align: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-grid .span-2 {
  grid-column: span 2;
}

.reg-agreement {
  align-items: flex-start;
  line-height: 1.6;
  font-size: 10.5px;
}

.reg-agreement input {
  margin-top: 2px;
}

.reg-agreement .link-btn {
  font-size: 10.5px;
}

.auth-foot {
  margin-top: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 9.5px;
  color: #5b6882;
  letter-spacing: 0.3px;
}

.login-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 46px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #5a6781;
  font-size: 10px;
  letter-spacing: 0.2px;
  background: rgba(5, 9, 17, 0.35);
}

.login-footer b {
  color: #7f8da8;
  font-weight: 500;
}

.login-footer .foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* 修改密码 / 条款弹层 */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  animation: fade 0.2s ease;
}

.auth-overlay.hidden {
  display: none;
}

.pwd-modal {
  width: 100%;
  max-width: 430px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #111c31, #0a1020);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: pop 0.22s ease;
}

.pwd-head {
  display: flex;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(135deg, rgba(107, 140, 255, 0.13), transparent 70%);
}

.pwd-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(107, 140, 255, 0.16);
  border: 1px solid rgba(107, 140, 255, 0.28);
  color: #a7bbff;
  display: grid;
  place-items: center;
  flex: none;
}

.pwd-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwd-head h3 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 3px;
}

.pwd-head p {
  font-size: 10.5px;
  color: #8494b2;
  line-height: 1.6;
}

.pwd-body {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwd-body .auth-submit {
  margin-top: 4px;
}

.pwd-body .auth-extra {
  margin-top: -2px;
}

.terms-modal {
  width: 100%;
  max-width: 660px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #111c31, #0a1020);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  animation: pop 0.22s ease;
}

.terms-head {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.terms-head h3 {
  font-size: 15px;
  font-weight: 650;
}

.terms-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b98b4;
  font-size: 19px;
  line-height: 1;
}

.terms-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.terms-body {
  padding: 18px 22px;
  overflow-y: auto;
  font-size: 11.5px;
  color: #9baac6;
  line-height: 1.9;
}

.terms-body p + p {
  margin-top: 11px;
}

.terms-body b {
  display: block;
  color: #dbe5f8;
  font-weight: 600;
  margin-bottom: 1px;
}

.terms-foot {
  padding: 14px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  justify-content: flex-end;
}

.toast-stack .toast {
  background: #101a2e;
}

/* 响应式 */

@media (max-width: 1240px) {
  .login-stage {
    gap: 24px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .login-topbar {
    padding: 18px 30px;
  }

  .login-footer {
    padding: 14px 30px;
  }

  .feature-list {
    display: none;
  }

  .visual-foot {
    margin-top: 14px;
  }
}

@media (max-width: 1020px) {
  .login-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-top: 0;
  }

  .visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 12px;
  }

  .visual h1 {
    margin-top: 12px;
    font-size: 30px;
  }

  .visual > .visual-copy > p {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.75;
  }

  .industry-art {
    margin: 0;
  }

  .visual-foot {
    display: none;
  }

  .auth-card {
    max-width: 560px;
  }

  .auth-pane {
    padding-bottom: 10px;
  }
}

@media (max-width: 760px) {
  .login-topbar {
    padding: 16px 18px;
  }

  .login-topbar .brand-name {
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .login-topbar .brand-sub {
    display: none;
  }

  .login-topbar .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .topbar-side {
    display: none;
  }

  .login-stage {
    padding: 0 16px 20px;
  }

  .visual {
    display: block;
  }

  .visual h1 {
    font-size: 25px;
  }

  .visual > .visual-copy > p {
    font-size: 11px;
  }

  .industry-art {
    margin-top: 4px;
  }

  .auth-card {
    max-width: none;
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-grid .span-2 {
    grid-column: span 1;
  }

  .login-footer {
    padding: 12px 18px;
    font-size: 9.5px;
  }

  .login-footer .foot-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .industry-art {
    display: none;
  }

  .visual h1 {
    font-size: 23px;
  }

  .auth-card {
    padding: 18px 15px 16px;
  }

  .auth-submit {
    height: 43px;
  }
}
