/* Polices */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
body {
  font-family: 'Great Vibes', cursive;
}

/* Effets au survol */
a:hover {
  color: #3e8e41;
  text-decoration: underline;
}

/* Box shadow */
.box {
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* Formulaires de connexion */
#login-form {
  width: 300px;
  margin: auto;
  margin-top: 100px;
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 10px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
}

input[type="submit"] {
  background-color: #4CAF50;
  color: rgb(0, 0, 0);
  padding: 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
}

input[type="submit"]:hover {
  background-color: #3e8e41;
}

p {
  text-align: center;
  margin-top: 20px;
}

/* Animations */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__bounce {
  animation-name: bounceIn;
}

.animate__shakeX {
  animation-name: shakeX;
}

@keyframes bounceIn {
  from, 20%, 40%, 60%, 80%, to {
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    transform: translate3d(0, 0, 0);
  }

  40%, 60% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -30px, 0);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
    transform: translate3d(0, -15px, 0);
  }

  90% {
    transform: translate3d(0,-4px,0);
  }
}

@keyframes shakeX {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

body {
  background: #ca98cb;
  color: #000000;
  font-family: Arial;
  font-size: 16px;
}
.wrapper {
  margin: 80px auto;
  text-align: center;
  width: 100%;
  position: relative;
}
.button {
  padding: 15px 100px;
  margin: 10px 4px;
  color: #000000;
  font-family: sans-serif;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  text-decoration: none;
  display: inline-block;
  border: 1px solid;
}
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-transform: scaleY(0.1);
  transform: scaleY(0.1);
  transition: all 0.4s;
}
.button:hover {
  color: #fbadfe;
}
.button:hover::before {
  opacity: 1;
  background-color: #f7c2f9;
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
  transition: -webkit-transform 0.6s cubic-bezier(0.08, 0.35, 0.13, 1.02), opacity 0.4s;
  transition: transform 0.6s cubic-bezier(0.08, 0.35, 0.13, 1.02), opacity;
}
.button-login {
  padding: 15px 100px;
  margin: 10px 4px;
  color: #eee;
  font-family: sans-serif;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  text-decoration: none;
  display: inline-block;
  border: 1px solid;
}

.button-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-transform: scaleY(0.1);
  transform: scaleY(0.1);
  transition: all 0.4s;
}

.button-login:hover {
  color: #b414ba;
}

.button-login:hover::before {
  opacity: 1;
  background-color: #f7c2f9;
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
  transition: -webkit-transform 0.6s cubic-bezier(0.08, 0.35, 0.13, 1.02), opacity 0.4s;
  transition: transform 0.6s cubic-bezier(0.08, 0.35, 0.13, 1.02), opacity;
}
.login-form .loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.login-form .loading::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-top-color: #1a1a1a;
  animation: spin 0.8s ease infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-form .success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.login-form .success::before {
  content: "\2713";
  font-size: 40px;
  color: #fff;
}
.login-form.success .success {
  opacity: 1;
}
.login-form .error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.login-form .error::before {
  content: "\2717";
  font-size: 40px;
  color: #fff;
}
.login-form.error .error {
  opacity: 1;
}


