/* reCAPTCHA Styling */
.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.g-recaptcha > div {
    margin: 0 auto !important;
}

/* reCAPTCHA v3 Badge - Dark Theme */
.grecaptcha-badge {
    filter: invert(1) hue-rotate(180deg) !important;
    opacity: 0.8 !important;
}

/* Responsive reCAPTCHA */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .grecaptcha-badge {
        transform: scale(0.9) !important;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
        transform-origin: center;
    }
    
    .grecaptcha-badge {
        transform: scale(0.8) !important;
    }
}

/* Dark theme support for reCAPTCHA container */
.recaptcha-container {
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--surface-border, #e5e7eb);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Error styling for reCAPTCHA */
.recaptcha-error {
    color: var(--red-500, #ef4444);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}
