/* CAPTCHA Container Styling - Dark Theme */
.captcha-container {
    margin-bottom: 25px;
}

/* Force consistent styling across all pages */
.input-group .captcha-wrapper {
    margin-bottom: 8px !important;
}

.captcha-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    padding: 12px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.captcha-wrapper:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(245, 245, 220, 0.3) !important;
}

.captcha-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.captcha-image:hover {
    border-color: #f5f5dc;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* CAPTCHA Input Field - Matching Login Style */
.captcha-input {
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.captcha-input:focus {
    outline: none;
    border-color: #f5f5dc;
    box-shadow: 0 0 0 3px rgba(245, 245, 220, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: none;
    font-family: 'Arial', sans-serif;
    font-weight: normal;
}

/* Label styling to match */
.captcha-container label {
    display: block;
    margin-bottom: 8px;
    color: #f5f5dc;
    font-weight: 500;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .captcha-wrapper {
        padding: 10px;
    }
    
    .captcha-input {
        padding: 12px;
        font-size: 14px;
        letter-spacing: 2px;
    }
}

/* Error state styling */
.captcha-container.error .captcha-input {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(220, 53, 69, 0.1);
}

.captcha-container.error .captcha-wrapper {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.05);
}