/* Internal captcha row — login + legacy auth pages */
.login-captcha .login-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
}

.login-captcha .login-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.login-captcha .login-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.login-captcha__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.login-captcha__img-wrap {
  flex-shrink: 0;
  margin: 0;
  line-height: 0;
}

.login-captcha__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  background: #fff;
  object-fit: contain;
}

.login-captcha__input {
  flex: 1 1 auto;
  min-width: 0;
}

.login-captcha__refresh {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-captcha__refresh:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.login-captcha__hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.login-captcha__unavailable {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 0.75rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .login-captcha__row {
    gap: 6px;
  }

  .login-captcha__img {
    max-width: 120px;
    height: 40px;
  }

  .login-captcha__refresh {
    width: 40px;
    height: 40px;
  }
}
