/* 验证码样式文件 */
.captcha-container {
  position: relative;
  display: inline-block;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.captcha-container:hover {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  transform: translateY(-1px);
}

.captcha-image {
  height: 70px;
  width: 180px;
  cursor: pointer;
  display: block;
  object-fit: cover;
  transition: all 0.3s ease;
}

.captcha-container:hover .captcha-image {
  opacity: 0.8;
}

.captcha-refresh-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 123, 255, 0.9);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
}

.captcha-container:hover .captcha-refresh-hint {
  opacity: 1;
}

.input-group .captcha-container {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* 验证码输入框焦点状态 */
#captcha:focus + .captcha-container {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 竞赛页面的验证码样式 */
.contest-captcha {
  height: 70px !important;
  width: 180px !important;
  cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 576px) {
  .captcha-image {
    width: 140px;
    height: 55px;
  }
  
  .contest-captcha {
    width: 140px !important;
    height: 55px !important;
  }
  
  .captcha-refresh-hint {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
} 