@charset "UTF-8";

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  font-size: 13px;
}

body {
  height: 100%;
  margin: 0;
  background-color: #fff;
  color: #000;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
}

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 rgb(0, 0, 0) inset !important;
  -webkit-text-fill-color: black !important;
}

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

input::placeholder {
  color: black;
}


.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;
}

#page {
  background-image: url(../images/bg.jpg);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  width: 100vw;
  min-height: 100vh;
}

.contenu {
  position: absolute;
  top: 50%;
  min-height: 50vh;
  width: 85.5rem;
  transform: translateY(-50%);
  background-color: white;
}

.contenu-bg {
  display: grid;
  grid-template-columns: 50% auto;
  border: 2.5px solid black;
  border-left: 0;
  padding: 3rem 7rem 6.2rem;
  transform: translate(-3.5rem, -3.5rem);
}

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

#logo img {
  max-width: 100%;
  height: fit-content;
}

header, main {
  transform: translate(3.5rem, 3.5rem);
  max-width: 100%;
  width: 100%;
}

main {
  padding-left: 5rem;
  transform: translate(3.5rem, 11rem);
}

h2 {
  font-size: 2.85rem;
  text-transform: uppercase;
  font-weight: 300;
  font-family: 'Poppins', 'Arial', sans-serif;
  color: rgb(3, 108, 112);
  letter-spacing: 0.3rem;
  margin-left: 1.2rem;
}

h2 span {
  font-weight: bold;
}

.instructions {
  font-family: 'Poppins', 'Arial', sans-serif;
  font-weight: 300;
  color: rgb(102, 102, 102);
  font-size: 1.303rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

#fields {
  max-width: 92.5%;
  width: 100%;
}

#fields .field {
  position: relative;
  height: 4.2rem;
  -webkit-box-shadow: 0px 0px 35px 12px rgba(0, 0, 0, 0.085);
  box-shadow: 0px 0px 35px 12px rgba(0, 0, 0, 0.085);
}

#fields .field:first-child {
  /* border-bottom: 1px solid rgb(199, 199, 199); */
  margin-bottom: 1.35rem;
}

/* 
#fields .field:last-child {
} */

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

#fields label img {
  height: 1.8rem;
  width: auto;
}

#fields label:after {
  content: '';
  border-right: 1px solid rgb(213, 186, 162);
  opacity: 1;
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  right: -.25rem;
  width: 100%; 
}

#fields input[type=email], #fields input[type=text], #fields input[type=password] {
  font-size: 1.3rem !important;
  font-weight: 300;
  font-family: "Poppins", "Arial", sans-serif !important;
  color: black !important;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 6rem;
  width: calc(100% - 6rem);
  border-bottom: 0;
  height: 100% !important;
  box-sizing: border-box;
  margin-bottom: 0;
  caret-color: black;
  padding: 0 2rem;
}

#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: black;
  box-shadow: none;
  outline: 0;
}

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

.button_form {
  height: 4rem;
  width: 13.5rem;
  font-family: "Poppins", "Arial", sans-serif;
  font-weight: 300;
  font-size: 1.3rem;
  color: white;
  background-color: rgb(3, 108, 112);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  /* border: 2px solid #2e277b; */
  /* border-radius: 5px; */
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  padding-top: 0.1rem;
}

.button_form::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  width: 1.5rem;
  height: 4rem;
  background-color: white;
  cursor: default;
}

.button_form::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  width: 1.5rem;
  height: 4rem;
  background-color: white;
  cursor: default;
}

.button_form img {
  margin-left: 15px;
}

.button_form:hover, .button_form:focus {
  background-color: rgb(123, 123, 123);
}

#oubli_form {
  text-align: right;
  margin: 1rem 0 4.5rem;
}

#oubli_form a {
  /* height: 3.4rem;
  width: 14.13rem; */
  font-family: "Poppins", "Arial", sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  border-bottom: 1px solid transparent;
  /* border-radius: 10px; */
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  color: rgb(123, 123, 123);
  opacity: 1;
  text-decoration: none;
  /* background: #353e49; */
  /* margin-left: 2rem; */
  border-bottom: 1px solid;
}

#oubli_form a:hover {
  color: rgb(3, 108, 112);
  border-bottom: 1px solid;
}

@media screen and (max-width: 1199px) {
  html {
    font-size: 12px;
  }
  #page {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contenu {
    position: relative;
    height: fit-content;
    max-width: fit-content;
    width: 100%;
    transform: translateY(0%);
    margin: auto 0 auto auto;
  }
  
  .contenu-bg {
    display: grid;
    grid-template-columns: 100%;
    border: 0;
    transform: translate(0, 0);
    max-width: 42rem;
    padding: 4rem;
    height: 100vh;
  }

  #fields {
    max-width: 100%;
  }
  
  header, main {
    transform: unset;
    max-width: 100%;
    width: 36rem;
    margin: 0 auto;
  }
  
  main {
    padding-left: 0;
  }

  h2 {
    letter-spacing: 0;
    margin-left: 0;
  }

  .instructions {
    font-size: 1.445rem;
  }
}

@media screen and (max-width: 959px) {
  .contenu-bg {
    height: fit-content;
  }
}

@media screen and (max-width: 599px) {
  html {
    font-size: 11px;
  }
  #page {
    justify-content: unset;
  }

  .contenu {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contenu-bg {
    padding: 2rem;
  }
}

@media screen and (max-width: 499px) {
  .displ {
    display: none;
  }
}

@media screen and (max-width: 392px) {
  h2 {
    font-size: 2.5rem;
  }
}