/* ALTCHA CAPTCHA 1.1.2 – package-owned, self-hosted verification UI. */
.altcha-captcha {
    --altcha-captcha-bg: var(--bs-body-bg, #fff);
    --altcha-captcha-text: var(--bs-body-color, #212529);
    --altcha-captcha-border: var(--bs-border-color, #dee2e6);
    --altcha-captcha-primary: var(--bs-primary, #0d6efd);
    --altcha-captcha-danger: var(--bs-danger, #dc3545);
    --altcha-captcha-success: var(--bs-success, #198754);
}

.altcha-captcha-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.altcha-captcha-status {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: .7rem;
    max-width: min(22rem, calc(100vw - 2rem));
    min-height: 3.25rem;
    padding: .8rem 1rem;
    border: 1px solid var(--altcha-captcha-border);
    border-radius: .75rem;
    background: var(--altcha-captcha-bg);
    color: var(--altcha-captcha-text);
    box-shadow:
        0 .75rem 1.75rem rgba(0, 0, 0, .12),
        0 .125rem .375rem rgba(0, 0, 0, .08);
    font-size: .925rem;
    font-weight: 500;
    line-height: 1.35;
    animation: altcha-captcha-enter 140ms ease-out both;
}

.altcha-captcha-status[hidden] {
    display: none !important;
}

.altcha-captcha-indicator {
    position: relative;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid rgba(13, 110, 253, .2);
    border: 2px solid color-mix(in srgb, var(--altcha-captcha-primary) 25%, transparent);
    border-top-color: var(--altcha-captcha-primary);
    border-radius: 50%;
    animation: altcha-captcha-spin .75s linear infinite;
}

.altcha-captcha[data-state="verified"] .altcha-captcha-status {
    border-color: var(--bs-success-border-subtle, #a3cfbb);
    background: var(--bs-success-bg-subtle, var(--altcha-captcha-bg));
}

.altcha-captcha[data-state="verified"] .altcha-captcha-indicator {
    border: 0;
    animation: none;
}

.altcha-captcha[data-state="verified"] .altcha-captcha-indicator::before {
    content: "";
    position: absolute;
    left: .24rem;
    top: .05rem;
    width: .55rem;
    height: .95rem;
    border-right: 2px solid var(--altcha-captcha-success);
    border-bottom: 2px solid var(--altcha-captcha-success);
    transform: rotate(45deg);
}

.altcha-captcha[data-state="error"] .altcha-captcha-status {
    border-color: var(--bs-danger-border-subtle, #f1aeb5);
    background: var(--bs-danger-bg-subtle, var(--altcha-captcha-bg));
}

.altcha-captcha[data-state="error"] .altcha-captcha-indicator {
    border: 0;
    animation: none;
}

.altcha-captcha[data-state="error"] .altcha-captcha-indicator::before,
.altcha-captcha[data-state="error"] .altcha-captcha-indicator::after {
    content: "";
    position: absolute;
    left: .62rem;
    top: .12rem;
    width: 2px;
    height: 1.1rem;
    background: var(--altcha-captcha-danger);
}

.altcha-captcha[data-state="error"] .altcha-captcha-indicator::before {
    transform: rotate(45deg);
}

.altcha-captcha[data-state="error"] .altcha-captcha-indicator::after {
    transform: rotate(-45deg);
}

@keyframes altcha-captcha-spin {
    to { transform: rotate(360deg); }
}

@keyframes altcha-captcha-enter {
    from {
        opacity: 0;
        transform: translateY(.25rem) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 575.98px) {
    .altcha-captcha-status {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .altcha-captcha-status,
    .altcha-captcha-indicator {
        animation: none;
    }
}


