@charset "UTF-8";
* {
  box-sizing: inherit;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  background-color: #fff;
  color: #000;
  font-size: 1.2rem;
  font-family: "Poppins", "Arial", 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 #fff inset !important;
  -webkit-text-fill-color: rgb(28, 37, 59) !important;
}

::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder {
  font-style: italic;
  color: rgb(28, 37, 59) !important;
  opacity: 1 !important;
}

.nowrap {
  white-space: nowrap;
}

.d-none {
  display: none;
}

/* 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-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contenu {
  display: grid;
  min-width: 50vh;
  width: 77.5rem;

}

.forme {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: 
  "head  ."
  "logo  field"
  ;
}

#logo {
  grid-area: logo;
  background-color: white;
  text-align: center;
  z-index: 2;
  -webkit-box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.07);
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.07);
}

#logo img  {
  max-width: 100%;
  width: 60%;
  transform: translateY(-2rem);
}

header {
  grid-area: head;
  padding: 3rem 0 3rem 3rem;
}

main {
  grid-area: field;
  position: relative;
  padding-top: 2rem;
  background-color: white;
}

h2, h3 {
  margin: 0;
  font-family: 'Montserrat', 'Arial' sans-serif;
  font-weight: 600;
  font-size: 5.2rem;
  color: rgb(23, 91, 121);
  line-height: 1;
}

h3 {
  font-size: 2.31rem;
}

.separateur {
  width: 6.5rem;
  height: 4px;
  background-color: rgb(49, 164, 216);
  border: 0;
  margin: 0.7rem 0;
}

.instructions {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: normal;
  color: rgb(28, 37, 59);
  font-size: 1.41rem;
}

.instructions span {
  font-weight: bold;
  color: rgb(23, 91, 121);
}

#fields {
  display: grid;
  grid-template-rows: 1fr 1fr;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0 4.5rem;
  background-color: white;
  height: 100%;
}

#fields .field {
  position: relative;
  margin: 0;
}

#fields .field:not(:last-child) {
  border-bottom: 1px solid rgb(229, 230, 233);
}

#fields .field:not(:last-child)::before{
  content: "Identifiant";
  font-family: "Spartan", "Arial", sans-serif !important;
  font-weight: bold;
  position: absolute;
  top: 4%;
  font-size: 4.25rem;
  left: 2.5rem;   
  letter-spacing: 0.2rem;
  color: rgb(229, 230, 233);
}
#fields .field::before{
  content: "Mot de passe";
  font-family: "Spartan", "Arial", sans-serif !important;
  font-weight: bold;
  position: absolute;
  top: 16%;
  font-size: 3.42rem;
  left: 2.5rem;   
  letter-spacing: 0.2rem;
  color: rgb(229, 230, 233);
}

#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: 25px; */
}

#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: 25px; */
}

#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: 25px; */
}

#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: 25px;
}

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

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

#fields label:after{
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 1px;
  margin: 0px;
  background-color: black;
  left: 3rem;
  top: 4.4rem;
  transform: rotate(90deg);
}

#fields input::placeholder{
  color: rgb(28, 37, 59);
  font-weight: normal;
}
#fields input[type=email], #fields input[type=text], #fields input[type=password] {
  font-size: 1.5rem !important;
  font-weight: normal;
  font-family: 'Montserrat', "Arial", sans-serif !important;
  color: rgb(28, 37, 59) !important;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 4rem;
  width: calc(100% - 4rem);
  height: 100% !important;
  border-bottom: 0;
  box-sizing: border-box;
  padding: 1.85rem 2rem 0 1rem;
}

#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: rgb(28, 37, 59);
  box-shadow: none;
  outline: 0;
}
input:not([type]), 
input[type=text]:not(.browser-default), 
input[type=password]:not(.browser-default), 
input[type=email]:not(.browser-default), 
input[type=url]:not(.browser-default), 
input[type=time]:not(.browser-default), 
input[type=date]:not(.browser-default), 
input[type=datetime]:not(.browser-default), 
input[type=datetime-local]:not(.browser-default), 
input[type=tel]:not(.browser-default), 
input[type=number]:not(.browser-default), 
input[type=search]:not(.browser-default),
 textarea.materialize-textarea{
  background-color: transparent;
  border: none;

  border-radius: 0;
  outline: none;
  height: 3rem;
  width: 100%;
  font-size: 16px;
  margin: 0 0 8px 0;
  padding: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  -webkit-transition: border .3s, -webkit-box-shadow .3s;
  transition: border .3s, -webkit-box-shadow .3s;
  transition: box-shadow .3s, border .3s;
  transition: box-shadow .3s, border .3s, -webkit-box-shadow .3s;
 }
 .modal-trigger {
  height: 4rem;
  width: 50%;
  font-family: 'Montserrat',"Arial", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  background-color: rgb(23, 91, 121);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.modal-trigger span {
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.modal-trigger:hover {
  background-color: rgb(49, 164, 216);
}

.button_form {
  height: 4rem;
  width: 50%;
  font-family: 'Montserrat',"Arial", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  background-color: rgb(49, 164, 216);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  transition: all 0.3s ease-in-out;
  position: relative;
  letter-spacing: 0.1rem;
}

.button_form:hover {
  background-color: rgb(23, 91, 121);
}

.dbl_btn {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  width: 38.75rem;
  max-width: 100%;
  bottom: 0;
  transform: translateY(calc(100% - 1px));
}

html {
  font-size: 23px;
}

@media screen and (max-width: 3300px) {
  html {
    font-size: 21px;
  }
}

@media screen and (max-width: 3300px) {
  html {
    font-size: 19px;
  }
}

@media screen and (max-width: 2800px) {
  html {
    font-size: 17px;
  }
}

@media screen and (max-width: 2300px) {
  html {
    font-size: 15px;
  }
}

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

@media screen and (max-width: 1850px) {
  html {
    font-size: 12px;
  }
}

@media screen and (max-width: 1440px) and (max-height: 900px) {
  header {
    background: white;
  }
  #page {
    background-image: url(../images/bg2.jpg);
    background-position: left center;
    background-size: cover;
  }
}

@media screen and (max-width: 1100px) {
  #page {
    background-image: url(../images/bg2.jpg);
    background-position: right center;
    background-size: cover;
  }
  .contenu {
    display: flex;
    flex-direction: column;
    min-width: auto;
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    background-color: white;
  }
  
  .forme {
    display: flex;
    flex-direction: column;
    padding: 5rem 0;
  }
  
  #logo {
    grid-area: unset;
    z-index: 1;
    box-shadow: none;
    text-align: left;
  }
  
  #logo img  {
    max-width: 100%;
    width: 60%;
    transform: unset;
  }
  
  header, main, #logo {
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
  }

  header {
    grid-area: unset;
    padding: 0;
  }
  
  main {
    grid-area: unset;
  }
  
  h2, h3 {
    font-size: 4.8rem;
  }
  
  h2 {
    margin-top: 3rem;
  }

  h3 {
    font-size: 2.37rem;
  }
  
  .separateur {
    margin: 1.75rem 0;
  }

  .instructions {
    font-size: 1.45rem;
  }
  
  #fields {
    display: unset;
    max-width: 100%;
    padding: 0;
    background-color: white;
    height: unset;
  }
  
  #fields .field {
    height: 8rem;
  }
  
  #fields .field:not(:last-child)::before{
    top: -4%;
  }
  #fields .field::before{
    top: 12%;
  }
  
  #fields label:after{
    top: 4rem;
  }
  
  .dbl_btn {
    bottom: -5rem;
    transform: unset;
  }
}

@media screen and (max-width:599px) {
  html {
    font-size: 11px;
  }
  .contenu {
    min-height: 100vh;
    justify-content: center;
  }
  .forme {
    padding: 0;
  }
  header, main, #logo {
    max-width: 85%;
  }
  .disp {
    display: none;
  }
}

@media screen and (max-width:392px) {
  #fields .field:not(:last-child)::before{
    font-size: 3.75rem;
  }
  #fields .field::before{
    font-size: 2.92rem;
  }
  .modal-trigger {
    font-size: 1.25rem;
    width: 55%;
  }
  .button_form {
    width: 45%;
  }
}