/* 登录页 · 分屏品牌设计（与全系统同一 Copilot 紫品牌基调） */
:root {
  --brand: #5b5fc7;
  --brand-dark: #4a4db0;
  --brand-deep: #3a3d92;
  --brand-soft: #eeeffb;
  --bg: #f3f4f8;
  --text: #1b1b2f;
  --muted: #6b6b80;
  --border: #e2e3ee;
  --danger: #d23b3b;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.6;
}

/* ---------- 舞台与背景装饰 ---------- */
.login-stage {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(91, 95, 199, .16) 0%, rgba(91, 95, 199, 0) 60%),
    radial-gradient(900px 480px at 108% 112%, rgba(138, 142, 232, .18) 0%, rgba(138, 142, 232, 0) 55%),
    linear-gradient(165deg, #f6f7fd 0%, var(--bg) 55%, #eceef9 100%);
  overflow: hidden;
}
.deco {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(2px);
}
.deco-a {
  width: 320px; height: 320px; left: -110px; bottom: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(91,95,199,.22), rgba(91,95,199,0) 70%);
}
.deco-b {
  width: 260px; height: 260px; right: -80px; top: -90px;
  background: radial-gradient(circle at 60% 40%, rgba(91,95,199,.16), rgba(91,95,199,0) 70%);
}

/* ---------- 主面板：左品牌 + 右表单 ---------- */
.login-panel {
  position: relative; z-index: 1;
  display: flex;
  width: 100%; max-width: 960px;
  min-height: 560px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(58, 61, 146, .18), 0 4px 18px rgba(58, 61, 146, .08);
  overflow: hidden;
}

/* ---------- 左侧品牌区 ---------- */
.brand-side {
  position: relative;
  flex: 0 0 44%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 88% 96%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 52%, #7b7fd6 100%);
}
.brand-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(220px 220px at 20% 12%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(160px 160px at 84% 30%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
}
.brand-name {
  position: relative;
  margin: 0 0 8px;
  font-size: 24px; line-height: 1.45; font-weight: 700; letter-spacing: .3px;
}
.brand-sub {
  position: relative;
  margin: 0 0 30px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.brand-feats {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 20px;
}
.brand-feats li { display: flex; gap: 13px; align-items: flex-start; }
.feat-ico {
  flex: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
}
.feat-ico svg { width: 19px; height: 19px; }
.brand-feats b { display: block; font-size: 14.5px; }
.brand-feats i { display: block; font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.68); }
.brand-foot {
  position: relative;
  margin: 34px 0 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 12.5px; color: rgba(255,255,255,.6); letter-spacing: .5px;
}

/* ---------- 右侧登录表单 ---------- */
.form-side {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 52px;
}
.logo {
  display: block;
  width: auto; max-width: 240px; max-height: 46px; height: auto;
  object-fit: contain;
  margin: 0 0 26px;
  align-self: center;
}
.form-side h2 { margin: 0 0 4px; font-size: 22px; text-align: center; }
.form-side .sub { margin: 0 0 26px; font-size: 13px; color: var(--muted); text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fbfbfe;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 95, 199, .13);
}

.login-error {
  background: #fdecec;
  border: 1px solid #f2d4d4;
  color: var(--danger);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13.5px;
  margin: 0 0 14px;
}

.btn {
  border: none; border-radius: 11px;
  padding: 13px 20px; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, #7b7fd6 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 95, 199, .35);
  transition: box-shadow .15s, filter .15s;
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(91, 95, 199, .42); }

.login-btn { width: 100%; margin-top: 4px; }

.foot { margin-top: 20px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- 移动端：上下堆叠 ---------- */
@media (max-width: 880px) {
  .login-panel { flex-direction: column; min-height: 0; max-width: 460px; }
  .brand-side { flex: none; padding: 26px 26px 22px; }
  .brand-name { font-size: 17px; }
  .brand-sub { margin-bottom: 14px; }
  .brand-feats, .brand-foot { display: none; }
  .form-side { padding: 28px 26px 30px; }
  .logo { max-width: 200px; max-height: 40px; margin-bottom: 18px; }
}

/* ICP 备案号：舞台内底部居中 */
.icp {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-size: 12px;
  color: #9a9cb0;
  z-index: 2;
}
.icp a { color: inherit; text-decoration: none; }
.icp a:hover { color: var(--brand, #5b5fc7); text-decoration: underline; }
