/* ==========================================================
   登录 / 注册
   ========================================================== */
.auth-body {
  min-height: 100vh; margin: 0; background: var(--paper);
  color: var(--text); overflow-x: hidden;
}
.auth-shell { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 100vh; }

/* 左侧品牌视觉 */
.auth-visual {
  position: relative; overflow: hidden; color: #E8E4D9;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(195, 154, 78, .16), transparent 58%),
    radial-gradient(80% 60% at 95% 95%, rgba(44, 127, 114, .22), transparent 62%),
    linear-gradient(160deg, #0B1626 0%, #0A1220 60%, #080F1A 100%);
}
.auth-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 20% 10%, #000 20%, transparent 78%);
}
.auth-visual::after {
  content: ""; position: absolute; right: -160px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(195, 154, 78, .18);
  box-shadow: 0 0 0 80px rgba(195, 154, 78, .03), 0 0 0 160px rgba(195, 154, 78, .02);
  pointer-events: none;
}
.auth-visual-inner { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 40px 52px 28px; height: 100%; min-height: 100vh; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.auth-brand strong { display: block; font-size: 17px; letter-spacing: .08em; color: #F3EBD9; }
.auth-brand small { display: block; font-size: 8.5px; letter-spacing: .3em; color: #7F8794; margin-top: 3px; }
.auth-headline { max-width: 520px; }
.auth-headline .eyebrow { color: #C9A65E; }
.auth-headline h1 {
  margin: 14px 0 16px; font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 46px; line-height: 1.32; font-weight: 700; letter-spacing: .02em; color: #F4EFE2;
}
.auth-headline h1 em { font-style: normal; color: #D9B66B; }
.auth-headline p { font-size: 13px; line-height: 2; color: #9BA3AE; max-width: 460px; }

/* 调度沙盘 */
.auth-board {
  margin-top: 30px; max-width: 486px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  background: rgba(255,255,255,.035); backdrop-filter: blur(4px); padding: 14px 15px 12px;
  box-shadow: 0 30px 80px -50px rgba(0,0,0,.8);
}
.board-head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: .12em; color: #8E97A5; margin-bottom: 10px; text-transform: uppercase; }
.board-head .live { display: inline-flex; align-items: center; gap: 6px; color: #6FBF9F; }
.board-head .live i { width: 5px; height: 5px; border-radius: 50%; background: #6FBF9F; box-shadow: 0 0 0 3px rgba(111,191,159,.14); }
.board-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.board-grid .cell { height: 26px; border-radius: 4px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.03); }
.board-grid .cell.t1 { background: linear-gradient(145deg, rgba(195,154,78,.42), rgba(195,154,78,.16)); border-color: rgba(195,154,78,.28); }
.board-grid .cell.t2 { background: linear-gradient(145deg, rgba(44,127,114,.46), rgba(44,127,114,.18)); border-color: rgba(44,127,114,.3); }
.board-grid .cell.t3 { background: linear-gradient(145deg, rgba(61,110,168,.45), rgba(61,110,168,.16)); border-color: rgba(61,110,168,.3); }
.board-grid .cell.t4 { background: linear-gradient(145deg, rgba(180,85,63,.4), rgba(180,85,63,.14)); border-color: rgba(180,85,63,.26); }
.board-grid .cell.t5 { background: linear-gradient(145deg, rgba(140,110,170,.4), rgba(140,110,170,.14)); border-color: rgba(140,110,170,.26); }
.board-legend { display: flex; gap: 14px; align-items: center; margin-top: 11px; font-size: 9.5px; color: #7E8794; }
.board-legend .lg { width: 7px; height: 7px; border-radius: 2px; margin-right: -8px; }
.lg.t1 { background: #C39A4E; } .lg.t2 { background: #2C7F72; } .lg.t3 { background: #3D6EA8; } .lg.free { background: rgba(255,255,255,.12); }

.auth-metrics { display: flex; gap: 30px; margin-top: auto; padding-top: 26px; }
.auth-metrics > div { border-left: 1px solid rgba(255,255,255,.1); padding-left: 14px; }
.auth-metrics b { display: block; font-family: var(--font-num); font-size: 27px; color: #E9D3A5; font-weight: 600; line-height: 1.1; }
.auth-metrics b em { font-size: 13px; font-style: normal; color: #9B8A63; }
.auth-metrics span { font-size: 10px; color: #7A8390; letter-spacing: .03em; }
.auth-copyright { margin-top: 22px; font-size: 9.5px; color: #525C6B; letter-spacing: .04em; }

.auth-steps { margin-top: 30px; display: flex; flex-direction: column; gap: 0; max-width: 460px; }
.auth-steps > div { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.09); }
.auth-steps b { font-family: var(--font-num); font-size: 15px; color: #C9A65E; width: 28px; }
.auth-steps span { font-size: 12px; color: #A3ABB6; }

/* 右侧表单 */
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--paper); }
.auth-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(27, 35, 48, .055) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .6;
}
.auth-panel-deco { position: absolute; top: 0; right: 0; width: 190px; height: 190px; pointer-events: none;
  background: linear-gradient(225deg, rgba(195,154,78,.16), transparent 62%); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.auth-card {
  position: relative; z-index: 2; width: 404px; max-width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 36px 26px; box-shadow: 0 40px 90px -50px rgba(15, 25, 40, .45), 0 2px 4px rgba(15,25,40,.03);
}
.auth-card.wide { width: 470px; }
.auth-card-head { margin-bottom: 24px; }
.tag-line { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; padding: 3px 9px; border: 1px solid #E8D7B5; border-radius: 20px; background: #FCF7EC; }
.auth-card-head h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 13px 0 5px; letter-spacing: .01em; }
.auth-card-head p { font-size: 12px; color: var(--muted); }

.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field-box { display: flex; align-items: center; gap: 8px; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #FCFBF7; transition: all .2s; }
.field-box:focus-within { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(195,154,78,.12); }
.field-box .ic { width: 16px; height: 16px; color: #A5A79F; }
.field-box input { flex: 1; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--ink); min-width: 0; }
.field-box input::placeholder { color: #B0B1AA; }
.field-box .eye { color: #A5A79F; display: flex; }
.field-box .eye:hover { color: var(--text-2); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 16px; }
.muted-link { font-size: 11px; color: var(--muted); }
.form-error { display: none; margin: 0 0 12px; padding: 8px 11px; border-radius: 7px; background: var(--rust-soft); color: #8A2F25; font-size: 11.5px; }
.form-error.show { display: block; animation: fadeUp .2s; }
.btn-auth {
  width: 100%; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #16283F, #0B1524); color: #F2E6CC; font-weight: 700; font-size: 14px; letter-spacing: .04em;
  box-shadow: 0 14px 28px -18px rgba(11, 21, 36, .9); transition: all .22s var(--ease);
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 20px 34px -18px rgba(11,21,36,.85); }
.btn-auth .ic { width: 17px; height: 17px; }
.btn-auth[disabled] { opacity: .7; pointer-events: none; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 13px; color: var(--muted-2); font-size: 10.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-ghost-auth {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 9px;
  border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); font-weight: 600; transition: all .2s;
}
.btn-ghost-auth:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.auth-foot { display: flex; justify-content: space-between; margin-top: 22px; font-size: 9.5px; color: var(--muted-2); letter-spacing: .03em; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.agree { margin: 2px 0 14px; font-size: 11.5px; }

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 26px 18px; }
  .auth-card { padding: 28px 24px 22px; }
}
@media (max-width: 520px) {
  .form-2col { grid-template-columns: 1fr; }
  .auth-card-head h2 { font-size: 21px; }
}
