/**
 * Estilos para o componente CAPTCHA
 */

.captcha-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
}

.captcha-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.captcha-label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.captcha-canvas {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-canvas:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.captcha-refresh {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.captcha-refresh:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.captcha-refresh:active {
    transform: translateY(0);
}

.captcha-refresh i {
    font-size: 16px;
}

.captcha-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-weight: 600;
}

.captcha-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.captcha-input.is-valid {
    border-color: #28a745;
    background: #f0fff4;
}

.captcha-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.captcha-feedback {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.captcha-feedback.text-success {
    color: #28a745;
}

.captcha-feedback.text-danger {
    color: #dc3545;
}

.captcha-help {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Responsivo */
@media (max-width: 480px) {
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-refresh {
        width: 100%;
        justify-content: center;
    }

    .captcha-canvas {
        width: 100%;
        height: auto;
    }
}

