/* ============================================================
   登录 / 注册 / 404
   ============================================================ */
.auth-body { min-height: 100vh; background: var(--paper); overflow-x: hidden; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr; }

/* ---------- 左侧品牌区 ---------- */
.auth-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 34px 46px 26px; color: #EDE7DC;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(211, 164, 108, .16) 0%, transparent 55%),
    radial-gradient(90% 70% at 8% 100%, rgba(47, 93, 98, .25) 0%, transparent 60%),
    linear-gradient(160deg, #151B20 0%, #0B0F12 62%, #080B0E 100%);
}
.hero-metal {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    repeating-linear-gradient(118deg, rgba(255,255,255,.045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(28deg, rgba(0,0,0,.25) 0 1px, transparent 1px 11px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 78%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 70% at 55% 40%, #000 0%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(211,164,108,.2), transparent 65%);
  filter: blur(6px); pointer-events: none;
}
.hero-top, .hero-copy, .hero-foot { position: relative; z-index: 2; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; color: var(--copper-2);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(211,164,108,.18), rgba(211,164,108,.02));
  border: 1px solid rgba(211,164,108,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px -14px rgba(211,164,108,.4);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 19px; letter-spacing: 3px; color: #F5EFE4; font-weight: 600; }
.brand-text small { font-family: var(--num); font-size: 8.5px; letter-spacing: 3px; color: #7F8790; margin-top: 4px; }
.hero-badge {
  font-family: var(--num); font-size: 9px; letter-spacing: 2.2px; color: #A3917B;
  border: 1px solid rgba(211,164,108,.25); border-radius: 20px; padding: 6px 12px;
  background: rgba(211,164,108,.05);
}

.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 36px; max-width: 600px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 4px; color: var(--copper-2); margin-bottom: 18px; font-family: var(--num); }
.hero-copy h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.18; font-weight: 600; letter-spacing: -.6px; color: #F4EFE6; }
.hero-copy h1 em {
  font-style: normal; position: relative; color: var(--copper-2);
  background: linear-gradient(100deg, #E2BC8C, #B57E45); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-copy h1 em::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 6px;
  background: linear-gradient(90deg, rgba(211,164,108,.35), transparent);
  border-radius: 4px;
}
.hero-desc { margin-top: 18px; font-size: 13.5px; line-height: 1.9; color: #9AA2A9; }
.hero-stats { display: flex; gap: 38px; margin-top: 38px; }
.hero-stats > div { position: relative; padding-left: 14px; }
.hero-stats > div::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 4px; width: 1px; background: linear-gradient(180deg, var(--copper-2), transparent); }
.hero-stats b { display: block; font-family: var(--num); font-size: 27px; font-weight: 600; color: #EFE6D8; letter-spacing: -.5px; }
.hero-stats b small { font-size: 13px; color: var(--copper-2); margin-left: 2px; }
.hero-stats span { font-size: 10.5px; color: #7E868E; letter-spacing: 1.5px; }

.hero-art { position: absolute; right: -10px; bottom: 88px; width: 40%; height: 58%; pointer-events: none; z-index: 1; }
.art-panel {
  position: absolute; border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.1);
}
.art-panel.p1 {
  width: 58%; height: 78%; right: 6%; bottom: 0;
  background: linear-gradient(165deg, #3A424A 0%, #171C21 55%, #0D1115 100%);
  transform: rotate(-4deg);
}
.art-panel.p2 {
  width: 46%; height: 62%; right: 38%; bottom: 9%;
  background: linear-gradient(155deg, #E4D6C1 0%, #B9A88F 45%, #8A7761 100%);
  transform: rotate(5deg); opacity: .82;
}
.art-panel.p3 {
  width: 40%; height: 46%; right: 16%; bottom: 46%;
  background: linear-gradient(160deg, #2A333B, #13181D);
  transform: rotate(2deg); opacity: .9;
}
.art-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--copper-2), transparent); opacity: .6; }
.art-line.l1 { width: 70%; right: 2%; bottom: 36%; transform: rotate(-4deg); }
.art-line.l2 { width: 52%; right: 26%; bottom: 26%; transform: rotate(5deg); opacity: .35; }
.art-chip {
  position: absolute; right: 20%; bottom: 12%; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 11px; color: #EADFCD;
  background: rgba(21, 27, 32, .82); border: 1px solid rgba(211,164,108,.28);
  backdrop-filter: blur(8px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8);
}
.art-chip i { color: var(--copper-2); font-size: 18px; }
.art-chip b { display: block; font-size: 11.5px; }
.art-chip span { font-size: 9.5px; color: #8B939B; letter-spacing: .5px; }
.art-tag {
  position: absolute; right: 4%; top: 10%; font-family: var(--num); font-size: 9px;
  letter-spacing: 2px; color: #9B8B76; border: 1px solid rgba(255,255,255,.12);
  padding: 4px 8px; border-radius: 4px; transform: rotate(90deg);
}

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: #5F676F; letter-spacing: .3px; }
.hero-foot span:last-child { font-family: var(--num); }

/* ---------- 右侧表单区 ---------- */
.auth-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 30px 26px; background: radial-gradient(600px 400px at 80% 0%, #FFFCF6, transparent 60%), var(--paper); }
.auth-card {
  width: min(440px, 100%); padding: 30px 30px 24px; border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 4px rgba(22, 26, 30, .03), 0 40px 80px -50px rgba(22, 26, 30, .4);
  backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper-2), transparent);
  opacity: .7;
}
.auth-head { margin-bottom: 22px; }
.auth-kicker { font-family: var(--num); font-size: 9.5px; letter-spacing: 3px; color: var(--copper); }
.auth-head h2 { font-size: 26px; letter-spacing: -.5px; margin-top: 7px; color: var(--ink); }
.auth-head p { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .field label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 8px; }
.link-muted { font-size: 11.5px; color: var(--text-3); }
.link-muted:hover { color: var(--copper); }
.auth-card .form-error { min-height: 18px; margin: 0 0 4px; font-size: 11.5px; }
.auth-card .btn-block { height: 44px; border-radius: 11px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 13px; color: var(--text-3); font-size: 10.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-note { display: flex; gap: 7px; align-items: flex-start; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.auth-note i { color: var(--copper); font-size: 14px; margin-top: 1px; }
.auth-foot { display: flex; justify-content: space-between; width: min(440px, 100%); gap: 12px; margin-top: 20px; font-size: 9.5px; color: #A6A199; }
.auth-foot span:first-child { letter-spacing: .2px; }

/* ---------- 注册 ---------- */
.register-shell { grid-template-columns: 1fr 1.02fr; }
.register-hero { padding-right: 40px; }
.register-card { width: min(590px, 100%); }
.register-card .form-grid { gap: 12px 14px; }
.register-points { margin: 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
.register-points li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #A5ADB4; }
.register-points i { color: var(--copper-2); font-size: 14px; }
.register-flow { display: flex; align-items: center; gap: 10px; margin-top: 34px; }
.register-flow .step { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #6C747C; }
.register-flow .step b { font-family: var(--num); font-size: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.register-flow .step.done { color: var(--copper-2); }
.register-flow .step.done b { border-color: rgba(211,164,108,.5); background: rgba(211,164,108,.1); }
.register-flow .flow-line { width: 26px; height: 1px; background: rgba(255,255,255,.12); }
.agree { margin: 4px 0 10px; font-size: 11.5px; }
.register-card .auth-head { margin-bottom: 18px; }
.register-card .btn-primary { margin-top: 4px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: radial-gradient(700px 400px at 50% 0%, #FBF3E6, transparent 60%), var(--paper); }
.nf-code { font-family: var(--num); font-size: clamp(90px, 16vw, 180px); font-weight: 700; letter-spacing: -8px; line-height: 1; background: linear-gradient(160deg, #2A323A, #B57E45); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .9; }
.notfound h1 { font-size: 22px; margin-top: 8px; }
.notfound p { font-size: 12.5px; color: var(--text-3); margin: 8px 0 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { min-height: 300px; padding: 26px 26px 22px; }
  .hero-copy { padding: 36px 0 20px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-desc { display: none; }
  .hero-stats { margin-top: 24px; gap: 26px; }
  .hero-stats b { font-size: 22px; }
  .hero-art { display: none; }
  .auth-side { padding: 30px 18px; justify-content: flex-start; }
  .auth-card { margin-top: -34px; position: relative; z-index: 3; }
  .register-flow, .register-points { display: none; }
  .auth-foot { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .auth-hero { min-height: 240px; }
  .hero-badge { display: none; }
  .hero-copy h1 { font-size: 26px; }
  .hero-stats { display: none; }
  .hero-foot { font-size: 9px; }
  .auth-card { padding: 22px 18px 18px; border-radius: 18px; }
  .auth-head h2 { font-size: 22px; }
  .auth-card .btn-block { height: 42px; }
}
