:root {
  --page: #f3f4f2;
  --surface: #fcfcfb;
  --dark: #23282c;
  --ink: #242a2e;
  --muted: #626b72;
  --light: #f3f5f5;
  --soft: #b9c0c5;
  --accent: #2d3945;
  --line: rgba(35, 40, 44, .12);
  --line-light: rgba(243, 245, 245, .17);
  --shadow: rgba(35, 40, 44, .17);
  --error: #973c36;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, summary { font: inherit; }
main { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 40px; }
.login-shell { width: 1120px; max-width: 100%; min-height: 704px; display: grid; grid-template-columns: 1.08fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 28px 76px -44px var(--shadow); background: var(--surface); }
.brand { background: var(--dark); color: var(--light); padding: 48px 56px 34px; display: flex; flex-direction: column; }
.brand-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 140px; height: 115px; object-fit: contain; }
.brand-caption { font-size: 12px; color: var(--soft); writing-mode: vertical-rl; letter-spacing: 4px; }
.brand-copy { margin: auto 0; padding: 45px 0 40px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 2px; color: var(--soft); margin: 0 0 20px; }
.brand h1 { font-size: 38px; line-height: 1.45; letter-spacing: 1px; font-weight: 600; margin: 0 0 22px; }
.brand-description { font-size: 14px; line-height: 1.95; color: var(--soft); max-width: 370px; margin: 0; text-wrap: pretty; }
.capabilities { border-top: 1px solid var(--line-light); padding-top: 24px; display: flex; }
.capabilities span { font-size: 13px; line-height: 1.5; flex: 1; }
.capabilities span + span { border-left: 1px solid var(--line-light); padding-left: 22px; }
.company { font-size: 11px; color: var(--soft); margin: 30px 0 0; letter-spacing: .5px; }
.login { min-width: 0; display: flex; flex-direction: column; padding: 30px 58px 20px; }
.login-top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.login-top strong { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.login-core { margin: auto 0; padding: 24px 0 16px; }
.welcome { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
h2 { font-size: 30px; line-height: 1.4; letter-spacing: .5px; margin: 0 0 10px; font-weight: 600; }
.description { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0; }
.qr-shell { width: 320px; height: 380px; max-width: 100%; margin: 20px auto 0; position: relative; }
#ww-login-panel { width: 320px; height: 380px; max-width: 100%; }
#ww-login-panel iframe { display: block; border: 0; width: 320px; height: 380px; max-width: 100%; }
.qr-status { position: absolute; inset: 0; background: var(--surface); display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; padding: 24px; gap: 12px; border: 1px solid var(--line); border-radius: 4px; }
.qr-status strong { font-size: 17px; font-weight: 500; }
.qr-status span { font-size: 13px; line-height: 1.7; color: var(--muted); }
.qr-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.qr-actions button, .qr-actions a { min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; border: 0; background: none; color: var(--accent); font-size: 12px; cursor: pointer; }
.qr-actions button:disabled { color: var(--muted); cursor: wait; }
.access-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.login-error { color: var(--error); font-size: 13px; line-height: 1.7; margin: 12px 0; }
.login-error a { color: inherit; }
.help { border-top: 1px solid var(--line); padding-top: 6px; color: var(--muted); font-size: 12px; }
.help summary { min-height: 44px; cursor: pointer; padding: 14px 0; }
.help p { font-size: 12px; line-height: 1.8; margin: 0 0 12px; }
:is(button, a, summary):focus-visible { outline: 3px solid var(--muted); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 960px) {
  main { padding: 24px; }
  .brand { padding: 36px; }
  .login { padding: 30px 28px 20px; }
  .brand h1 { font-size: 30px; }
  .login-shell { grid-template-columns: 1fr 1fr; }
  .capabilities { gap: 16px; flex-wrap: wrap; }
  .capabilities span { flex: initial; }
  .capabilities span + span { border: 0; padding: 0; }
}
@media (max-width: 800px) {
  main { padding: 20px 16px; }
  .login-shell { display: block; min-height: 0; max-width: 560px; }
  .brand { padding: 24px; }
  .logo { width: 92px; height: 76px; }
  .brand-caption { writing-mode: horizontal-tb; letter-spacing: 2px; }
  .brand-copy { padding: 24px 0 0; }
  .eyebrow, .capabilities, .company { display: none; }
  .brand h1 { font-size: 24px; line-height: 1.5; margin-bottom: 14px; }
  .brand h1 br { display: none; }
  .brand-description { font-size: 13px; }
  .login { padding: 24px 18px 12px; }
  h2 { font-size: 26px; }
  .description { font-size: 13px; }
}
@media (max-width: 374px) {
  main { padding: 0; }
  .login-shell { border: 0; border-radius: 0; }
  .login { padding-right: 0; padding-left: 0; }
  .login-top, .welcome, h2, .description, .login-error, .help { margin-left: 16px; margin-right: 16px; }
}

#ww-login-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; }
#ww-login-panel img { width:240px; height:240px; max-width:100%; image-rendering:pixelated; }
.scan-action { display:inline-block; padding:14px 22px; background:#2d3945; color:white; text-decoration:none; border-radius:6px; font-size:16px; }
.scan-card { width:440px; max-width:100%; padding:30px 24px; border-radius:12px; background:white; box-shadow:0 12px 60px #0001; }
.scan-card h1 { font-size:26px; line-height:1.45; }
.scan-card p { line-height:1.9; }
.scan-card small { display:block; color:#626b72; line-height:1.8; margin:20px 0; }

.remember-device{display:flex;gap:8px;justify-content:center;font-size:14px;margin:18px 0}.remember-note{text-align:center;font-size:12px;color:#64716a}
