/* go-captcha 滑动拼图验证弹窗（前台登录/注册/找回 + 后台登录共用） */
.cap-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 20, 40, .5);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.cap-mask.open { display: flex; }
.cap-box {
  width: 340px; max-width: 100%; flex: none;
  background: #fff; border-radius: 14px; padding: 18px 18px 16px;
  box-shadow: 0 24px 70px rgba(6, 23, 61, .35);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.cap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cap-title { font-size: 15px; font-weight: 700; color: #12214a; }
.cap-close { border: none; background: none; font-size: 20px; line-height: 1; color: #9aabb8; cursor: pointer; padding: 0 2px; }
.cap-close:hover { color: #34495e; }
.cap-stage {
  position: relative; width: 300px; height: 220px; margin: 0 auto;
  border-radius: 10px; overflow: hidden; background: #eef2f7;
}
.cap-stage img.cap-bg { position: absolute; inset: 0; width: 300px; height: 220px; pointer-events: none; }
.cap-stage img.cap-tile { position: absolute; width: auto; height: auto; pointer-events: none; z-index: 2; }
.cap-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #6b7c93; font-size: 13px; background: #f2f5f9; z-index: 3;
}
.cap-track {
  position: relative; width: 300px; height: 42px; margin: 14px auto 0;
  background: #f0f3f8; border: 1px solid #dde4ee; border-radius: 999px;
  touch-action: none;
}
.cap-track-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #93a2b5; pointer-events: none; white-space: nowrap;
}
.cap-track-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(16, 84, 255, .12); border-radius: 999px;
}
.cap-handle {
  position: absolute; left: 0; top: -1px; width: 44px; height: 42px;
  background: #fff; border: 1px solid #cfd8e6; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; box-shadow: 0 2px 8px rgba(20, 40, 80, .15); color: #6b7c93;
  touch-action: none;
}
.cap-handle:active { cursor: grabbing; }
.cap-handle svg { width: 20px; height: 20px; }
.cap-track.ok { border-color: #1ab394; }
.cap-track.ok .cap-handle { border-color: #1ab394; color: #1ab394; background: rgba(26, 179, 148, .08); }
.cap-track.ok .cap-track-fill { background: rgba(26, 179, 148, .15); }
.cap-track.fail { border-color: #ed5565; animation: cap-shake .3s; }
.cap-track.fail .cap-handle { border-color: #ed5565; color: #ed5565; background: rgba(237, 85, 101, .08); }
.cap-track.fail .cap-track-fill { background: rgba(237, 85, 101, .12); }
@keyframes cap-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.cap-msg { min-height: 18px; margin-top: 10px; font-size: 12.5px; text-align: center; color: #d13f37; }
.cap-msg.ok { color: #0c8a6a; }
