Xperia SP boot loop into flash mode
To solve this boot loop issue, start by flashing this kernel via FlashTool, switching your phone into fastboot mode. The best is to follow the original guide I guess. 

Then, you can follow this tutorial to install a custom .zip file ROM again, allowing your phone to boot again. You might need to upload the .zip file directly onto your SD card.

I hope this helps.