The hardest part about remote work is that your brain doesn't get the environmental cues that normally signal bedtime - no commute wind-down, no leaving the office building, nothing. So you need to create artificial anchors instead. Set a hard stop time for work, like 5pm, and actually close your laptop and move it out of your bedroom if possible. Then do something specific that signals "day is over" - change clothes, take a walk, make dinner - something that takes at least 20-30 minutes and gets you away from screens. The scrolling until 2am thing is probably the bigger culprit than the actual work schedule, so that's where you'd get the most benefit by forcing yourself offline maybe an hour before bed.
For the actual sleep timing, aim for the same bedtime within a window of maybe 30 minutes, seven nights a week. It sounds rigid but it genuinely works - your body gets into a rhythm and actually starts getting tired at that time. Don't try to "catch up" with a 10-hour sleep session; if you mess up one night, just go to bed at your normal time the next night and push through. Studies suggest most people stabilize their sleep within 2-3 weeks of consistent timing, so you're looking at a pretty short adjustment period if you commit to it. The tricky part is the first week when you might feel genuinely exhausted, but that passes.
One thing that helps: make your bedroom cooler and darker, around 65-68°F if you can manage it. Skip the caffeine after 2pm. And if you find yourself still scrolling at night, put your phone across the room so it's inconvenient enough that you actually have to make the choice to get up and grab it. Most people will just not bother if there's friction between them and the behavior.