Using the generic header login HTML as a starting point, I created a header login widget. This can be used in themes that have a header widget area where the sidebar widget might not fit well.
Consider this a framework to start from. The code for the form as well as the CSS for styling for form can be customized to fit your theme’s needs. I’ve added lots of comments in the code snippets so you can follow how it is being done.