/* Estilos para o sistema de login e autenticação */

/* Formulários de login e cadastro */
.login-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Mensagens de erro de autenticação */
.auth-error {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    color: #D32F2F;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

/* Mensagens de sucesso de autenticação */
.auth-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    color: #388E3C;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

/* Animação de carregamento durante autenticação */
.auth-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.auth-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #6e45e2;
    animation: spin 1s linear infinite;
}

/* Estilos para o perfil do usuário */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #6e45e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 20px;
}

.profile-info h3 {
    margin: 0 0 5px 0;
}

.profile-info p {
    margin: 0;
    color: #666;
}

/* Histórico de jogos */
.historico-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historico-info {
    flex: 1;
}

.historico-data {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.historico-detalhes {
    font-weight: 500;
}

.historico-valor {
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 10px;
}

.historico-valor.positivo {
    color: #4CAF50;
}

.historico-valor.negativo {
    color: #F44336;
}

/* Responsividade */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .historico-item {
        flex-direction: column;
    }
    
    .historico-valor {
        margin-top: 10px;
    }
}

/* Animações */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
