/* Captcha - Style Professionnel */
.captcha-container {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
}

.captcha-container.captcha-success {
    border-color: #4caf50;
    background: #f1f8f1;
}

.captcha-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #424242;
}

.captcha-icon {
    display: flex;
    align-items: center;
    color: #757575;
}

.captcha-success .captcha-icon {
    color: #4caf50;
}

.captcha-title {
    font-size: 14px;
    font-weight: 500;
    color: #424242;
}

.captcha-challenge {
    margin: 16px 0;
}

/* Math display */
.captcha-math {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #212121;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.captcha-number {
    min-width: 36px;
    text-align: center;
}

.captcha-operator {
    color: #757575;
}

.captcha-equals {
    color: #757575;
}

.captcha-answer {
    min-width: 36px;
    text-align: center;
    color: #9e9e9e;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Input area */
.captcha-input-area {
    display: flex;
    gap: 8px;
    margin: 16px 0 12px;
}

.captcha-input-area input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #212121;
    transition: border-color 0.2s;
}

.captcha-input-area input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.captcha-input-area input:disabled {
    background: #f5f5f5;
    color: #9e9e9e;
    cursor: not-allowed;
}

.captcha-btn {
    padding: 10px 20px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.captcha-btn:hover:not(:disabled) {
    background: #1565c0;
}

.captcha-btn:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

/* Feedback */
.captcha-feedback {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    margin-bottom: 12px;
}

.captcha-feedback.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.captcha-feedback.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Refresh button */
.captcha-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #757575;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-refresh-btn:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: #424242;
}

.captcha-refresh-btn svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .captcha-container {
        padding: 12px;
    }

    .captcha-math {
        font-size: 20px;
        gap: 8px;
        padding: 10px;
    }

    .captcha-input-area {
        flex-direction: column;
    }

    .captcha-btn {
        width: 100%;
    }
}
