
@font-face {
    font-family: 'RalewayRegular';
    src: url('../fonts/RALEWAY/Raleway-Regular.ttf') format('truetype');
}

* {
  -ms-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "RalewayRegular";
  margin: 0;
  padding: 0;
  border: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  background: url(../img/login/fond.png) no-repeat center;
  font-weight: 200;
}
.login {
  width: 70%;
  display: table;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  margin-bottom: 25px;
  margin: auto;
}
.legend {
  position: relative;
  width: 100%;
  display: block;
  padding: 15px;
  padding-top: 30px;
  color: #69B82A;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5em;
  margin-bottom: 15px;
}
.input {
  position: relative;
  width: 75%;
  margin: 0 auto;
}
.input span {
  position: absolute;
  display: block;
  left: 10px;
  top: 8px;
  font-size: 25px;
}
.input input {
  width: 100%;
  padding: 9px 5px 10px 50px;
  display: block;
  border-bottom: 1px solid #EDEDED;
  transition: 0.2s ease-out;
  color: #a1a1a1;
  margin-bottom: 30px;
  font-size: 1em;
}
.input input:focus {
  padding: 9px 5px 10px 10px;
  outline: 0;
  border-color: #69B82A;
}
.submit {
  width: 60px;
  height: 60px;
  display: block;
  margin: 60px auto -25px auto;
  background: #373747;
  border-radius: 100%;
  border: 1px soldi #373747;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s ease-out;
}
.submit:hover,
.submit:focus {
  background: #69B82A;
  color: #fff;
  outline: 0;
}
.feedback, .feedbackError {
  position: absolute;
  bottom: -70px;
  width: 70%;
  text-align: center;
  color: #fff;
  background: #2ecc71;
  padding: 10px 0;
  font-size: 12px;
  display: none;
  opacity: 0;
}
.feedback:before, .feedbackError:before {
  bottom: 100%;
  left: 50%;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(46, 204, 113, 0);
  border-bottom-color: red;
  border-width: 10px;
  margin-left: -10px;
}
.feedbackError {
    display: block;
    opacity: 1;
    bottom: -80px; 
    border-color: red;
    background: red;
}
form span.username {
    background:url('../img/login/picto_username.png') center center no-repeat;
    width: 18px;
    height: 17px;
}
form span.password {
    background:url('../img/login/picto_password.png') center center no-repeat;
    width: 17px;
    height: 19px;
}
.window {
   position: relative;
   top: 35%;
   margin: -150px auto 0 auto;
   width: 35%;
   display: table;
}
.logo {
    text-align: center;
    margin-bottom: 30px;
}
@-moz-keyframes wrong-log {
  0%, 100% {
    left: 0px;
  }
  20% , 60% {
    left: 15px;
  }
  40% , 80% {
    left: -15px;
  }
}
@-webkit-keyframes wrong-log {
  0%, 100% {
    left: 0px;
  }
  20% , 60% {
    left: 15px;
  }
  40% , 80% {
    left: -15px;
  }
}
@keyframes wrong-log {
  0%, 100% {
    left: 0px;
  }
  20% , 60% {
    left: 15px;
  }
  40% , 80% {
    left: -15px;
  }
}
.log-password.wrong-entry, .log-username.wrong-entry {
  -moz-animation: wrong-log 0.3s;
  -webkit-animation: wrong-log 0.3s;
  animation: wrong-log 0.3s;
}

@media (min-width: 768px) and (max-width: 1024px){
    .window {
        width: 50%;
    }
    .login {
        width: 100%;
    }
    .logo > img {
        width: 80%;
    }
    .feedback, .feedbackError {
        width: 100%;
    }
}

@media (min-width: 320px) and (max-width: 767px){
    .window {
        width: 85%;
    }
    .login {
        width: 100%;
    }
    .logo > img {
        width: 70%;
    }
    .feedback, .feedbackError {
        width: 100%;
    }
}

fieldset {
	border: 0;
}
