/**
 * 图形点选验证码样式
 *
 * @author system
 * @since 2026-04-30
 */

.click-captcha-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.click-captcha-mask.active {
  display: flex;
}
.click-captcha-modal {
  background: #fff;
  border-radius: 8px;
  width: 420px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  user-select: none;
  -webkit-user-select: none;
}
.click-captcha-image {
  position: relative;
  width: 100%;
  height: 231px; /* 400:220 ratio + padding */
  background: #f5f3f0;
  cursor: pointer;
}
.click-captcha-image img.click-captcha-bg {
  display: block;
  width: 400px;
  height: 220px;
  margin: 0 auto;
  padding-top: 5px;
}
.click-captcha-mark {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  pointer-events: none;
  z-index: 2;
  transform: translate(-12px, -12px);
  transition: background 0.2s;
}
.click-captcha-mark.pending {
  background: rgba(24, 144, 255, 0.85);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.click-captcha-mark.success {
  background: rgba(82, 196, 26, 0.9);
  border: 2px solid #fff;
}
.click-captcha-mark.fail {
  background: rgba(245, 34, 45, 0.9);
  border: 2px solid #fff;
}
.click-captcha-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  background: #f5f3f0;
}
.click-captcha-result {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 13px;
  padding: 6px 0;
  color: #fff;
  z-index: 3;
}
.click-captcha-result.success {
  background: rgba(82, 196, 26, 0.85);
}
.click-captcha-result.fail {
  background: rgba(245, 34, 45, 0.85);
}
.click-captcha-hint {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #f0eeeb;
  background: #fff;
}
.click-captcha-hint-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.click-captcha-hint-text {
  flex: 1;
  font-size: 14px;
  color: #333;
  margin-left: 10px;
}
.click-captcha-refresh {
  font-size: 20px;
  color: #1890ff;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.click-captcha-refresh:hover {
  color: #40a9ff;
}

/* ============== 短信验证码登录表单按钮样式（从 slide-captcha.css 迁移） ============== */
#sms-login-container .btn-get-code {
  position: absolute;
  right: 0;
  top: 8px;
  height: 42px;
  line-height: 42px;
  padding: 0 15px;
  border: 1px solid #00b4d2;
  background: #fff;
  color: #00b4d2;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}
#sms-login-container .btn-get-code:hover {
  background: #00b4d2;
  color: #fff;
}
#sms-login-container .btn-get-code:disabled {
  background: #f5f5f5;
  color: #999;
  border-color: #d9d9d9;
  cursor: not-allowed;
}
#sms-login-container .form_code input {
  width: 60%;
}
