input:focus, textarea:focus, select:focus {
  outline: none;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #d2dae2;
}

.error {
  position: absolute;
  top: 100px;
  left: 50%;
  color: #e63946;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.error-single {
  margin: 100px auto 0 auto;
  color: #e63946;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

#loginform {
  margin: 200px auto;
  background: #28343b;
  color: #d2dae2;
  padding: 25px;
  box-sizing: border-box;
  border-radius: 10px;
  display: table;
  -webkit-box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.1);
}

.login-username, .login-password, .login-remember, .login-submit {
  margin: 10px
}

.login-remember {
  padding-left: 15px;
}

.login-submit .button {
  padding: 15px 30px;
  background: #161e24;
  color: #d2dae2;
  border: none;
  font-size: 14px;
  border-radius: 90px;
  cursor: pointer;
  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}

.login-submit .button:hover {
  background: #1f2c35
}

.login-username label, .login-password label {
  clear: both;
  display: block;
  color: #d2dae2;
  margin-bottom: 5px
}

.login-username input, .login-password input {
  padding: 15px;
  border: none;
  border-radius: 90px;
  width: 250px;
  font-size: 15px;
  background: #d2dae2;
  box-sizing: border-box;
}

/* CUSTOM CHECKBOX */
form p {
  position: relative;
  /* allows to position the checkbox */
}

input[type=checkbox] {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: initial
}

input[type=checkbox]:checked:before {
  content: '';
  position: absolute;
  background-color: #457B9C;
  border: 5px solid #d2dae2;
  -webkit-transition: all .2s;
  -o-transition: all .2s;
  transition: all .2s;
  font-family: 'Open Sans', sans-serif;
}

input[type=checkbox]:before {
  content: '';
  position: absolute;
  top: 0 !important;
  left: 0;
  width: 10px;
  height: 10px;
  z-index: 0;
  border: 5px solid #d2dae2;
  border-radius: 90px;
  margin-top: 0;
  margin-right: 8px;
  -webkit-transition: .2s;
  -moz-transition: .2s;
  -o-transition: .2s;
  -ms-transition: .2s;
  transition: .2s;
  background: #d2dae2;
}

/* CUSTOM CHECKBOX */
@media only screen and (max-width: 499px) {

  .error {
    position: relative;
    top: inherit;
    margin: 20px 0;
    left: inherit;
    color: #e63946;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .error-single  {
    margin: 20px 0;
    text-align: center;
  }
  
  #loginform {
    margin: 0 auto;
    width: 100%;
  }

  .login-username input, .login-password input {
    width: 100%
  }
}
