/* CAPTCHA Styling */
.captcha-image-container {
    position: relative;
    display: inline-block;
}

.captcha-image {
    width: 200px;
    height: 60px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.captcha-image:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

#refreshCaptcha {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

#refreshCaptcha:hover {
    background-color: #e9ecef;
    border-color: #6c757d;
}

#refreshCaptcha i {
    font-size: 1.2rem;
}

/* CAPTCHA input field styling */
#captcha {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

#captcha:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* CAPTCHA loading state */
.captcha-image.loading {
    opacity: 0.6;
    filter: grayscale(50%);
}

/* CAPTCHA error state */
.captcha-image.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
}

/* Responsive design */
@media (max-width: 768px) {
    .captcha-image {
        width: 150px;
        height: 45px;
    }
    
    #refreshCaptcha {
        height: 45px;
        min-width: 45px;
    }
    
    .d-flex.align-items-center.gap-2 {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .captcha-image-container {
        text-align: center;
        margin-bottom: 10px;
    }
}
