/*
organisation des styles :
    en haut :   tout ce qui concerne en premier lieu une balises (ex div; div > .class; div:nth-child(); etc...)
    au milieu : tout ce qui concerne en premier lieu une classe (ex .class; .class > div ; .class:focus; etc...)
    en bas :    tout ce qui concerne en premier lieu un  id (ex #id; #id > .class > div ; #id:hover; etc...)
    en fin :    tout ce qui concerne en premier lieu les media queries (ex @keyframes; @media-print; etc...)
tout ceci sera classé ensuite par Ordre alphabétique
*/

html {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  /*align-items: center;*/
}

body {
  font-family: "Open Sans", sans-serif;
  /*background-image: url("../../IMG/others/cool-background.png");*/
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  background: rgb(var(--login-bg));
}

svg {
  font-family: "Varela Round", sans-serif;
  color: white;
}

/*##########################################################################################################################################
##############################################    fin balise : debut class   ##############################################################
############################################################################################################################################*/

/*#region alert info styles*/
.alertContainer {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
}

.warningAlertTop {
  min-height: 50px;
  min-width: 200px;
  z-index: 2000;
  animation: displayConfirm forwards 5s;
  -webkit-animation: displayConfirm 5s forwards;
  padding: 10px;
  pointer-events: none;
  border-left: none !important;
  border-right: none !important;
}

.warningAlertBorder {
  padding: 1em;
  margin-bottom: 2em;
  border-radius: 25px;
}

.confirmationAlert,
.refusAlert,
.warningAlert {
  position: fixed;
  margin: auto;
  border-radius: 20px;
  min-height: 50px;
  min-width: 200px;
  z-index: 2000;
  animation: displayConfirm forwards 5s;
  -webkit-animation: displayConfirm 5s forwards;
  padding: 10px;
  pointer-events: none;
}

.confirmationAlertNotif,
.refusAlertNotif,
.warningAlertNotif {
  position: absolute;
  bottom: 10px;
  right: 0;
  border-radius: 20px;
  min-height: 50px;
  min-width: 200px;
  z-index: 2000;
  animation: displayNotif forwards 5s;
  -webkit-animation: displayNotif 5s forwards;
  padding: 10px;
  pointer-events: none;
}

.confirmationAlert.extended,
.refusAlert.extended,
.warningAlert.extended {
  animation: displayConfirmExtended forwards 10s;
  -webkit-animation: displayConfirmExtended 10s forwards;
}

.confirmationAlertNotif.extended,
.refusAlertNotif.extended,
.warningAlertNotif.extended {
  animation: displayNotifExtended forwards 10s;
  -webkit-animation: displayNotifExtended 10s forwards;
}

.confirmationAlert,
.confirmationAlertNotif {
  background: #a5dbd4;
  border: none;
  color: var(--white);
}

.refusAlert,
.refusAlertNotif {
  background: indianred;
  border: red 3px ridge;
}

.warningAlert,
.warningAlertNotif,
.warningAlertTop,
.warningAlertBorder {
  background: orange;
  border: darkorange 3px ridge;
  animation: none;
  pointer-events: all;
}

/*#endregion*/

.field-icon {
  float: right;
  margin-left: -25px;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.fieldFilled {
  background-color: rgba(100, 100, 255, 0.2) !important;
}

.inputCorrect {
  background-color: rgba(100, 255, 100, 0.2) !important;
  /*border: #7cfc00 2px groove !important;*/
}

.inputIncorrect {
  outline: none;
  background-color: rgba(255, 100, 100, 0.2) !important;
  /*border: #ff4500 2px groove !important;*/
}

/*#region login elt*/
.login {
  max-width: 400px;
  margin: 16px auto;
  font-size: 16px;
  padding: 10px;
  /*margin-top: 50px;*/
  background: white;
  border-radius: 20px;
  height: auto;
}

.login a {
  color: black;
  text-decoration: none;
  transition: all .3s ease;
}

.login a:hover {
  color: rgb(var(--main-color));
}

.login hr {
  background: rgb(var(--main-color));
  padding: 4px;
  width: 70px;
  border-radius: 20px;
}

.login label {
  color: rgba(var(--secondary-alpha));
  /*#ced643;*/
  font-weight: 800;
}

.login input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  border-width: 1px;
  border-radius: 100px;
  border-style: solid;
  padding: 16px;
  outline: 0;
  font-family: inherit;
  font-size: 0.95em;
  height: 4vh;
}

.login input[type="email"],
.login input[type="password"] {
  background: #fff;
  border-color: #bbb;
  color: #555;
}

/* Text fields' focus effect */
.login input[type="email"]:focus,
.login input[type="password"]:focus {
  border-color: #888;
}

/*#region submit */
.login input[type="submit"] {
  background: rgb(var(--main-color));
  /*#35bb85; */
  border-color: transparent;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1.2em;
  font-weight: 800;
  padding: 10px 30px;
  width: auto;
  line-height: 0;
}

.login input[type="submit"]:disabled {
  background: rgba(var(--main-color), .2) !important;
  /*#bee0db !important;*/
  cursor: default !important;
}

.login input[type="submit"]:hover {
  background: rgb(var(--main-color-2));
  /*rgb(75, 209, 72);*/
}

/* Buttons' focus effect */
.login input[type="submit"]:focus {
  background: rgb(var(--main-color-2));
  /*rgb(75, 209, 72);*/
}

/*#endregion*/
/*#endregion*/

.login-container {
  padding: 12px;
}

.login-header {
  color: rgb(var(--main-color));
  font-size: 1.2em;
}

.login-header h2 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 900;
}

.login-header .logo {
  width: 50%;
  height: auto;
  max-width: 384px;
  margin: 10px;
}

/*##########################################################################################################################################
##############################################    fin class : debut id   ##############################################################
############################################################################################################################################*/

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

@keyframes displayConfirm {
  0% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  10% {
    -webkit-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  20% {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    display: none;
    opacity: 0;
  }
}