/* ==========================================================================
   Captcha — verificación humana + honeypot (login Campus Virtual)
   ========================================================================== */

.captcha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-bg-muted);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.captcha.is-error {
  border-color: var(--color-error);
}

.captcha__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.captcha__icon svg {
  width: 20px;
  height: 20px;
}

.captcha__body {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  flex: 1;
}

.captcha__label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.captcha__question {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.captcha__input {
  width: 56px;
  border: 1.5px solid var(--color-bg-muted);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: var(--fs-sm);
  text-align: center;
  background: var(--color-white);
}

.captcha__input:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

.captcha.is-error .captcha__input {
  border-color: var(--color-error);
}

.captcha__refresh {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  transition: background var(--transition-fast);
}

.captcha__refresh:hover {
  background: var(--color-bg-muted);
}

.captcha__refresh svg {
  width: 16px;
  height: 16px;
}

.captcha__error-text {
  display: none;
  width: 100%;
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.captcha.is-error .captcha__error-text {
  display: block;
}

/* Honeypot — trampa invisible para bots, no ocultar con display:none */
.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
