Brazil's far-right President Jair Bolsonaro has criticised the country's Supreme Court's decision to criminalise homophobia, saying it could "hurt" gays by deterring companies from hiring them.

Mr Bolsonaro, who has a history of homophobic remarks, also said the court was "completely wrong" because it had stepped into legislative territory.

On Thursday, the Supreme Court voted eight to three in favour of classifying crimes against gay and transgender people as similar to racism, until Congress passes a law specifically addressing such discrimination.

Congress is held by a conservative majority and is strongly influenced by evangelical churches.

Brazil, which has one of the world's highest rates of violence against sexual minorities, now joins a growing number of countries in the typically conservative and Catholic-influenced Latin American region that have passed measures in favour of LGBT rights.

Speaking to reporters yesterday, Mr Bolsonaro said employers would "think twice" before hiring a gay person for fear they could be accused of homophobia.

Mr Bolsonaro also raised again the possibility of nominating an evangelical judge to the country's highest court to help "balance" the bench.

The three judges that voted against the measure agreed with Jair Bolsonaro on his point that criminalising homophobia was Congress's job, not the court's.

"Only Congress can approve (the definition of) crimes and penalties; only Congress can pass laws on criminal conduct," said judge Ricardo Lewandowski.

According to the NGO Grupo Gay de Bahia, which has collected national statistics for the past four decades, there were 387 murders and 58 suicides over "homotransphobia" in 2017, a 30% increase from 2016.

This works out to one LGBT death by suicide or murder every 19 hours in Brazil.