Html css login template

Html css login template
     
  
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
form {    margin: auto;
    width: 510px;
    border: 1px solid #dee2e6!important;
    margin-top: 50px;
    background-color:#f6f6f6;
    border-radius: 5px;

}

input[type=text], input[type=password] {
  width: 450px;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-radius: 5px;
   font-family: serif;

}
button {
  background-color:#33b5e5;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 450px;
  border-radius: 5px;
  font-family: serif;
  font-size: 20px;
}

button:hover {
  opacity: 0.4;
  background-color: #33b5e5;

}
.container {
  padding: 28px;
  width: 500px;
  margin-top: -35px;
}

a:-webkit-any-link {
    color:#33b5e5;
     }

label {
    cursor: default;
    font-family: serif;
    font-size: 20px;
}
h2
{
  text-align: center;
  font-family: serif;
}
span.psw {
  float: right;
  padding-top: 2px;
  color: #33b5e5;
  margin-right: 48px;
  font-family:serif;


}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
     display: block;
     float: none;
     color: #33b5e5;
     
  }
  .cancelbtn {
     width: 100%;
  }
}
</style>
</head>
<body>
<div class="border">
<form action="">
  <h2>Sign in</h2>
  <div class="container">
       <label for="uname"><b>Username</b></label>
       <input type="text" placeholder="Enter Username" name="uname" required="">

       <label for="psw"><b>Password</b></label>
       <input type="password" placeholder="Enter Password" name="psw" required="">
        
       <button type="submit">Sign in</button><br>
       <label>
       <input type="checkbox"  name="remember"> Remember me
    </label>

<span class="psw" style="color: #33b5e5;">Forgot    <a href="#">password?</a></span>
</div>
</div>
</form>
</div>
</body>
</html>



Post a comment

0 Comments