The first thing to do is to get an appointment at the relevant immigration office.
During your appointment, you will go through an interview to find out why you are applying for international protection.
After that interview, you will be issued a white card. This piece of paper contains your details, the application for international protection, and the fact that your application is in the process of being accepted.
From that moment onwards, the administration has a maximum of 1 month to decide whether or not to admit your application.
Once your application has been approved, you will be given the red card. This signals the start of the process by which the administration analyzes whether to grant you international protection or not.
In other words, the fact that you are accepted for processing does not mean that you will be granted asylum.
It means that your application for international protection will be considered, and during this period of study, you will be allowed to reside in Spain with the red card.