/* ==========================================================
   登录 / 注册 · 交序智控
   ========================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.auth {
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: #070E1A;
  color: #E8EEF7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.auth-shell { display: grid; grid-template-columns: 1.18fr .82fr; min-height: 100vh; }

/* ---------- 左侧视觉 ---------- */
.auth-visual {
  position: relative; overflow: hidden; padding: 42px 52px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 15% 110%, rgba(223, 160, 47, .14), transparent 60%),
    radial-gradient(700px 400px at 95% -5%, rgba(46, 111, 224, .10), transparent 60%),
    linear-gradient(160deg, #0B1524, #060C16 70%);
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
}
.auth-visual::after {
  content: ""; position: absolute; width: 680px; height: 680px; border-radius: 50%;
  right: -230px; top: -210px; border: 1px solid rgba(223, 160, 47, .10);
  box-shadow: 0 0 0 60px rgba(223, 160, 47, .025), 0 0 0 120px rgba(223, 160, 47, .02);
}
.auth-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.auth-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(160deg, #1C2E48, #0D1727);
  border: 1px solid rgba(223, 160, 47, .38);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px -16px #000;
}
.auth-mark i { width: 21px; height: 5px; border-radius: 4px; display: block; }
.auth-mark i:nth-child(1) { background: #D9544A; box-shadow: 0 0 9px rgba(217,84,74,.6); }
.auth-mark i:nth-child(2) { background: #DFA02F; box-shadow: 0 0 9px rgba(223,160,47,.55); }
.auth-mark i:nth-child(3) { background: #2FA37C; box-shadow: 0 0 9px rgba(47,163,124,.55); }
.auth-brand strong { display: block; font-size: 17px; letter-spacing: 4px; color: #F5F8FD; font-weight: 600; }
.auth-brand span { display: block; font-size: 9.5px; letter-spacing: 1.8px; color: #74849C; margin-top: 3px; text-transform: uppercase; }

.auth-hero { margin-top: 7vh; position: relative; z-index: 2; max-width: 560px; }
.auth-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 1.6px;
  color: #D3A24C; border: 1px solid rgba(223,160,47,.28); background: rgba(223,160,47,.05);
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 18px;
}
.auth-tag .pulse { width: 5px; height: 5px; border-radius: 50%; background: #2FA37C; box-shadow: 0 0 8px #2FA37C; animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.auth-hero h1 { font-size: 33px; line-height: 1.42; font-weight: 600; letter-spacing: -.5px; color: #F2F6FC; margin: 0; }
.auth-hero h1 em { font-style: normal; color: #E7B75D; }
.auth-hero p { font-size: 13px; color: #8A9AB1; line-height: 1.9; margin: 14px 0 0; }
.auth-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.auth-points span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #A9B7CB;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
  padding: 6px 11px; border-radius: 8px;
}
.auth-points i { color: #DFA02F; font-size: 12px; }

/* 信号路口示意图 */
.signal-scene { position: absolute; right: 6%; bottom: 4%; width: 46%; max-width: 470px; opacity: .9; z-index: 1; }
.signal-scene svg { width: 100%; height: auto; }
.road { fill: #101C2D; }
.road-line { stroke: rgba(230,238,250,.16); stroke-width: 1.4; stroke-dasharray: 9 9; }
.zebra { fill: rgba(236,242,251,.14); }
.pole { fill: #1B2A40; stroke: rgba(223,160,47,.35); stroke-width: 1; }
.lamp { opacity: .18; }
.lamp.red { fill: #D9544A; }
.lamp.amber { fill: #DFA02F; }
.lamp.green { fill: #2FA37C; }
.lamp.on { opacity: 1; }
.glow { filter: url(#glow); }
.ring { fill: none; stroke: rgba(223,160,47,.22); stroke-width: 1; }
.ring.slow { animation: spin 46s linear infinite; transform-origin: 210px 210px; }
.ring.slower { animation: spin 70s linear infinite reverse; transform-origin: 210px 210px; }
@keyframes spin { to { transform: rotate(360deg); } }
.blink-a { animation: lampA 6s steps(1) infinite; }
.blink-b { animation: lampB 6s steps(1) infinite; }
@keyframes lampA { 0%,49% { opacity: .16; } 50%,100% { opacity: 1; } }
@keyframes lampB { 0%,49% { opacity: 1; } 50%,100% { opacity: .16; } }

.auth-foot { margin-top: auto; padding-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 10.5px; color: #5E6E87; position: relative; z-index: 2; letter-spacing: .3px; }
.auth-stats { display: flex; gap: 34px; margin-top: 28px; position: relative; z-index: 2; }
.auth-stats div span { display: block; font-size: 10px; color: #6C7D96; letter-spacing: .6px; }
.auth-stats div b { font-family: "JetBrains Mono", "Bahnschrift", Consolas, monospace; font-size: 22px; font-weight: 600; color: #F2F6FC; }
.auth-stats div b small { font-family: inherit; font-size: 11px; color: #7F8FA6; margin-left: 3px; }

/* ---------- 右侧表单 ---------- */
.auth-panel {
  background: #FBFCFE; color: #162033;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 46px; position: relative;
}
.auth-card { width: 100%; max-width: 372px; }
.auth-card .eyebrow { font-size: 10px; letter-spacing: 2px; color: #B27A10; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.auth-card .eyebrow::before { content: ""; width: 20px; height: 1px; background: #DFA02F; }
.auth-card h2 { font-size: 26px; margin: 12px 0 0; font-weight: 600; letter-spacing: -.4px; }
.auth-card .lead { font-size: 12.5px; color: #6A778C; margin: 8px 0 26px; line-height: 1.7; }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: 11.5px; color: #4E5C72; margin-bottom: 6px; font-weight: 500; }
.auth-input { position: relative; }
.auth-input i.pre { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #96A2B5; font-size: 14px; }
.auth-input input {
  width: 100%; height: 44px; border: 1px solid #DCE2EC; border-radius: 10px;
  padding: 0 42px 0 38px; background: #fff; font-size: 13px; color: #162033; outline: none;
  transition: border .16s, box-shadow .16s;
}
.auth-input input:focus { border-color: #D9AE5B; box-shadow: 0 0 0 3px rgba(223,160,47,.14); }
.auth-input input::placeholder { color: #AAB4C4; }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; background: none; color: #96A2B5; cursor: pointer; border-radius: 6px; }
.auth-eye:hover { background: #F2F5FA; color: #596780; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 20px; font-size: 11.5px; color: #6A778C; }
.auth-check { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-check input { width: 14px; height: 14px; accent-color: #DFA02F; }
.auth-row a { color: #B27A10; }
.auth-row a:hover { text-decoration: underline; }
.auth-submit {
  width: 100%; height: 46px; border: 1px solid #C68C22; border-radius: 11px; cursor: pointer;
  background: linear-gradient(180deg, #E9AF44, #D4972A); color: #2A1C02;
  font-size: 13.5px; font-weight: 600; letter-spacing: 1px;
  box-shadow: 0 10px 24px -12px rgba(197,137,26,.9), inset 0 1px 0 rgba(255,255,255,.38);
  transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(197,137,26,.95); }
.auth-submit:disabled { opacity: .7; cursor: default; }
.auth-alt { text-align: center; font-size: 12px; color: #6A778C; margin-top: 20px; }
.auth-alt a { color: #162033; font-weight: 500; border-bottom: 1px solid #D9DFE9; padding-bottom: 1px; }
.auth-alt a:hover { color: #B27A10; border-color: #DFA02F; }
.auth-legal { margin-top: 30px; padding-top: 16px; border-top: 1px solid #ECF0F6; font-size: 10px; color: #9AA5B7; line-height: 1.8; }
.auth-msg { display: none; padding: 10px 12px; border-radius: 9px; font-size: 11.5px; margin-bottom: 14px; }
.auth-msg.show { display: block; }
.auth-msg.err { background: #FBEBE9; border: 1px solid #F2CFCB; color: #C8463C; }
.auth-msg.ok { background: #E9F6F1; border: 1px solid #C8E8DC; color: #14876A; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6A778C; margin-bottom: 18px; }
.auth-back:hover { color: #162033; }
.auth-panel .auth-brand-mini { display: none; }

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; background: linear-gradient(180deg, #0B1524 0%, #0B1524 34%, #FBFCFE 34%, #FBFCFE 100%); align-items: flex-start; padding: 28px 22px 40px; }
  .auth-card { background: #fff; border: 1px solid #E5E9F1; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(10,20,36,.35); padding: 26px 22px; margin-top: 12vh; max-width: 420px; }
  .auth-panel .auth-brand-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; top: 42px; left: 0; right: 0; color: #E8EEF7; }
  .auth-panel .auth-brand-mini .auth-mark { margin: 0 auto; }
  .auth-panel .auth-brand-mini strong { letter-spacing: 4px; font-size: 17px; }
  .auth-panel .auth-brand-mini span { font-size: 9px; letter-spacing: 1.6px; color: #7E8DA4; }
}
@media (max-width: 520px) {
  .auth-grid-2 { grid-template-columns: 1fr; }
  .auth-card h2 { font-size: 22px; }
}
