Thanks for the query.
Cortical thinning may indicate long standing renal damage. It is unlikely to be related to a single episode of bladder infection.
You need to do blood tests like serum creatinine
and urea and see a nephrologist
who will guide further management
Hope this helps.