<html>
<head>
<title>Loginbox</title>
<link rel="stylesheet" type="text/css" href="login.css">
</head>
<body >
<div id="loginbox">
<form id="login">
<h1>Log In</h1>
<fieldset id="inputs">
<input id="username" type="text" placeholder="Username" autofocus required>
<input id="password" type="password" placeholder="Password" required>
</fieldset>
<fieldset id="actions">
<input type="submit" id="submit" class="orange" value="Log in">
<p class="reg">
<a href="">Register</a>
<a class="forget" href="">Forgot your password?</a>
</p>
</fieldset>
</form>
</div>
</body>
</html>
Create Login.css
#loginbox{
margin-left:auto;
margin-right:auto;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#login
{
box-shadow:
0 0 2px rgba(0, 0, 0, 0.2),
0 0px 1px rgba(0, 0, 0, .2),
0 0px 0 #fff,
0 0px 0 rgba(0, 0, 0, .2),
0 0px 0 #fff,
0 0px 0 rgba(0, 0, 0, .2);
border:solid #006 5px;
border-style:ridge;
}
#login
{
position:relative;
z-index: 0;
width:450px;
height:280px;
text-align:center;
margin-left:auto;
margin-right:auto;
}
#inputs{
border:none;
}
#inputs input {
width:400px;
height:45px;
border: 2px solid #dadada;
border-radius: 7px;
background-color:#F8F8F8;
}
#inputs input:focus {
outline: none;
border-color: #9ecaed;
box-shadow: 0 0 10px #9ecaed;
background-color:#FFF;
}
#username{
padding-left:35px;
background:url(Places-user-identity-icon.png) left no-repeat;
}
#password{
margin:15px 0px 0px 0px;
padding-left:35px;
background:url(blue_key.png) left no-repeat;
}
#actions{
border:none;
margin-left:0px;
}
#submit{
width:130px;
height:40px;
margin-left:-30px;
margin-top:20px;
}
.orange {
color: #fef4e9;
border: solid 1px #da7c0c;
background: #f78d1d;
background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
background: -moz-linear-gradient(top, #faa51a, #f47a20);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#faa51a', endColorstr='#f47a20');
border-radius: 5px;
}
.orange:hover {
background: #f47c20;
background: -webkit-gradient(linear, left top, left bottom, from(#f88e11), to(#f06015));
background: -moz-linear-gradient(top, #f88e11, #f06015);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f88e11', endColorstr='#f06015');
}
.orange:active {
color: #fcd3a5;
background: -webkit-gradient(linear, left top, left bottom, from(#f47a20), to(#faa51a));
background: -moz-linear-gradient(top, #f47a20, #faa51a);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f47a20', endColorstr='#faa51a');
}
.reg{
float:right;
text-decoration:none;
margin-top:30px;
margin-right:20px;
text-decoration:none;
}
#login:before
{
content: '';
position: absolute;
z-index: -1;
border: 1px dashed #ccc;
top: 5px;
bottom: 5px;
left: 5px;
right: 5px;
-moz-box-shadow: 0 0 0 1px #fff;
-webkit-box-shadow: 0 0 0 1px #fff;
box-shadow: 0 0 0 1px #fff;
}
h1
{
text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0px 2px 0 rgba(0, 0, 0, .5);
text-transform: uppercase;
text-align: center;
color: #666;
margin: 15px 0 30px 0;
letter-spacing: 4px;
font: normal 26px/1 Verdana, Helvetica;
position: relative;
}
h1:after, h1:before
{
background-color: #777;
content: "";
height: 1px;
position: absolute;
top: 15px;
width: 120px;
}
h1:after
{
background-image: -webkit-gradient(linear, left top, right top, from(#777), to(#fff));
background-image: -webkit-linear-gradient(left, #777, #fff);
background-image: -moz-linear-gradient(left, #777, #fff);
background-image: -ms-linear-gradient(left, #777, #fff);
background-image: -o-linear-gradient(left, #777, #fff);
background-image: linear-gradient(left, #777, #fff);
right: 0;
}
h1:before
{
background-image: -webkit-gradient(linear, right top, left top, from(#777), to(#fff));
background-image: -webkit-linear-gradient(right, #777, #fff);
background-image: -moz-linear-gradient(right, #777, #fff);
background-image: -ms-linear-gradient(right, #777, #fff);
background-image: -o-linear-gradient(right, #777, #fff);
background-image: linear-gradient(right, #777, #fff);
left: 0;
}
copy the images in the login.html folder