/* Auth graphic captcha — focus 后右侧预览（对齐 PostOne） */
.auth-graphic-captcha {
  margin: 0 0 0.75rem;
}
.auth-graphic-captcha > .auth-cap-label {
  display: block;
  margin-bottom: 0.35rem;
}
.auth-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.auth-captcha-row .captcha-input-group {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  background: #fff;
  overflow: hidden;
}
.auth-captcha-row .captcha-input-group .form-control {
  border: 0 !important;
  box-shadow: none !important;
  letter-spacing: 0.06em;
  padding-right: 2.5rem;
}
.captcha-refresh-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.captcha-refresh-btn:hover {
  color: #002fa7;
  background: rgba(0, 47, 167, 0.08);
}
.auth-graphic-captcha .captcha-inline-preview {
  margin-top: 0;
  padding: 0 0.35rem;
  background: #fff;
  border: 2px solid #bfdbfe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  height: 40px;
  min-width: 110px;
}
.auth-graphic-captcha .captcha-inline-preview.is-hidden,
.auth-graphic-captcha .captcha-inline-preview[hidden] {
  display: none !important;
}
.captcha-inline-preview-img {
  max-width: 140px;
  height: 36px;
  width: auto;
  cursor: pointer;
  border-radius: 4px;
  display: block;
}
.captcha-inline-preview-img:not([src]),
.captcha-inline-preview-img[src=""] {
  opacity: 0;
  visibility: hidden;
}
