/* SliderCaptcha CSS */
.slider-captcha-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
}

.slider-captcha-canvas-container {
  position: relative;
  width: 100%;
  height: 200px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* 隐藏状态 */
.slider-captcha-canvas-container.hidden {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 1000;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 显示状态 */
.slider-captcha-canvas-container.show {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1000;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.slider-captcha-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-captcha-puzzle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.slider-captcha-refresh {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
}

.slider-captcha-refresh:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-captcha-refresh svg {
  width: 18px;
  height: 18px;
  fill: #666;
}

.slider-captcha-slider-container {
  position: relative;
  width: 100%;
  height: 50px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: visible;
  z-index: 1;
}

.slider-captcha-slider-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #1890ff 0%, #40a9ff 100%);
  transition: width 0.1s;
  border-radius: 4px 0 0 4px;
}

.slider-captcha-slider-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  z-index: 2;
}

.slider-captcha-slider-button:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-captcha-slider-button.dragging {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-captcha-slider-button svg {
  width: 20px;
  height: 20px;
  fill: #1890ff;
}

.slider-captcha-slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 14px;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.slider-captcha-slider-container.success .slider-captcha-slider-track {
  background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%);
}

.slider-captcha-slider-container.success .slider-captcha-slider-button svg {
  fill: #52c41a;
}

.slider-captcha-slider-container.fail .slider-captcha-slider-track {
  background: linear-gradient(90deg, #ff4d4f 0%, #ff7875 100%);
}

.slider-captcha-slider-container.fail .slider-captcha-slider-button svg {
  fill: #ff4d4f;
}

.slider-captcha-message {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.slider-captcha-message.success {
  color: #52c41a;
}

.slider-captcha-message.error {
  color: #ff4d4f;
}
