@charset "UTF-8";
html {
  height: 100%;
  min-height: 550px;
}

body {
  height: 100%;
  color: #877974;
  font-family: "pt_sansbold", "arial", sans-serif;
  font-size: 22px;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

.vert {
  color: #82bf55;
}

#page {
  height: 100%;
  background: url(../images/bg_login_doubs.png) no-repeat center right;
  background-size: auto 100%;
  position: relative;
}

#logo-olfp-large {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  text-align: right;
}

#logo-olfp-large img {
  display: inline-block;
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
  border: 0;
}

section {
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

section .form-content {
  height: 70%;
  min-height: 500px;
  width: 70%;
  max-width: 550px;
  margin-left: 15%;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

section .form-content > header,
section .form-content > main,
section .form-content > footer {
  width: 100%;
}

.logo {
  width: 45%;
  max-width: 250px;
  min-width: 100px;
}

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

.instructions {
  text-transform: uppercase;
  font-size: 1.5em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.field {
  position: relative;
  height: 50px;
  border-bottom: 1px solid #877974;
  margin-bottom: 10px;
  width: 100%;
}

label {
  position: absolute;
  top: 0;
  left: 0;
  width: 35px;
  text-align: center;
}

label img {
  height: 24px;
  width: auto;
  margin: 18px auto;
}

input[type=email],
input[type=text],
input[type=password] {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 35px;
  padding-left: 10px !important;
  width: calc(100% - 35px - 10px) !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  height: 35px !important;
  font-size: 1em !important;
  background-color: transparent !important;
  color: #877974 !important;
}

input[type=email]:focus,
input[type=text]:focus,
input[type=password]:focus {
  outline: 0;
  box-shadow: 0 1px 0 0 #90d45d !important;
}

input[type=email] + span.label,
input[type=text] + span.label,
input[type=password] + span.label {
  position: absolute;
  text-align: center;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

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

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

::-webkit-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  opacity: 1;
  /* Firefox */
  line-height: 0.9;
}

::-moz-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  opacity: 1;
  /* Firefox */
  line-height: 0.9;
}

:-ms-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  opacity: 1;
  /* Firefox */
  line-height: 0.9;
}

::-ms-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  opacity: 1;
  /* Firefox */
  line-height: 0.9;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  opacity: 1;
  /* Firefox */
  line-height: 0.9;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  line-height: 0.9;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #877974;
  font-family: "pt_sansitalic", "arial", sans-serif;
  line-height: 0.9;
}

#oubli_form {
  padding-top: 15px;
  font-size: 0.7em;
  letter-spacing: 1px;
}

#oubli_form a {
  font-family: "pt_sansregular", "arial", sans-serif;
  color: #877974;
  text-decoration: underline;
  letter-spacing: initial;
}

#oubli_form a:focus, #oubli_form a:hover {
  outline: none;
  color: #90d45d;
}

.button-form {
  display: inline-block;
  color: #82bf55;
  text-transform: uppercase;
  font-size: 1.5em;
  line-height: 40px;
  height: 40px;
  position: relative;
  transition: all 0.3s ease-in-out;
  z-index: 2;
}

.button-form span {
  display: inline-block;
  vertical-align: top;
  margin-left: 25px;
  position: relative;
  height: 40px;
  width: 40px;
  background: url(../images/next.png) no-repeat center center;
  background-size: 28px auto;
  transition: all 0.3s ease-in-out;
}

.button-form span:after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: #82bf55;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: all 0.3s ease-in-out;
}

.button-form:focus, .button-form:hover {
  outline: none;
  color: #90d45d;
}

.button-form:focus span:after, .button-form:hover span:after {
  transform: translate(-50%, -50%) rotate(135deg);
  background-color: #90d45d;
}

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 transparent inset !important;
  -webkit-text-fill-color: #877974 !important;
}

/* 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;
}

@media screen and (max-width: 1280px) {
  body {
    font-size: 18px;
  }
  section {
    width: 75%;
  }
  section .form-content {
    padding: 0 35px;
    background-color: rgba(255, 255, 255, 0.8);
  }
}

@media screen and (max-width: 992px) {
  body {
    font-size: 15px;
  }
  #page {
    background-size: cover;
  }
  section {
    width: 100%;
  }
  section .form-content {
    padding: 0 35px;
    background-color: rgba(255, 255, 255, 0.8);
    position: relative;
  }
}

@media screen and (max-width: 600px) {
  #page {
    background: none;
    min-height: 600px;
  }
  section {
    height: initial;
  }
  section .form-content {
    max-width: initial;
    width: 100%;
    margin: 0;
  }
  #logo-olfp-large {
    width: 75%;
    margin-left: auto;
  }
}

@media screen and (max-width: 320px) {
  body {
    font-size: 14px;
  }
  section .form-content {
    height: 100%;
  }
}
