Firstly, congratulations!!!!!
Registration should not be a problem but they will request your passport which will be recorded on the babies birth certificate and DNI. Also, the civil registry is not immigration so you won't have immigration officials waiting to arrest and deport you. If they do...