@import url('http://fonts.cdnfonts.com/css/bahnschrift');

:focus {
  outline: 0;
}

:root{
  --primary-color:#4CAF50;
  --second-color:#28862c;
}

.login-page {
  width: 520px;
  padding: 60px;
  margin: auto;
}
.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 520px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form button {
  font-family: "Bahnschrift", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: #4CAF50;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
  transition: background 400ms;
}
.form button:hover,.form button:active,.form button:focus {
  background: #28862c;
}

.login-form {
  width: 100%;
  position: relative;
}

.login-form input {
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: 'Bahnschrift', sans-serif;
  width: 100%;
  padding: 10px;
  border: 0;
  border-bottom: 2px solid #ccc;
  transition: 0.4s;
}

.login-form input:focus{
  border-color: transparent;
}

.login-form .focus-border {
  position: absolute;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--primary-color);
  transition: 0.4s;
}

.login-form:nth-child(2) .focus-border{
  bottom: 57px;
}

.login-form:nth-child(4) .focus-border{
  bottom: 20px;
}

.login-form input:focus~.focus-border {
  width: 100%;
}


body {
  background: #76b852; /* fallback for old browsers */
  background: rgb(141,194,111);
  background: url(asset/background.jpg) no-repeat center center fixed;
  background-size: cover;
  font-family: "Bahnschrift", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;      
}