@charset "UTF-8";

* {
  box-sizing: inherit;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  font-family: 'Raleway', "Arial", sans-serif;
  background-color: #faf8f9;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s, box-shadow 5000s ease-in-out 0s !important;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: #3d3d3d !important;
}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
  font-style: italic;
  color: #000000 !important;
  opacity: 1 !important;
}

.nowrap {
  white-space: nowrap;
}

/* Popup modale de récupération d'identifiants */
#modalRecupId {
  display: none;
  width: 600px;
}

#modalRecupId .modal-content {
  padding: 0;
}

#modalRecupId iframe {
  border: none;
  width: 100%;
  height: 280px;
}

html {
  font-size: 11px;
}

#page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
}

.small-only {
  display: block;
}

.contenu {
  width: 100%;
  background-color: #faf8f9;
  flex: 1 1 100%;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.bg {
  order: -1;
  width: 100%;
  display: none;
}

header, footer, main {
  width: 90%;
  margin: 0 auto;
}

div.hr {
  margin: 1.33rem 0;
}

div.hr.vert {
  background-color: #41cd48;
  height: 0.47rem;
  width: 4.27rem;
}

#logo {
  width: 100%;
  max-width: 28.67rem;
  min-width: 100px;
  text-align: left;
  margin-bottom: 5rem;
}

#logo img {
  max-width: 100%;
  height: auto;
  border: 0;
}

h2 {
  margin: 0;
  margin-bottom:0.5rem;
  color: #181515;
  font-size: 4.07rem;
  font-weight: bold;
}

h3 {
  margin: 0;
  margin-bottom: 1.6rem;
  font-size: 2.22rem;
  line-height: 1.25;
  font-weight: bold;
  color: #948c8c;
}

.instructions {
  color: #606060;
  font-size: 1.33rem;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 2.35rem;
  line-height: 1.2;
}

.instructions .color {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: bold;
  color: #2a2a2a;
}

#fields {
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: -2px 7px 18px 0px rgba(152, 134, 134, 0.17);
  border: 2px solid #d9d9d9;
  border-radius: 5px;
}

#fields .field {
  position: relative;
  background-color: #fff;
  margin: 0;
  border-radius: 0;
  height: 4.5rem;
  color: #191919;
  border-bottom: 2px solid #d9d9d9;
}

#fields .field:first-of-type {
  border-top: 0;
  border-left: 3px solid #f58038;
  background-color: #fff;
  border-left-color: transparent !important;
}

#fields .field:first-of-type label {
  margin-left: 0;
}

#fields .field:first-of-type input[type=email],
#fields .field:first-of-type input[type=text],
#fields .field:first-of-type input[type=password] {
  margin-left: 0;
}

#fields .field:first-of-type input[type=email]+span.label,
#fields .field:first-of-type input[type=text]+span.label,
#fields .field:first-of-type input[type=password]+span.label {
  margin-left: 0;
}

#fields .field:last-of-type {
  border-bottom: 0;
  border-left: 0.5rem solid #f58038;
  background-color: #fff;
  border-left-color: #181515 !important;
}

#fields .field:last-of-type label {
  margin-left: 0;
}

#fields .field:last-of-type input[type=email],
#fields .field:last-of-type input[type=text],
#fields .field:last-of-type input[type=password] {
  margin-left: 0;
}

#fields .field:last-of-type input[type=email]+span.label,
#fields .field:last-of-type input[type=text]+span.label,
#fields .field:last-of-type input[type=password]+span.label {
  margin-left: 0;
}

#fields label {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  text-align: center;
  margin-left: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fields label img {
  height: 24px;
  width: auto;
}

#fields input[type=email],
#fields input[type=text],
#fields input[type=password] {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50px;
  width: calc(100% - 50px);
  border: 0;
  color: #3d3d3d;
  box-sizing: border-box;
  margin-bottom: 0;
  height: 80% !important;
  font-family: 'Raleway', "Arial", sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: bold;
}

#fields input[type=email]:focus, #fields input[type=email].valid, #fields input[type=email].invalid,
#fields input[type=text]:focus,
#fields input[type=text].valid,
#fields input[type=text].invalid,
#fields input[type=password]:focus,
#fields input[type=password].valid,
#fields input[type=password].invalid {
  color: #3d3d3d;
  border: 0;
  box-shadow: none;
  outline: 0;
}

#fields input[type=email]+span.label,
#fields input[type=text]+span.label,
#fields input[type=password]+span.label {
  position: absolute;
  text-align: center;
  left: 50px;
  margin-left: 3px;
  color: #a0a0a0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  font-family: 'Raleway', "Arial", sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: bold;
}

#fields input[type=email]+span.label.active,
#fields input[type=text]+span.label.active,
#fields input[type=password]+span.label.active {
  -webkit-transform: translateY(calc(-50% - 8px));
  transform: translateY(calc(-50% - 8px));
}

#fields input[type=email].valide+span.validation::after,
#fields input[type=text].valide+span.validation::after,
#fields input[type=password].valide+span.validation::after {
  content: ' ';
  display: block;
  position: absolute;
  top: 53%;
  right: 15px;
  width: 25px;
  height: 25px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: url(../images/valid.png) no-repeat;
  background-size: contain;
}

#fields input[type=email].invalide+span.validation::after,
#fields input[type=text].invalide+span.validation::after,
#fields input[type=password].invalide+span.validation::after {
  content: ' ';
  display: block;
  position: absolute;
  top: 53%;
  right: 15px;
  width: 25px;
  height: 25px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: url(../images/invalid.png) no-repeat;
  background-size: contain;
}

#fields input[type=email]:focus:not([readonly]),
#fields input[type=text]:focus:not([readonly]),
#fields input[type=password]:focus:not([readonly]) {
  color: #191919;
  box-shadow: none;
  border: 0;
}

.button_form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 0;
  font-weight: 800;
  color: #fff;
  background-color: #45ce27;
  height: 3.73rem;
  width: 15.53rem;
  border-radius: 1.865rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
  letter-spacing: 0.5px;

}

.button_form:hover {
  background-color: #181515;
}

#oubli_form {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: right;
  margin-top: 2rem;
}

#oubli_form a {
  transition: 0.3s ease;
  color: #181515;
  text-decoration: none;
}

#oubli_form a:hover {
  color: #45ce27;
  letter-spacing: 0.3px;

}

footer {
  margin-top: 30px;
  color: #7e7a83;
}

footer a {
  color: unset;
}

footer a:hover {
  color: #28419b;
}

@media screen and (min-width: 600px) {
  #page {
    padding: 2rem 0;
    background: #faf8f9;
    background: url(../images/bg.jpg) no-repeat center center;
    background-size: cover;
    background-size: cover;
  }

  .small-only {
    display: none;
  }

  div.hr {
    margin: 30px 0;
  }

  .contenu {
    justify-content: center;
    height: 75%;
    flex: 0 0;
    margin: auto;
    width: 75%;
    background-image: none;
    background: rgba(255, 255, 255, 0.85);
  }

  .bg {
    display: none;
  }

  header, main, footer {
    width: 75%;
  }
}

@media screen and (max-width: 959px) and (max-height: 840px) {
  .bg {
    display: none;
  }
}

@media screen and (min-width: 960px) {
  html {
    font-size: 11px;
  }

  #page {
    min-height: 100%;
    display: flex;
    flex-direction: row;
    background-position: left center;
    padding: 0;
  }

  .contenu {
    width: 50%;
    flex: 1 1 50%;
    height: initial;
    margin: initial;
    background: #faf8f9;
  }

  .bg {
    background: transparent;
    background-size: contain, cover;
    order: -1;
    padding-top: 37%;
    display: block;
    width: 50%;
    flex: 1 1 50%;
    height: initial;
  }
}

@media screen and (min-width: 1200px) {
  body {
    font-size: 13px;
  }

  .contenu {
    width: 42.6%;
    flex: 1 1 42.6%;
  }

  .bg {
    width: 57.4%;
    flex: 1 1 57.4%;
  }

  header, main, footer {
    width: 71.5%;
  }

  header .hr {
    margin: 2rem 0 2.87rem;
  }

  #fields .field {
    height: 6.53rem;
    padding-left: 7px;
  }

  #fields .field:first-of-type {
    border-left: 7px solid #000000;
  }

  #fields label {
    width: 6.67rem;
    margin-left: 7px;
  }

  #fields label img {
    height: 27px;
  }

  #fields input[type=email],
  #fields input[type=text],
  #fields input[type=password] {
    left: 6.67rem;
    width: calc(100% - 6.67rem);
    height: 75px;
    margin-left: 7px;
  }

  #fields input[type=email]+span.label,
  #fields input[type=text]+span.label,
  #fields input[type=password]+span.label {
    margin-left: 7px;
    left: 6.67rem;
  }

  .button_form {
    height: 4rem;
    border-radius: 2rem;
  }

  footer {
    margin-top: 70px;
  }
}

@media screen and (min-width: 1600px) {
  html {
    font-size: 14px;
  }

  main {
    margin-right: 28%;
    margin-left: 15%;
    min-width: 34.27rem;
    width: auto;
  }
}

@media screen and (min-width: 1600px) and (max-height: 890px) {
  html {
    font-size: 12px;
  }

  main {
    margin-right: 28%;
    margin-left: 15%;
    min-width: 34.27rem;
    width: auto;
  }
}