Okay...I am going to go one step further then SirPrizeMe and not only agree that your moral compass is telling you that you are off course it is screaming...
I am sorry but I can't say that flirting is good...harmless...or any of that...especially if you are reciprocating...it is one thing to receive compliments...quite another to flirt...
The danger that comes is the line everyone talks about crossing...that line moves!...that is how affairs "just happen"...if you play with fire you WILL get burned...
I am talking from a similar place...my H had become depressed and LD...yet he was the one to not only do the online thing but several years later he actually did have an affair and left me and the kids...he was gone for nearly 2 years...and now he is back...being treated for depression (finally) and we are working on a meaningful sex/love life which means compromise...
Anyway...I had started flirting...then felt attraction...fortunately my moral compass caught before I fell...
It is hard to have a depressed spouse...you can't make them go for help...but you can talk with their doctor and if they ever go in to see the doctor he can discuss it with them...that was finally how my H got help...he wouldn't believe me when I thought he was depressed but when the doctor was asking questions and he was honestly answering (all except one, because there was a time where he had suicidal thoughts)...the doctor got him to go on AD's on a trial basis...told him he might only need them a few months to get him through a rough patch...well he stopped the meds when he thought the rough patch was over and quickly realized that he needed the meds and now takes them regularly...
So I certainly have sympathy and compassion for how you are feeling...but you really need to dampen that at work EA...because if it isn't already an EA it will be soon...then the line is so much easier to move...you will read all over this board that people who had affairs were the last ones anyone would have expected...and some who had affairs felt just like you do...