I'm not sure what Timezone you are playing from, but Server Maintenance occurs each morning around 4 to 6 am. It doesn't take too long, but you won't be able to log on during those times.
If you were to be playing, before maintenance time, a system message will appear in your lower left of the screen letting you know it's time to log out in a safe place, as the servers will be going down soon.