/**
 * Состояния блока капчи в формах входа/регистрации.
 * Скелетон и сообщение об ошибке — соседний блок .auth-captcha-status,
 * модификаторы состояния висят на самом контейнере .cf-turnstile.
 */

.cf-turnstile.is-loading,
.cf-turnstile.is-error {
    min-height: 0;
}

/* Держим высоту виджета (454x118), чтобы модалка не прыгала при загрузке. */
.auth-captcha-status {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 118px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #f7f9fb;
    text-align: center;
}

.auth-captcha-status__text {
    font-size: 13px;
    line-height: 1.35;
    color: #6b7684;
}

.auth-captcha-status--error .auth-captcha-status__text {
    color: #3e4856;
}

.auth-captcha-status__spinner {
    display: block;
    width: 26px;
    height: 26px;
    border: 2px solid #d7dee7;
    border-top-color: #00b3c7;
    border-radius: 50%;
    animation: authCaptchaSpin 0.9s linear infinite;
}

.auth-captcha-status__retry {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #00b3c7;
    border-radius: 5px;
    background: #fff;
    color: #00b3c7;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.auth-captcha-status__retry:hover {
    background: #00b3c7;
    color: #fff;
}

@keyframes authCaptchaSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-captcha-status__spinner {
        animation-duration: 3s;
    }
}
