/* ============================================
   UNIFIED CAPTCHA STYLES
   Single source of truth for all captcha styling
   Used across all registration and login pages
   ============================================ */

/* Base Captcha Box Container */
.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 30px;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
}

/* Captcha Image Styling */
.captcha-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Captcha Display Wrapper (in input-group context) */
.captcha-display {
    padding: 0 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.captcha-display img {
    width: auto;
    border-radius: 0.375rem;
    min-height: 36px;
}

/* Login page specific captcha display */
.captcha-display-login {
    padding: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.captcha-display-login img {
    width: auto;
    border-radius: 0.375rem;
}

/* Captcha Input Label */
label[for="captcha"] {
    font-weight: 600;
}

/* Responsive: Stack on mobile */
@media (max-width: 576px) {
    .captcha-box {
        min-width: 140px;
        height: 44px;
        padding: 0.25rem 0.5rem;
    }

    .captcha-display img {
        height: 42px;
    }
}

/* Dark mode support (if your app has dark mode) */
@media (prefers-color-scheme: dark) {
    .captcha-box {
        background: #1f2937;
        border-color: #374151;
    }

    .captcha-display {
        background: #1f2937;
    }
}
