/* Auth graphic captcha — aligned with Youtem readable captcha row */
.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;
}
.auth-captcha-row .captcha-input-group .form-control {
  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: #2563eb;
  background: rgba(37, 99, 235, 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;
  transition: opacity 0.15s ease;
}
.captcha-inline-preview-img:not([src]),
.captcha-inline-preview-img[src=""] {
  display: none;
}
