I can easily work 8am until midnight if I have to, but I don't do design all day long, I manage a small business, I tender, I write contracts etc.
If you're pure design I'd suggest you force yourself to take a mid-morning and mid-afternoon break of 15-20 minutes with a drink, stand outside and refresh your gills, if its raining get under an umbrella - I find rain oddly stimulating and therapeutic, for some people it makes them want to pee.
Speaking from experience you need to try to avoid working past midnight, it's better to get up early and keep a disciplined routine than to burn the midnight oil and sleep in the following day.
If you're really struggling to focus it's probably fatigue so change your scenery, take a break, go for a walk, visit a friend or family, but avoid staring at screens.
The reason I say this is as per my above post, I work hard and I work long hours. From experience I've found people need to avoid working past midnight as it's detrimental to their performance.