@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ubuntu-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/ubuntu-medium.woff2') format('woff2');
}

.sis-captcha {
    --sis-captcha-bg: #fff;
    --sis-captcha-border: #d0d0d0;
    --sis-captcha-text: #333;
    --sis-captcha-muted: #999;
    --sis-captcha-success: #00a67e;
    --sis-captcha-error: #dc3545;
    --sis-captcha-accent: #4a90d9;

    display: inline-flex;
    flex-direction: column;
    border: 1px solid var(--sis-captcha-border);
    border-radius: 8px;
    background: var(--sis-captcha-bg);
    color: var(--sis-captcha-text);
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.9rem;
    user-select: none;
    min-width: 280px;
    overflow: hidden;
}

.sis-captcha--invisible {
    display: none;
}

.sis-captcha__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.sis-captcha__footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-top: 1px solid var(--sis-captcha-border);
    font-size: 0.7rem;
    color: var(--sis-captcha-text);
    opacity: 0.6;
    letter-spacing: 0.02em;
}

.sis-captcha__shield {
    width: 10px;
    height: 12px;
    flex-shrink: 0;
}

.sis-captcha__checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid var(--sis-captcha-border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.sis-captcha__checkbox:focus-visible {
    outline: 2px solid var(--sis-captcha-accent);
    outline-offset: 2px;
}

.sis-captcha__checkbox--verified {
    border-color: var(--sis-captcha-success);
    background: var(--sis-captcha-success);
}

.sis-captcha__checkbox--failed {
    border-color: var(--sis-captcha-error);
}

.sis-captcha__checkmark {
    display: none;
    width: 14px;
    height: 14px;
}

.sis-captcha__checkbox--verified .sis-captcha__checkmark {
    display: block;
}

.sis-captcha__loader {
    display: none;
    align-items: center;
    gap: 4px;
    width: 24px;
    height: 24px;
    justify-content: center;
    flex-shrink: 0;
}

.sis-captcha__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sis-captcha-accent);
    animation: sis-captcha-bounce 1.4s ease-in-out infinite;
}

.sis-captcha__dot:nth-child(2) {
    animation-delay: 0.16s;
}

.sis-captcha__dot:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes sis-captcha-bounce {
    0%, 80%, 100% {
        transform: scale(0.4);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.sis-captcha--solving .sis-captcha__loader {
    display: flex;
}

.sis-captcha--solving .sis-captcha__checkbox {
    display: none;
}

.sis-captcha__label {
    flex: 1;
}

.sis-captcha__retry {
    display: none;
    background: none;
    border: 1px solid var(--sis-captcha-border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--sis-captcha-text);
}

.sis-captcha--failed .sis-captcha__retry {
    display: inline-block;
}

.sis-captcha__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .sis-captcha {
        --sis-captcha-bg: #1e1e1e;
        --sis-captcha-border: #444;
        --sis-captcha-text: #e0e0e0;
        --sis-captcha-muted: #777;
    }
}
