<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />

<div class="login">
    <div class="container">
        <div id="login-logo">
            <div id="border">
                <i class="fa fa-lock"></i>
                <div id="shadow"></div>
            </div>
            <div id="elzero">Elzero Login</div>
        </div>
        <form autocomplete="off" method="POST" action="">
            <div id="user">
                <label for="userInput">Username</label>
                <input type="text" name="" id="userInput" required="" />
            </div>
            <div id="Pass">
                <label for="passInput">Password</label>
                <input type="password" name="" id="passInput" required="" />
            </div>
            <div id="remember">
                <input type="checkbox" name="" id="checkbox" />
                <label for="checkbox">Remember me</label>
                <span id="forgot">
                    <a href="#">Forgot Password?</a>
                </span>
            </div>
            <input type="submit" value="Login" />
        </form>
    </div>
</div>
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans');
body{padding: 0; margin: 0; background: #CCC;}
html{height: 100%; position: relative;}
*{padding: 0; margin: 0; list-style-type: none; box-sizing: border-box; font-family: 'Josefin Sans', sans-serif;}
.clear{clear: both;}

.container{
  width: 400px;
  margin: 0px auto;
  padding: 10px 50px;
  background: #FFF;
  box-shadow: 1px 3px 5px 1px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.container:before{
  content: "";
  position: absolute;
  width: 100px;
  height: 200px;
  background: rgba(0, 0, 0, 0.01);
  transform: rotate(-45deg);
  bottom: -70px;
  left: -20px;
  border: solid rgba(0, 0, 0, 0.01);
}

.container input:focus{
  outline: 0;
}

#user, #Pass{
  position: sticky;
  height: 50px;
}

#userInput, #passInput{
  width: 100%;
  height: 30px;
  border: none;
  margin: 0 auto;
  padding: 0 10px;
  position: absolute;
  bottom: 0;
  background: #DADCDB;
}

.container label{
  position: absolute;
  top: 26px;
  left: 10px;
  z-index: 1;
  color: gray;
  transition: .2s;
}

.login input[type=submit]{
  width: 40%;
  height: 35px;
  margin: 20px auto;
  font-size: 15pt;
  border: none;
  color: #FFF;
  background: #000;
  margin-left: 50%;
  transform: translate(-50%, 0);
}

.userLabel{
  transform: translate(-5px, -22px);
  font-size: 9pt;
  transition: .3s;
  color: #51a9d6!important;
}

.passLabel{
  transform: translate(-5px, -22px);
  font-size: 9pt;
  transition: .3s;
  color: #51a9d6!important;
}

#user:before{
  content: "\f007";
  position: absolute;
  right: 10px;
  top: 26px;
  z-index: 1;
  font-family: fontawesome;
  font-size: 12pt;
  color: gray;
}

#Pass:before{
  content: "\f023";
  position: absolute;
  right: 10px;
  top: 26px;
  z-index: 1;
  font-family: fontawesome;
  font-size: 12pt;
  color: gray;
}


#remember{
  width: 100%;
  overflow: hidden;
  margin: 10px auto;
  position: relative;
}

#remember label{
  position: absolute;
  top: 0;
  font-size: 8pt;
  left: 25px;
}

#forgot{
  float: right;
  margin: 1px 5px;
  font-size: 7pt;
}

#forgot a{
  text-decoration: none;
  color: #51a9d6;
}

#checkbox{
  display: none;
}

#checkbox + label:before{
  content: "\f096";
  position: absolute;
  font-family: fontawesome;
  left: -20px;
}

#checkbox:checked + label:before{
  content: "\f046";
  position: absolute;
}

#login-logo #border{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #51a9d6;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

#login-logo #shadow{
  width: 100%;
  height: 50%;
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 40px;
  left: -36px;
  bottom: 10px;
  transform: rotate(-35deg);
}


#login-logo i{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 50pt;
  z-index: 1;
}

#login-logo #elzero{
  font-size: 17pt;
  text-align: center;
  margin: 10px auto 0 auto;
  color: gray;
}

@media (min-width: 410px){
  .container{
    width: 400px;
  }
  
  #remember label{
    font-size: 10pt;
  }
  
  #forgot{
    font-size: 10pt;
  }
}
$(function(){
    
   var  userInput   = $('#userInput'),
        passInput   = $('#passInput'),
        userLabel   = $('#user label'),
        passLabel   = $('#Pass label');
        
    // Username Input  Move When Mouse Focus..    
   userInput.on('focus', function(){
       userLabel.addClass('userLabel'); 
   });
   userInput.on('blur', function(){
        if(userInput.val().length > 0 ){
            userLabel.addClass('userLabel');
        }else{
          userLabel.removeClass('userLabel');  
        }
         
   });
   
   // Password Input  Move When Mouse Blur..    
   passInput.on('focus', function(){
       passLabel.addClass('passLabel'); 
   });
   passInput.on('blur', function(){
        if(passInput.val().length > 0 ){
            passLabel.addClass('passLabel');
        }else{
          passLabel.removeClass('passLabel');  
        }
   });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://code.jquery.com/jquery-3.2.1.js