@charset "UTF-8";

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

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

body {
  font-family: 'Montserrat', 'Arial', sans-serif;
}

#page {
  display: flex;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-image: url(../images/bg.png);
  background-size: cover;
  background-position: center center;
}

.contenu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: fit-content;
  margin: 0 5.21vw;
}

header, main {
  height: 52vh;
}

header {
  display: grid;
  place-content: left;
}

main {
  display: flex;
  flex-direction: column;
  margin-left: 7.8125vw;
}

main::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 6px;
  background-color: black;
  transform: translate(-90%, 4000%) rotate(115deg);
}

main div {
  height: fit-content;
  margin: auto 0;
}

#logo {
  display: grid;
  text-align: left;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

h2 {
  margin: 0;
  font-size: 2.229rem;
  font-weight: bold;
  color: black;
  line-height: 1.2;
}

h2 span {
  background: #002d88;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.instructions {
  margin-top: 2rem;
  font-size: 1.481rem;
  font-weight: normal;
  color: rgb(154, 153, 153);
  line-height: 1.2;
}

#fields {
  max-width: 58%;
  margin: 0 auto 0 0; 
}

#fields .field {
  position: relative;
  background-color: white;
  margin: 0;
  height: 4.231rem;
  border-radius: 95px;
  -webkit-box-shadow: 0px 0px 17px 7px rgba(0, 0, 0, 0.07);
  box-shadow: 0 0 17px 7px rgba(0, 0, 0, 0.07);
}

#fields .field:not(:last-child) {
  margin: 1rem 0 0.85rem;
}

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

#fields label:after{
  content: '';
  position: absolute;
  width: 2rem;
  margin: -1rem;
  border-bottom: 1px solid rgb(200, 200, 200);
  right: 0px;
  transform: rotate(90deg);
}

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

#fields input::placeholder {
  font-size: 1.4rem;
  color: rgb(33, 41, 52);
  font-weight: 500;
}

#fields input[type=email],
#fields input[type=text],
#fields input[type=password] {
  font-size: 1.4rem !important;
  font-weight: 500;
  color: rgb(33, 41, 52) !important;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 6rem;
  width: calc(100% - 6rem);
  height: 100%;
  border: none;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 0 2rem 0 1rem;
  border-radius: 0px 25px 25px 0px;
}
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: none !important;
}
#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(33, 41, 52);
  box-shadow: none;
  outline: 0;
  background-color: unset;
}

#fields input[type=email] + span.label,
#fields input[type=text] + span.label,
#fields input[type=password] + span.label {
  color: rgb(33, 41, 52) !important;
  font-size: 1.2rem !important;
  font-weight: normal;
  font-family: "Sofia Pro", "Arial", sans-serif !important;
  position: absolute;
  text-align: center;
  left: 4.8rem;
  top: 50%;
  margin-left: 3px;
  -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;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  z-index: 0;
  padding: 0 1rem;
}

#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% - 13px)) scale(0.7);
  transform: translateY(calc(-50% - 13px)) scale(0.7);
}

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

.button_form {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 4rem;
  width: 50%;
  max-width: 28.87rem;
  margin: 0;
  font-family:"Montserrat", "Arial", sans-serif;
  font-weight: bold;
  font-size: 1.25rem;
  color: white;
  letter-spacing: 0.1rem;
  background-color: #002d88;
  background-size: 100% 200%;
  background-position: top;
  border-radius: 7px;
  transition: all 0.3s ease-in-out;
}

.button_form:hover {
  background-color: #0a42b5;
  background-position: bottom;
}

#oubli_form {
  display: flex;
  position: relative;
  place-content: center;
  width: 100%;
  height: 3.5rem;
  font-family: 'Montserrat', "Arial", sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: right;
  transition: all 0.3s ease-in-out;
}

#oubli_form a {
  position: relative;
  color: rgb(154, 153, 153);
  text-decoration: none;
  z-index: 2;
  margin-top: 0.9rem;
  margin-left: 20%;
  transition: all 0.2s ease-in-out;
}


#oubli_form a:hover {
  color: #002d88;
}

.dbl-btn{
  display: flex;
  max-width: 73%;
  bottom: 0;
  align-items: center;
  margin-top: 4rem;
}


@media screen and (min-width: 2300px) {
  html {
    font-size: 17px;
  }
  
  main::after {
    transform: translate(-90%, 6300%) rotate(115deg);
  }

  header {
    place-content: center;
  }
}

@media screen and (min-width: 3200px) {
  html {
    font-size: 25px;
  }
  main::after {
    transform: translate(-90%, 9500%) rotate(115deg);
    height: 5px;
  }
}

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

  main::after {
    content: "";
    display: none;
  }
  
  #fields {
    max-width: 70%;
  }

  .dbl-btn{
    max-width: 85%;
  }
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 11px;
  }
  
  #fields {
    max-width: 100%;
  }
  
  #oubli_form {
    place-content: right;
    text-align: right;
    margin: 0 0 0 auto;
    justify-content: flex-end;
  }

  .dbl-btn{
    max-width: 100%;
  }
}

@media screen and (max-width: 1080px) {
  #page {
    flex-direction: column;
    background-image: none;
    background-color: white;
  }
  
  .contenu {
    display: flex;
    flex-direction: column;
    max-width: 38rem;
    justify-content: center;
    margin: 0 auto;
    height: 100%;
  }
  
  header, main {
    height: unset;
  }
  
  header {
    place-content: center;
  }
  main {
    margin-left: unset;
  }
  
  #logo {
    display: unset;
    margin-bottom: 5rem;
  }
}

@media screen and (max-width: 520px) {
  .contenu {
    padding: 2rem;
  }
}