:root { --brand: #2f6bff; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1d2939; background: #fff; -webkit-font-smoothing: antialiased;
}
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.brand-panel {
  position: relative; overflow: hidden; padding: 38px 52px 32px;
  background: linear-gradient(145deg, #f4f8ff 0%, #eaf1ff 55%, #f8faff 100%);
  display: flex; flex-direction: column;
}
.brand-panel::after {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -220px; top: -160px; background: rgba(255,255,255,.55); pointer-events: none;
}
.brand-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-top img { width: 42px; height: 42px; border-radius: 10px; background: #fff; object-fit: contain; }
.brand-top div { display: flex; flex-direction: column; line-height: 1.25; }
.brand-top strong { font-size: 16px; letter-spacing: .5px; }
.brand-top span { font-size: 12px; color: #6d7f9b; }

.brand-main { margin: auto 0; position: relative; z-index: 1; max-width: 520px; }
.brand-main h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.22; margin: 0 0 18px; letter-spacing: -1px; }
.brand-main .lead { font-size: 15px; color: #5d6d84; line-height: 1.9; margin: 0 0 26px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.feature-chips span {
  padding: 7px 14px; border-radius: 18px; font-size: 12px; color: #4a5b76;
  background: rgba(255,255,255,.8); border: 1px solid rgba(47,107,255,.12);
}
.theme-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6d7f9b; }
.swatch {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: var(--c); box-shadow: 0 0 0 1px rgba(29,41,57,.12); padding: 0;
}
.swatch.active { box-shadow: 0 0 0 2px var(--c); }
.brand-foot { font-size: 11px; color: #92a0b5; position: relative; z-index: 1; }

.login-panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.login-card { width: min(380px, 100%); }
.login-card h2 { font-size: 26px; margin: 0 0 8px; }
.login-card .sub { color: #7b8798; font-size: 13px; margin: 0 0 24px; }

.qr-box {
  width: 250px; height: 250px; margin: 0 auto; display: grid; place-items: center;
  border: 1px dashed #d8e0ec; border-radius: 14px; background: #fafbfd; overflow: hidden;
}
.qr-box svg { width: 232px; height: 232px; }
.qr-loading { color: #9aa6b7; font-size: 12px; }
.qr-actions { text-align: center; margin-top: 8px; }
.link-btn { border: none; background: none; color: var(--brand); font-size: 12px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.qr-tip { text-align: center; color: #7b8798; font-size: 12px; line-height: 1.7; margin: 12px 0 22px; }
.qr-tip b { color: #3c4a5e; font-weight: 600; }

.divider { position: relative; text-align: center; margin: 22px 0; color: #aab4c2; font-size: 12px; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e6eaf1; }
.divider span { position: relative; padding: 0 12px; background: #fff; }

.wecom-btn {
  width: 100%; height: 44px; border: none; border-radius: 9px; cursor: pointer;
  background: #07a95e; color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 6px 16px rgba(7,169,94,.2);
}
.wecom-btn:hover { background: #069552; }
.wecom-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hint { text-align: center; color: #9aa6b7; font-size: 11px; margin-top: 12px; }
.notice { margin-top: 16px; padding: 10px 12px; border-radius: 8px; font-size: 12px; background: #fff5e4; color: #b87506; }
.notice.error { background: #fff0f0; color: #e5484d; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { padding: 28px 24px 24px; min-height: 320px; }
  .brand-main h1 { font-size: 30px; }
  .brand-main .lead { margin-bottom: 18px; }
  .feature-chips { margin-bottom: 20px; }
  .login-panel { padding: 32px 20px 48px; }
}
