/* 验证码弹窗样式 */
#captcha-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#captcha-modal.show {
  display: flex;
}

#captcha-modal .modal-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  min-height: 274px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#captcha-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#captcha-modal .modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

#captcha-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  transition: color 0.3s;
}

#captcha-modal-close:hover {
  color: #333;
}

#captcha-container {
  position: relative;
  width: 100%;
}

#captcha {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* 确保验证码插件内部的绝对定位元素不会溢出 */
#captcha .block {
  position: absolute;
  z-index: 2;
}

/* 确保gener_container正常显示 */
.gener_container {
  position: relative;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 记住密码复选框样式 */
#remember-password {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  accent-color: #1890ff;
  flex-shrink: 0;
}

#remember-password:checked {
  accent-color: #1890ff;
}

.center-btn label {
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.center-btn label span {
  line-height: 1;
  color: #fff;
  font-size: 14px;
}

.center-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
}

