/* 登录 / 注册 · 光影登录页 */
.auth-body {
  min-height: 100vh; overflow-x: hidden; position: relative;
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(94, 231, 255, 0.11), transparent 62%),
    radial-gradient(800px 620px at 82% 88%, rgba(124, 92, 255, 0.13), transparent 66%),
    linear-gradient(140deg, #05080e 0%, #070b13 48%, #05070c 100%);
}
.auth-ambient {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 46%);
}
.auth-grid {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 30% 40%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 5%, transparent 72%);
}
.auth-beam {
  position: fixed; pointer-events: none; filter: blur(2px); opacity: 0.6; transform-origin: top left;
}
.beam-1 {
  width: 58vw; height: 120vh; top: -32vh; left: 8vw;
  background: linear-gradient(178deg, rgba(94, 231, 255, 0.22), rgba(94, 231, 255, 0) 58%);
  clip-path: polygon(46% 0, 56% 0, 96% 100%, 4% 100%);
  animation: beamSway 12s ease-in-out infinite alternate;
}
.beam-2 {
  width: 44vw; height: 110vh; top: -26vh; left: 40vw;
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.14), rgba(255, 180, 84, 0) 56%);
  clip-path: polygon(48% 0, 54% 0, 100% 100%, 0 100%);
  animation: beamSway 16s ease-in-out infinite alternate-reverse;
  opacity: 0.4;
}
@keyframes beamSway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

.auth-shell { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 100vh; max-width: 1560px; margin: 0 auto; }
.auth-visual { position: relative; padding: 42px 54px 30px; display: flex; flex-direction: column; min-height: 100vh; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand .brand-mark { width: 46px; height: 46px; filter: drop-shadow(0 0 18px rgba(94, 231, 255, 0.4)); }
.auth-brand strong { display: block; font-size: 18px; letter-spacing: 0.18em; font-weight: 600; }
.auth-brand small { display: block; font-size: 8.5px; letter-spacing: 0.24em; color: var(--dim); font-family: var(--font-num); margin-top: 2px; }
.auth-hero { margin-top: 8vh; max-width: 600px; }
.auth-hero .eyebrow { color: var(--cyan); background: rgba(94, 231, 255, 0.06); border: 1px solid rgba(94, 231, 255, 0.16); padding: 5px 12px; border-radius: 20px; letter-spacing: 0.08em; }
.auth-hero h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.18; letter-spacing: 0.02em; margin: 20px 0 18px; font-weight: 600; }
.auth-hero h1 em { font-style: normal; background: linear-gradient(96deg, #5ee7ff 0%, #a8b6ff 46%, #ffb454 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero > p { font-size: 14px; color: var(--muted); line-height: 2; max-width: 540px; }
.auth-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; max-width: 560px; }
.auth-metrics > div { padding: 13px 14px; border-left: 1px solid rgba(94, 231, 255, 0.22); background: linear-gradient(90deg, rgba(94, 231, 255, 0.04), transparent); }
.auth-metrics b { display: block; font-family: var(--font-num); font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; }
.auth-metrics b span { font-size: 11px; color: var(--dim); margin-left: 2px; }
.auth-metrics span { font-size: 10px; color: var(--dim); }

.auth-stage { margin-top: auto; padding-top: 30px; display: flex; align-items: flex-end; gap: 26px; }
.stage-fixture { display: flex; align-items: flex-end; gap: 7px; height: 74px; padding-bottom: 4px; }
.stage-fixture span {
  width: 4px; height: 26px; border-radius: 4px; background: linear-gradient(180deg, #5ee7ff, rgba(94, 231, 255, 0.04));
  animation: eq 1.8s ease-in-out infinite; animation-delay: var(--d); box-shadow: 0 0 12px rgba(94, 231, 255, 0.4);
}
.stage-fixture span:nth-child(2n) { background: linear-gradient(180deg, #7c5cff, rgba(124, 92, 255, 0.04)); box-shadow: 0 0 12px rgba(124, 92, 255, 0.4); }
.stage-fixture span:nth-child(3n) { background: linear-gradient(180deg, #ffb454, rgba(255, 180, 84, 0.04)); box-shadow: 0 0 12px rgba(255, 180, 84, 0.35); }
@keyframes eq { 0%, 100% { height: 18px; opacity: 0.5; } 50% { height: 66px; opacity: 1; } }
.stage-console { flex: 1; max-width: 330px; padding: 12px 14px; border-radius: 13px; background: rgba(8, 13, 21, 0.55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.console-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 10px; color: var(--muted); }
.console-row > i { color: var(--cyan); font-size: 13px; width: 15px; }
.console-row > span { width: 52px; }
.console-row .level { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.console-row .level b { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(94, 231, 255, 0.4), var(--cyan)); }
.console-row .level.amber b { background: linear-gradient(90deg, rgba(255, 180, 84, 0.4), var(--amber)); }
.console-row .level.violet b { background: linear-gradient(90deg, rgba(124, 92, 255, 0.4), var(--violet)); }
.console-row em { font-style: normal; font-family: var(--font-num); font-size: 9px; color: var(--dim); width: 28px; text-align: right; }
.auth-foot { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 10px; color: #4a566b; }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 44px; position: relative; }
.auth-panel::before {
  content: ""; position: absolute; left: 0; top: 12vh; bottom: 12vh; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(94, 231, 255, 0.22), rgba(124, 92, 255, 0.16), transparent);
}
.auth-card {
  width: 100%; max-width: 420px; padding: 34px 32px 26px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(20, 29, 44, 0.86), rgba(8, 12, 19, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px); position: relative; overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(94, 231, 255, 0.65), transparent); }
.auth-card.wide { max-width: 620px; }
.auth-card-head { margin-bottom: 24px; }
.auth-kicker { font-size: 9px; letter-spacing: 0.24em; color: var(--dim); font-family: var(--font-num); }
.auth-card-head h2 { font-size: 26px; font-weight: 600; margin: 7px 0 7px; letter-spacing: 0.02em; }
.auth-card-head p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.auth-card .field { margin-bottom: 15px; }
.auth-card .field label { font-size: 11.5px; color: var(--muted); }
.field-control { position: relative; display: flex; align-items: center; }
.field-control > i { position: absolute; left: 13px; font-size: 16px; color: var(--dim); pointer-events: none; transition: color 0.2s; }
.field-control input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035); color: var(--text); padding: 0 42px; font-size: 13px; outline: none;
  transition: all 0.22s;
}
.field-control input::placeholder { color: #4f5b70; }
.field-control input:focus { border-color: rgba(94, 231, 255, 0.42); background: rgba(94, 231, 255, 0.035); box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.07); }
.field-control input:focus + i, .field-control:focus-within > i { color: var(--cyan); }
.pwd-toggle { position: absolute; right: 5px; width: 34px; height: 34px; border: none; background: none; color: var(--dim); font-size: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pwd-toggle:hover { color: var(--cyan); background: rgba(94, 231, 255, 0.06); }
.field-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.link-muted { font-size: 11.5px; color: var(--dim); background: none; border: none; padding: 0; cursor: pointer; transition: color 0.2s; }
.link-muted:hover { color: var(--cyan); }
.auth-submit {
  width: 100%; height: 47px; border: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: #041018; background: linear-gradient(100deg, #58e2f8 0%, #79a0ff 55%, #a07bff 100%);
  box-shadow: 0 14px 32px rgba(74, 190, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.24s; position: relative; overflow: hidden;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(74, 190, 255, 0.34); }
.auth-submit:disabled { opacity: 0.7; cursor: wait; }
.auth-submit i { font-size: 17px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 10.5px; color: var(--dim); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.auth-ghost {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; transition: all 0.2s;
}
.auth-ghost:hover { border-color: rgba(94, 231, 255, 0.3); color: var(--cyan); background: rgba(94, 231, 255, 0.04); }
.auth-note { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 9.5px; color: var(--dim); line-height: 1.7; }
.auth-note i { color: rgba(94, 231, 255, 0.6); font-size: 14px; flex: none; }
.auth-copy { margin-top: 22px; font-size: 9.5px; color: #414c60; text-align: center; }
.auth-body .form-alert { margin-top: 2px; }

/* 注册 */
.register-shell { grid-template-columns: 0.9fr 1.1fr; }
.auth-visual.compact .auth-hero { margin-top: 7vh; }
.auth-visual.compact .auth-hero h1 { font-size: clamp(34px, 3.6vw, 52px); }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; max-width: 430px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--cyan); background: rgba(94, 231, 255, 0.08); border: 1px solid rgba(94, 231, 255, 0.16); font-size: 15px; flex: none; }
.auth-points strong { display: block; font-size: 12.5px; font-weight: 500; }
.auth-points span { font-size: 10.5px; color: var(--dim); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field.full { grid-column: span 2; }
.agree { margin: 4px 0 16px; }
.auth-body select { height: 46px; }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 20px; }
  .auth-panel::before { display: none; }
  .auth-card { max-width: 440px; }
  .auth-card.wide { max-width: 520px; }
  .auth-body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(600px 400px at 50% 0%, rgba(94, 231, 255, 0.12), transparent 70%); pointer-events: none; }
}
@media (max-width: 560px) {
  .auth-card { padding: 26px 20px 22px; border-radius: 18px; }
  .auth-card-head h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field.full { grid-column: auto; }
  .auth-metrics { grid-template-columns: 1fr 1fr; }
}
