/* captcha.css — the sign-in checks (lib/captcha.php, assets/js/captcha.js),
   from UpWeb: the puzzle slider (admin) and "I'm not a robot" (customers). */
html.dark, [data-bs-theme="dark"] { --cap-soft: #0f1a2e; --cap-line: #26324d; --cap-card: #0b1220; --cap-mute: #94a3b8; }
.up-robot-label { color: inherit; }
.up-robot-mark { display: flex; flex-direction: column; align-items: center; width: auto !important; height: auto !important; font-size: .62rem; line-height: 1.2; text-align: center; }
.up-robot-mark svg { width: 26px; height: 26px; }
.up-captcha { direction: ltr; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.up-captcha-stage { position: relative; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: var(--cap-soft, #f1f5f9); }
.up-captcha-bg { display: block; width: 100%; height: 100%; }
.up-captcha-piece { position: absolute; left: 0; width: 18.125%; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); pointer-events: none; }
.up-captcha-bg:not([src]), .up-captcha-piece:not([src]) { visibility: hidden; }
.up-captcha-refresh { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.up-captcha-refresh svg { width: 100%; height: 100%; display: block; }
.up-captcha-msg { position: absolute; inset: auto 0 0; padding: 6px 10px; font-size: .875rem; text-align: center; color: #fff;  opacity: 0; transition: opacity .2s; }
.up-captcha.is-ok .up-captcha-msg { opacity: 1; background: rgba(22, 163, 74, .88); }
.up-captcha.is-error .up-captcha-msg, .up-captcha.is-failed .up-captcha-msg { opacity: 1; background: rgba(214, 57, 57, .88); }
.up-captcha-track { position: relative; height: 48px; margin-top: 8px; border-radius: 24px; background: var(--cap-soft, #f1f5f9); border: 1px solid var(--cap-line, #e2e8f0); overflow: hidden; touch-action: none; }
.up-captcha-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(37,99,235,.15); }
.up-captcha-hint { position: absolute; inset: 0 12px 0 56px; display: flex; align-items: center; justify-content: center; font-size: .8125rem; color: var(--cap-mute, #64748b);  pointer-events: none; transition: opacity .15s; }
.up-captcha.is-moving .up-captcha-hint, .up-captcha.is-ok .up-captcha-hint { opacity: 0; }
.up-captcha-handle { position: absolute; top: 3px; left: 3px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #2563eb; color: #fff; cursor: grab; touch-action: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.up-captcha-handle:focus-visible { outline: 3px solid rgba(37,99,235,.15); outline-offset: 2px; }
.up-captcha-handle svg { width: 100%; height: 100%; display: block; }
.up-captcha.is-moving .up-captcha-handle { cursor: grabbing; }
.up-captcha.is-ok .up-captcha-handle { background: #16a34a; }
.up-captcha.is-ok .up-captcha-fill { background: rgba(22,163,74,.15); }
.up-captcha.is-failed .up-captcha-handle { background: #d63939; }
.up-captcha.is-failed .up-captcha-track { animation: up-captcha-shake .4s; }
.up-captcha.is-busy .up-captcha-handle { opacity: .6; pointer-events: none; }
.up-captcha.is-settling .up-captcha-piece, .up-captcha.is-settling .up-captcha-handle, .up-captcha.is-settling .up-captcha-fill { transition: left .3s, width .3s; }
@keyframes up-captcha-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .up-captcha.is-failed .up-captcha-track { animation: none; } }

/* Login "I'm not a robot" checkbox (Captcha, checkbox mode). */
.up-robot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--cap-line, #e2e8f0); border-radius: 10px; background: var(--cap-soft, #f1f5f9); }
.up-robot-box { position: relative; flex: none; width: 30px; height: 30px; padding: 0; border: 2px solid #94a3b8; border-radius: 6px; background: var(--cap-card, #fff); cursor: pointer; transition: border-color .15s, background .15s; }
.up-robot-box:hover { border-color: #2563eb; }
.up-robot-box:focus-visible { outline: 3px solid rgba(37,99,235,.15); outline-offset: 2px; }
.up-robot-text { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.up-robot-label { font-weight: 500; }
.up-robot-status { font-size: .8125rem; color: var(--cap-mute, #64748b); }
.up-robot-status:empty { display: none; }
.up-robot-mark { flex: none; width: 28px; height: 28px; color: var(--cap-mute, #64748b); opacity: .7; }
.up-robot-spinner, .up-robot-check { position: absolute; inset: 0; margin: auto; display: none; }
.up-robot-spinner { width: 20px; height: 20px; border: 3px solid rgba(37,99,235,.15); border-top-color: #2563eb; border-radius: 50%; animation: up-robot-spin .7s linear infinite; }
.up-robot-check { width: 22px; height: 22px; color: #fff; }
.up-robot.is-working .up-robot-box { border-color: transparent; background: transparent; cursor: progress; }
.up-robot.is-working .up-robot-spinner { display: block; }
.up-robot.is-ok .up-robot-box { border-color: #16a34a; background: #16a34a; cursor: default; }
.up-robot.is-ok .up-robot-check { display: block; }
.up-robot.is-ok .up-robot-status { color: #16a34a; }
.up-robot.is-error .up-robot-box { border-color: #d63939; }
.up-robot.is-error .up-robot-status { color: #d63939; }
@keyframes up-robot-spin { to { transform: rotate(360deg); } }
