/* BreachBoard CustomCaptcha — dark cyber-noir */

.bb-captcha {
  background: #0d121d;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bb-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.bb-captcha-visual {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  max-width: 48%;
}

.bb-captcha-image {
  width: 100%;
  min-height: 64px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0c1017;
  border: 1px solid #1e293b;
  line-height: 0;
}

.bb-captcha-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.bb-captcha-reload {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: rgba(13, 18, 29, 0.92);
  color: #67e8f9;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bb-captcha-reload:hover:not(:disabled) {
  border-color: #22d3ee;
  color: #a5f3fc;
}

.bb-captcha-reload:disabled {
  opacity: 0.5;
  cursor: wait;
}

.bb-captcha-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.bb-captcha-input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bb-captcha-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.bb-captcha-status--ready {
  color: #67e8f9;
}

.bb-captcha-status--loading {
  color: #94a3b8;
}

.bb-captcha-status--error {
  color: #f87171;
}

/* Keep legacy mount class usable */
.turnstile-mount.bb-captcha,
.captcha-mount {
  margin-top: 0.25rem;
}

@media (max-width: 520px) {
  .bb-captcha-row {
    flex-direction: column;
  }
  .bb-captcha-visual {
    width: 100%;
    max-width: none;
  }
}
