Its obvious that the single elements have to use the same IDs and CLASSes. Makes sense.
Not so obvious: Please check the surrounding containers and you will find special IDs and CLASSes for each page context. There are different ones for the registration page AND the profile... and also for the edit profile page
Its just a question of CSS and your imagination