/* ============================================================
   login.css —— 登录页
   ============================================================ */

body.login-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(34, 211, 238, 0.1), transparent 55%),
    #060a12;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  overflow: hidden;
}

/* ---------------------------------------------------------- 左侧品牌区 */
.brand-pane {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 130, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 130, 220, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 20%, #000 25%, transparent 78%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #3b82f6, #1e40af);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.5);
}
.brand-mark svg { width: 22px; height: 22px; color: #fff; }
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: 0.6px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 40px 0 auto;
}
.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.brand-eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.brand-copy h1 {
  font-size: 38px;
  line-height: 1.25;
  margin: 18px 0 14px;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #f8fafc, #9fb6d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 430px;
}

.brand-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  max-width: 430px;
}
.brand-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.brand-point .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-point .ico svg { width: 15px; height: 15px; color: #7dd3fc; }
.brand-point b { font-size: 13px; font-weight: 600; display: block; }
.brand-point span { font-size: 12px; color: var(--muted); }

/* 装饰行情线 */
.sparkline {
  position: absolute;
  right: -40px;
  bottom: 70px;
  width: 460px;
  height: 220px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.sparkline path.line {
  fill: none;
  stroke: url(#sparkGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 3.2s ease-out forwards;
}
.sparkline path.area { fill: url(#sparkArea); opacity: 0.35; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 22px;
  color: #4c5c78;
  font-size: 12px;
  flex-wrap: wrap;
}
.brand-foot .mono { color: #62718e; }

/* ---------------------------------------------------------- 右侧登录区 */
.login-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.mobile-brand .brand-mark svg { width: 19px; height: 19px; }
.mobile-brand .brand-name { font-size: 15px; }
.login-card {
  width: 100%;
  max-width: 392px;
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.96), rgba(10, 16, 28, 0.96));
  border: 1px solid rgba(56, 79, 120, 0.42);
  border-radius: 18px;
  padding: 32px 30px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  animation: card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.login-head { margin-bottom: 24px; }
.login-head h2 { font-size: 21px; letter-spacing: 0.4px; }
.login-head p { color: var(--muted); font-size: 13px; margin-top: 7px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.input-icon { position: relative; }
.input-icon > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #4f6180;
  pointer-events: none;
}
.input-icon .input { padding-left: 38px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #566987;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.pw-toggle:hover { background: #14203a; color: #93a6c4; }
.pw-toggle svg { width: 16px; height: 16px; }

.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; letter-spacing: 2px; text-transform: uppercase; }
.captcha-img {
  width: 172px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  flex: none;
  background: #0b1220;
  position: relative;
}
.captcha-img svg { width: 100%; height: 100%; display: block; }
.captcha-img .reload {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 13, 23, 0.75);
  opacity: 0;
  transition: opacity 0.15s;
  color: #93a6c4;
}
.captcha-img:hover .reload { opacity: 1; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.login-submit {
  height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.login-msg {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px solid transparent;
}
.login-msg.show { display: flex; }
.login-msg.error { background: rgba(239, 68, 68, 0.11); border-color: rgba(239, 68, 68, 0.36); color: #fecaca; }
.login-msg.warn { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.34); color: #fde68a; }
.login-msg.info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.32); color: #bfdbfe; }
.login-msg svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.attempts {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 2px;
}
.attempts i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #22304a;
  transition: background 0.2s;
}
.attempts i.on { background: #3b82f6; }
.attempts i.hot { background: #ef4444; }

.lock-panel {
  display: none;
  text-align: center;
  padding: 8px 0 2px;
}
.lock-panel.show { display: block; }
.lock-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(239, 68, 68, 0.28);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.14), transparent 70%);
  color: #fca5a5;
}
.lock-ring svg { width: 28px; height: 28px; }
.lock-countdown {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  color: #fca5a5;
  letter-spacing: 1px;
}
.lock-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 39, 64, 0.75);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4a5b78;
  font-size: 11.5px;
  gap: 10px;
  flex-wrap: wrap;
}
.login-foot .ver { font-family: var(--mono); }

.caps-hint { display: none; font-size: 11.5px; color: #fcd34d; margin-top: -4px; }
.caps-hint.show { display: block; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  body.login-page { grid-template-columns: minmax(0, 1fr); }
  .brand-pane { display: none; }
  .login-pane { min-height: 100vh; }
  .login-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 380px at 50% -10%, rgba(37, 99, 235, 0.24), transparent 65%);
    pointer-events: none;
  }
  .login-card { position: relative; }
  .mobile-brand { display: flex; }
}
@media (max-width: 460px) {
  .login-card { padding: 26px 20px 22px; border-radius: 16px; }
  .login-pane { padding: 18px 14px; }
  .captcha-img { width: 148px; }
}
