/* Custom CAPTCHA Styling */
.captcha-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 15px;
}

.captcha-header i {
    font-size: 20px;
}

.captcha-challenge {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-question {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-question strong {
    color: #8b5cf6;
    font-size: 24px;
}

.captcha-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.captcha-refresh {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 92, 246, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: rotate(180deg);
}

.captcha-refresh i {
    font-size: 16px;
}

.captcha-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .captcha-container {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
        border-color: rgba(139, 92, 246, 0.4);
    }

    .captcha-question {
        background: rgba(31, 41, 55, 0.8);
        color: #f3f4f6;
    }

    .captcha-input {
        background: #1f2937;
        color: #f3f4f6;
        border-color: rgba(139, 92, 246, 0.4);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .captcha-question {
        font-size: 18px;
        padding: 12px;
    }

    .captcha-question strong {
        font-size: 22px;
    }

    .captcha-input {
        font-size: 16px;
        padding: 12px;
    }
}