/* CONNECTION PAGE */
* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  box-sizing: border-box;
  position: relative;
}
body.page_connection {
  background-color: darkcyan;
}
body {
  background-image: url(../img/bg.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
main {
  position: fixed;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
form {
  max-width: 500px;
  margin: 0 auto;
}
h1 {
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #fff;
}
label {
  display: block;
  text-align: left;
  width: 300px;
  margin: 0 auto;
  margin-bottom: 10px;
}
input,
button {
  height: 50px;
  padding: 10px;
  border-radius: 50px;
  border: none;
  opacity: 0.7;
  vertical-align: top;
  transition: all 250ms ease-out;
}
input:focus,
button:focus,
input:hover,
button:hover {
  outline: none;
  opacity: 1;
}
button {
  width: 50px;
  background-color: black;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 1;
  cursor: pointer;
}
button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../img/sprite-pictos.png);
  background-position: 100% 50%;
  background-size: 350%;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
}
button:hover {
  background-color: #003e3e;
}
input {
  width: 300px;
  margin-bottom: 10px;
}
.wrong {
  animation: PWD_wrong 500ms;
}
.wrong input {
  border: 2px solid red;
}
.viewer {
  display: inline-block;
  position: absolute;
  left: 250px;
  top: 0;
  height: 50px;
  width: 50px;
  opacity: 0.5;
  cursor: pointer;
  transition: all 250ms ease-out;
}
.viewer:hover {
  opacity: 0.8;
}
.viewer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../img/sprite-pictos.png);
  background-position: 0 50%;
  background-size: 250%;
  background-repeat: no-repeat;
  width: 35px;
  height: 25px;
}
@keyframes PWD_wrong {
  0% {
    left: 0;
  }
  15% {
    left: -25px;
  }
  30% {
    left: 25px;
  }
  45% {
    left: -25px;
  }
  60% {
    left: 25px;
  }
  75% {
    left: -25px;
  }
  90% {
    left: 25px;
  }
  100% {
    left: 0;
  }
}
figure.profil {
  overflow: hidden;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 150px;
  border: 5px solid #000;
}
figure.profil img {
  width: 100%;
}
.forgotten {
  display: block;
  margin: 15px;
  margin-top: 0;
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  transition: all 250ms ease-out;
}
.forgotten:hover {
  letter-spacing: 1px;
}
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}
.lightbox .out {
  width: 100%;
  height: 100%;
  display: block;
}
.lightbox .content {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 25px;
  border-radius: 15px;
  background-color: #fff;
}
.lightbox .close {
  position: absolute;
  top: 0;
  right: 0;
  background-color: red;
  height: 25px;
  width: 35px;
  transition: all 250ms ease-out;
  cursor: pointer;
}
.lightbox .close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../img/sprite-pictos.png);
  background-position: 60% 50%;
  background-size: 298%;
  background-repeat: no-repeat;
  width: 25px;
  height: 100%;
}
.lightbox .close:hover {
  background-color: #b30000;
}
h2 {
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
}
p {
  text-align: center;
}
.max {
  font-weight: bold;
  font-size: 22px;
  color: red;
}
body.page_connected {
  padding: 50px 0;
  height: 100vh;
  background: #000;
}
.intro {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}
.intro .A,
.intro .B {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  transition: all 500ms ease-out;
  animation: welcome 4000ms;
  font-size: 100px;
}
.intro .B {
  animation-delay: 4000ms;
}
audio {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  opacity: 0;
  transition: all 500ms ease-out;
}
audio.active {
  opacity: 1;
}
@keyframes welcome {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* RESPONSIVE */
@media only screen and (max-width: 600px) {
  main {
    position: relative;
    top: initial;
    left: initial;
    transform: none;
    padding: 15px;
    padding-top: 35px;
  }
  form span,
  form input {
    width: 100%;
  }
  form .viewer {
    left: initial;
    right: 0;
  }
  .intro .A,
  .intro .B {
    font-size: 75px;
  }
  .lightbox .content {
    width: 85%;
  }
}
@media only screen and (max-width: 479px) {
  .intro .A,
  .intro .B {
    font-size: 55px;
  }
}
