Sounds like maybe the Headlight relay? It's under the tank on the frame spine. Check the single wire (neutral sensor switch?) that goes under the transmission right behind the oil filter, if that comes unplugged the bike goes dead too.