JSFiddle - React, Tailwind, and code Playground
HTML
<div id="login_box">
<form name="login_page" id="login_page" method="post">
<input type="text" name="username" placeholder="Username" autofocus required="required" />
<input type="password" name="password" placeholder="Password" required="required" />
<div id="login_page_checkbox">
<label class="checkbox">
<input type="checkbox" name="rememberme" value="1" /> Remember me
</label></div><br />
<input type="submit" name="login_submit" value="Log In" />
</form>
</div>
CSS
html {
width: 100%;
}
#login_page {
top: 0;
margin-top: 50px;
margin-left: 0;
margin-right: 20px;
position: static;
}
#login_box {
}
input[type="text"], input[type="password"] {
margin: 5px !important;
box-sizing:border-box;
display:block;
}
#login_page input[type="submit"] {
width: 97% !important;
margin: 5px;
}