Burn the midnight oil
estudaɾ atɛ aʊtæs ɔɾæz da noɪtʃy
In Portuguese Estudar até altas horas da noite
This idiom is a common way to express studying late into the night in Portuguese.
Example
"Tive que estudar até altas horas da noite para a prova."