I’m in a similar situation but instead of training a dog, I’m getting a graduate degree in my “spare” time! I board my horse and commute further than most people between work, home, and barn. I am not a morning person (AT ALL) so doing anything other than getting up and out the door to work with coffee is not an option. I go to bed a little later (around 10:30) but otherwise have a very similar schedule. I could go to bed earlier if I didn’t have a lot of commuting to account for!
I try to balance my week so I have heavier days and lighter days alternating if possible. I ride 4 days a week (two weeknight evenings, usually Tuesday and Thursday, and both weekend days) - on weeknights I don’t fuss with extensive grooming, tack cleaning, chatting to friends, etc. I pick feet, brush the saddle area, tack up, ride, untack, and go home. I can usually do that in 1.5 hours if I ride for 30-45 minutes (focused training rides). I’m home by 8:00 to 8:30pm and I have a quick dinner, unwind with my dogs, and head to bed. On weekends, I spend longer at the barn - socializing, cleaning tack, more thorough grooming, making feeds, etc.
The other 3 weekday evenings I can do other things (like study, work on a crafting project, or, in your case, train the dog) at home as well as run errands on the way home if needed. I eat dinner a little earlier but I make sure to start whatever the other thing is as close to getting home as possible, otherwise I get sucked into inertia if I sit down and start scrolling online while watching TV.
It’s definitely doable, but being efficient with time at home and the barn is important and finding balance so you don’t burnout is critical.