/* services/captcha/static/captcha.css */

/* ── Fallback Captcha Container ── */
.simple-captcha-fallback {
    margin-top: 8px;
}

.simple-captcha-fallback .captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.simple-captcha-fallback .captcha-img-wrap {
    flex-shrink: 0;
}

.simple-captcha-fallback .captcha-img {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    height: 60px;
}

.simple-captcha-fallback .captcha-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 3px;
    text-align: center;
    font-weight: 600;
    direction: ltr;
}

.simple-captcha-fallback .captcha-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.simple-captcha-fallback .captcha-refresh-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.simple-captcha-fallback .captcha-refresh-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.simple-captcha-fallback .captcha-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Primary Simple Captcha (when provider is simple_captcha) ── */
.simple-captcha-wrapper .captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.simple-captcha-wrapper .captcha-img {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    height: 60px;
}

.simple-captcha-wrapper .captcha-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 3px;
    text-align: center;
    font-weight: 600;
    direction: ltr;
}

.simple-captcha-wrapper .captcha-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.simple-captcha-wrapper .captcha-refresh-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.simple-captcha-wrapper .captcha-refresh-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.simple-captcha-wrapper .captcha-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .simple-captcha-fallback .captcha-box,
    .simple-captcha-wrapper .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .simple-captcha-fallback .captcha-input,
    .simple-captcha-wrapper .captcha-input {
        width: 100%;
    }
}
