JSFiddle - React, Tailwind, and code Playground
by Kirubel Girma
HTML
<div id="holder">
<h1>Welcome to BindexT<span>Authentication Required</span></h1>
<form>
<p>
<label for="username">Your login</label>
<input type="text" value="" placeholder="Enter Username" id="username">
</p>
<p>
<label for="password">Your password</label>
<input type="password" value="" placeholder="Enter Password" id="password" class="password">
<input class="button" type="button" value="Ok">
</p>
</form>
</div>
CSS
*{outline: none; margin:0em;}
body {
background-color: #f6f6f6;
font-family: "Open Sans", Arial, Helvetica;
margin-top: 50px;
font-size: 14px;
}
div {
width: 400px;
margin: 0 auto;
text-align: center;
}
h1 {
margin-bottom: 1.5em;
font-size: 30px;
color: #00BCD4;
font-weight: 100;
}
h1 span {
display:block;
font-size: 14px;
color: #989598;
}
form p { position: relative; }
label {
position: absolute;
left:-9999px;
text-indent: -9999px;
}
input {
width: 250px;
padding: 15px 12px;
margin-bottom: 5px;
border: 1px solid #e5e5e5;
border-bottom: 2px solid #ddd;
background: #f2f2f2;
color: #555;
}
#holder {max-width:20em;}
.button:hover{background: #e3e3e3;}
.button{padding:.2em;width:6em; height:3em; margin-top:1em;background: #f4f4f4;}
.password + .unmask {
position: absolute;
right: 74px;
top: 12px;
text-indent: -9999px;
width: 25px;
height: 25px;
background: #aaa;
border-radius: 50%;
cursor:pointer;
border: none;
-webkit-appearance:none;
}
.password + .unmask:before {
content: "";
position:absolute;
top:4px; left:4px;
width: 17px;
height: 17px;
background: #e3e3e3;
z-index:1;
border-radius: 50%;
}
.password[type="text"] + .unmask:after {
content: "";
position:absolute;
top:6px; left:6px;
width: 13px;
height: 13px;
background: #aaa;
z-index:2;
border-radius: 50%;
}