/* Math CAPTCHA Styles */

.mathcaptcha-wrapper {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mathcaptcha-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.mathcaptcha-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
}

.mathcaptcha-question {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background-color: white;
    padding: 8px 12px;
    border-radius: 3px;
    color: #0056b3;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.mathcaptcha-input {
    font-size: 13px;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-family: Arial, sans-serif;
}

.mathcaptcha-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.mathcaptcha-input::placeholder {
    color: #999;
}

.mathcaptcha-help {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Error states */
.has-error .mathcaptcha-input {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.has-error .mathcaptcha-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Success states */
.has-success .mathcaptcha-input {
    border-color: #28a745;
}

.has-success .mathcaptcha-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive */
@media (max-width: 576px) {
    .mathcaptcha-wrapper {
        padding: 12px;
    }
    
    .mathcaptcha-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mathcaptcha-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .mathcaptcha-question {
        font-size: 14px;
    }
    
    .mathcaptcha-input {
        font-size: 13px;
    }
}
