.login-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.setup-notice { color: var(--muted); background: var(--surface-soft); border-left: 3px solid var(--accent); padding: 10px 12px; margin: 0 0 16px; font-size: 12px; line-height: 1.7; }
.slider-captcha { margin-top: 14px; min-width: 0; width: 100%; }
.captcha-open { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.captcha-open > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.captcha-open > svg:last-child { margin-left: auto; width: 15px; height: 15px; }
.captcha-open:disabled { cursor: default; opacity: .6; }
.captcha-open:hover:enabled, .captcha-icon:hover:enabled { border-color: var(--accent); color: var(--accent); }
.captcha-panel { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: var(--surface); margin-top: 8px; }
.captcha-panel[hidden], .captcha-open[hidden] { display: none; }
.captcha-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.captcha-icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.captcha-icon svg { width: 14px; height: 14px; }
.captcha-stage { position: relative; width: 100%; aspect-ratio: 320 / 144; overflow: hidden; background: var(--surface-soft); border-radius: 3px; }
.captcha-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.captcha-piece { position: absolute; left: 0; width: 17.5%; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 2px 2px #0005); will-change: transform; }
.captcha-stage img:not([src]) { visibility: hidden; }
.captcha-rail { position: relative; height: 42px; width: 100%; margin-top: 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; user-select: none; }
.captcha-rail-label { display: flex; justify-content: center; align-items: center; height: 100%; padding-left: 32px; color: var(--muted); font-size: 12px; pointer-events: none; }
.captcha-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); pointer-events: none; }
.captcha-handle { position: absolute; left: 0; top: 0; width: 42px; height: 40px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--accent); cursor: grab; touch-action: none; will-change: transform; box-shadow: 1px 0 3px #0001; }
.captcha-handle svg { width: 20px; height: 20px; pointer-events: none; }
.captcha-handle:active { cursor: grabbing; }
.captcha-handle:disabled { cursor: default; opacity: .55; }
.captcha-handle:focus-visible, .captcha-open:focus-visible, .captcha-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.captcha-status { min-height: 0; margin: 7px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.captcha-status:empty { display: none; }
.slider-captcha[data-state="error"] .captcha-status { color: #c34444; }
.slider-captcha[data-state="verified"] .captcha-open { border-color: #72b99b; color: #28815c; background: #edf8f2; }
.slider-captcha[data-state="verified"] .captcha-open svg { color: #28815c; }
html[data-theme="dark"] .slider-captcha[data-state="verified"] .captcha-open { background: #20382e; color: #8ed5b0; }
html[data-theme="dark"] .slider-captcha[data-state="error"] .captcha-status { color: #f29a9a; }
.login-page .submit-btn:disabled { opacity: .55; cursor: default; }
@media (max-width: 420px) {
  .login-masthead { padding: 22px 20px; flex-wrap: wrap; font-size: 19px; }
  .login-masthead > span:last-child { padding-left: 10px; margin-left: 0; font-size: 11px; }
  .login-page .login-card { padding: 26px 22px 18px; }
}
