JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="form-wrapper">
<form action="" method="post" role="login">
<div class="input-group">
<span class="input-group-addon glyphicon glyphicon-user"></span>
<input type="email" class="form-control" placeholder="Please enter your email" required="required" autofocus="autofocus">
</div>
<div class="input-group">
<span class="input-group-addon glyphicon glyphicon-lock"></span>
<input type="password" class="form-control" placeholder="Password" required="required">
</div>
<div class="input-group">
<span class="input-group-addon glyphicon glyphicon-lock"></span>
<input type="password" class="form-control" placeholder="Password" required="required">
</div>
<button type="submit">Submit</button>
</form>
</div>
</div>
CSS
@font-face {
font-family: 'Glyphicons Halflings';
src: url('glyphicons-halflings-regular.ttf') format('truetype'); /* Safari, Android, iOS */
}
button:hover {
cursor: pointer;
}
body {
font-family: "Arial",Helvetica, sans-serif !important;
font-size: 15px !important;
background: url(https://raw.githubusercontent.com/dgrigorov/SoftUni/master/Web%20Fundamentals/Practice%20exam/3.Login-Search-Form/img/blurred-green-background.jpg) no-repeat;
background-size: cover;
}
.glyphicon {
position: relative;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.glyphicon-user:before {
content: "\e008";
font-family: 'Glyphicons Halflings';
}
.glyphicon-lock:before {
content: "\e033";
}
.glyphicon-search:before {
content: "\e003";
padding-right: 13px;
}
.container {
width: 960px;
margin: 0 auto;
}
.form-wrapper,
footer {
width: 340px;
height: 265px;
margin: 0 auto;
}
header {
background-color: #93d55c;
color: #fff;
text-align: center;
border-top-left-radius: 5px;
border-top-right-radius: 5px
}
header h2 {
margin: 0;
padding: 20px 0;
}
form[role="login"] {
padding: 20px;
background-color: #f1f8f2;
}
form input {
border: 1px solid #ccc;
padding: 10px;
width: 92%;
height: 25px;
outline: 0;
}
form[role="login"] input {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
form[role="search"] input {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
margin-right: 65px;
}
form[role="login"] button[type="submit"] {
padding: 15px;
margin-top: 30px;
border-radius: 4px;
border: 0;
color: #fff;
background-color: #5cb85c;
text-align: center;
width: 100%;
box-shadow: 0px 4px 1px #229e22;
}
.input-group {
position: relative;
display: table;
border-collapse: separate;
margin-bottom: 10px;
}
.input-group-addon:first-child {
border-right:...