/* Authentication-only palette. The signed-in workspace keeps its own styling. */
html[data-theme="light"] #authView {
  --auth-field:#f8faf6; --auth-field-hover:#f2f6ec; --auth-field-text:#243126;
  --auth-placeholder:#596951; --auth-border:#869477; --auth-focus:#506b28;
  --auth-context:#edf2e6; --auth-panel:#fff; --auth-text:#26312a; --auth-muted:#53634f;
  --auth-soft:#e6eddc; --auth-error:#a52d27;
}
html[data-theme="dark"] #authView {
  --auth-field:#141d20; --auth-field-hover:#1a2629; --auth-field-text:#f1f6ef;
  --auth-placeholder:#acb9a5; --auth-border:#697a65; --auth-focus:#c9e77c;
  --auth-context:#1c2522; --auth-panel:#20292b; --auth-text:#f1f6ef; --auth-muted:#b2bead;
  --auth-soft:#303d2b; --auth-error:#ffb0a6;
}
#authView { color:var(--auth-text); }
#authView .auth-context { background:var(--auth-context); color:var(--auth-text); border:1px solid var(--line); box-shadow:none; }
#authView .auth-context::after { display:none; }
#authView .auth-context .brand-name,#authView .auth-intro h1,#authView .product-point b { color:var(--auth-text); }
#authView .auth-context .brand-sub,#authView .auth-intro>p,#authView .product-point span,#authView .auth-foot { color:var(--auth-muted); }
#authView .eyebrow { background:var(--auth-soft); color:var(--accent); }
#authView .product-point { background:var(--auth-panel); border:1px solid var(--line); backdrop-filter:none; }
#authView .landing-price { background:var(--auth-panel); border:1px solid var(--line); box-shadow:none; backdrop-filter:none; }
#authView .landing-price-item { background:var(--auth-field); border:1px solid var(--line); }
#authView .landing-price-item.hot { background:var(--auth-soft); box-shadow:none; }
#authView .landing-price-kicker,#authView .landing-price-item .value,#authView .landing-price-item.hot .value { color:var(--accent); text-shadow:none; }
#authView .landing-price-note,#authView .landing-price-item .name,#authView .landing-price-item .hint,#authView .landing-price-models { color:var(--auth-muted); }
#authView .landing-price-item .name em { color:var(--accent); background:var(--auth-soft); }
#authView .docs-cta { background:var(--auth-panel); color:var(--accent); border:1px solid var(--line-strong); box-shadow:none; }
#authView .auth-foot a { color:var(--accent); }
#authView .auth-panel { width:min(464px,100%); padding:32px; background:var(--auth-panel); border:1px solid var(--line-strong); border-radius:16px; box-shadow:0 12px 36px #16200c08; }
#authView .auth-panel::before { display:none; }
#authView .auth-panel-head { text-align:left; margin-bottom:24px; }
#authView .auth-appearance-trigger { float:right; margin:0 0 8px 12px; min-height:32px; padding:4px 10px; border:1px solid var(--line-strong); border-radius:6px; background:var(--auth-field); color:var(--auth-muted); font:inherit; font-size:12px; cursor:pointer; }
#authView .auth-panel-head h2 { color:var(--auth-text); font-size:27px; }
#authView .auth-panel-head p,#authView .field-hint,#authView .auth-note,#authView .auth-wechat { color:var(--auth-muted); }
#authView .field { margin-bottom:18px; }
#authView .field label { color:var(--auth-text); font-size:14px; font-weight:600; margin-bottom:8px; }
#authView .auth-tabs { background:var(--auth-field); border:1px solid var(--line-strong); padding:4px; gap:4px; border-radius:9px; }
#authView .auth-tab { color:var(--auth-muted); min-height:38px; border-radius:6px; font-size:14px; }
#authView .auth-tab.active { background:var(--auth-soft); color:var(--accent); box-shadow:none; font-weight:650; }
#authView .auth-panel input {
  min-height:48px; border:1px solid var(--auth-border); border-radius:8px;
  background:var(--auth-field); color:var(--auth-field-text); caret-color:var(--auth-field-text);
  font-size:16px; line-height:1.5; box-shadow:none;
}
#authView .auth-panel input::placeholder { color:var(--auth-placeholder); opacity:1; font-size:14px; }
#authView .auth-panel input:hover { background:var(--auth-field-hover); border-color:var(--auth-focus); box-shadow:none; }
#authView .auth-panel input:focus { background:var(--auth-field); border-color:var(--auth-focus); outline:2px solid var(--auth-focus); outline-offset:2px; box-shadow:none; }
#authView .auth-panel input:-webkit-autofill { -webkit-text-fill-color:var(--auth-field-text); -webkit-box-shadow:0 0 0 1000px var(--auth-field) inset; caret-color:var(--auth-field-text); }
#authView .auth-panel input:autofill { color:var(--auth-field-text); background:var(--auth-field); }
#authView .password-toggle { top:7px; right:7px; min-height:34px; color:var(--accent); background:var(--auth-soft); font-size:13px; padding:0 10px; }
#authView .code-input { letter-spacing:2px; }
#authView .code-input::placeholder { letter-spacing:0; }
#authView .password-input { padding-right:72px; }
#authView .code-input { padding-right:118px; }
#authView .auth-submit { min-height:48px; border-radius:8px; background:var(--accent); color:var(--accent-ink); font-size:15px; }
#authView .auth-docs-btn { border-radius:8px; color:var(--accent); background:var(--auth-soft); font-size:14px; }
#authView .auth-note { font-size:12px; }
#authView .status.err,#authView .status.error { color:var(--auth-error); }
#authView button:focus-visible,#authView a:focus-visible { outline:2px solid var(--auth-focus); outline-offset:3px; }
@media(max-width:860px) {
  #authView .auth-context { min-height:auto; margin:12px 12px 0; padding:22px; border-radius:14px; }
  #authView .auth-intro { padding:24px 0 8px; }
  #authView .auth-intro h1 { max-width:540px; font-size:32px; line-height:1.22; }
  #authView .auth-intro>p { font-size:14px; }
  #authView .auth-side { padding:20px 16px 32px; }
  #authView .auth-panel { padding:24px; }
}
@media(max-width:480px) {
  #authView .product-points,#authView .landing-price,#authView .auth-context .docs-cta { display:none; }
  #authView .auth-intro h1 { font-size:26px; }
  #authView .auth-intro { padding:18px 0 0; }
  #authView .eyebrow { margin-bottom:12px; font-size:11px; }
  #authView .auth-panel { padding:24px 20px; }
  #authView .auth-panel-head h2 { font-size:24px; }
}
