/**
 * Estilos dos Botões - Sistema Financeiro
 * Arquivo específico para padronização dos botões
 */

/* Classe base para todos os botões */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #183e9f, #30a23f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 62, 159, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Variações de botões */
.btn-primary {
    background: linear-gradient(135deg, #183e9f, #30a23f);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #183e9f;
    border: 2px solid #183e9f;
}

.btn-success {
    background: linear-gradient(135deg, #30a23f, #28a745);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

/* Tamanhos de botões */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 20px 30px;
    font-size: 1.2rem;
}

/* Botões de largura específica */
.btn-full {
    width: 100%;
}

.btn-half {
    width: 48%;
}

.btn-auto {
    width: auto;
    padding: 15px 30px;
}

/* Estados de loading */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade dos botões */
@media (max-width: 768px) {
    .btn-login {
        padding: 12px;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .btn-login {
        padding: 10px;
        font-size: 0.95rem;
    }
}
