How to Make Google Login Form using HTML5 CSS3 and JS – Harshad Chopra

How to Make Google Login Form using HTML5 CSS3 and JS – Harshad Chopra

In this post I will be making Google Like Login Form using HTML5 CSS3 and JS. All the source code of this application is given below with screenshots. Just understand the full code and also extend it by your own creativity.

Source Code


<div class="form">
  <img src=""> 
<input type="email" name="email" placeholder="Email" />
  <input type="password" name="Password" placeholder="Password" />

  <button>Sign in</button>

   <a href="">Create account</a>



* {
  box-sizing: border-box;

body {
  background-color: #eeeeee;

img {
  display: block;
  width: 80px;
  margin: 30px auto;
  box-shadow: 0 5px 10px -7px #333333;
  border-radius: 50%;

.form {
  background-color: #ffffff;
  width: 500px;
  margin: 50px auto 10px auto;
  padding: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px -3px #333;
  text-align: center;

input {
  border-radius: 100px;
  padding: 10px 15px;
  width: 50%;
  border: 1px solid #D9D9D9;
  outline: none;
  display: block;
  margin: 20px auto 20px auto;

button {
  border-radius: 100px;
  border: none;
  background: #719BE6;
  width: 50%;
  padding: 10px;
  color: #FFFFFF;
  margin-top: 25px;
  box-shadow: 0 2px 10px -3px #719BE6;
  display: block;
  margin: 55px auto 10px auto;

a {
  text-align: center;
  margin-top: 30px;
  color: #719BE6;
  text-decoration: none;
  padding: 5px;
  display: inline-block;

a:hover {
  text-decoration: underline;


$(document).ready(function() {

$("#CMSub").click(function() {
  $("#CMSub").html('Submit   <i class="fa fa-refresh fa-spin"></i> ');
  $('#CMSub').prop('disabled', true);
  $('#UN').prop('disabled', true);
  $('#CME').prop('disabled', true);
  $('#CMC').prop('disabled', true);

function countChar(val) {
  var len = val.value.length;
  $('#charNum').text(0 + len);
  if (len >= 300) {
  } else {

Leave a Reply

Close Menu