﻿@font-face {
  font-family: 'AmpleSoft-Regular';
  src: url('../webfonts/Soneri Type - AmpleSoft-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'AmpleSoft-Bold';
  src: url('../webfonts/Soneri Type - AmpleSoft-Bold.otf') format('opentype');
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

html {
  font-size: 100%;
}

body {
  height: 100vh;
  overflow: auto;
  width: 100vw;
  background-image: url('../img/VTI/VTIBackground.png');
  /* background-color: grey; */
  background-size: cover;
  background-position-y: center;
  font-size: 16px;
  font-family: AmpleSoft-Regular, sans-serif;
}

#AuthForm {
  position: absolute;
  top: 50%;
  right: 15%;
  display: flex;
  flex-direction: column;
  width: 450px;
  min-height: 540px;
  padding: 25px 35px;
  padding-bottom: 80px;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  background-color: rgba(249, 249, 249, 0.8);
  transform: translateY(-50%);
  color: #586178;
}

#AuthForm>.header {
  flex: 0 0 auto;
}

#AuthForm>.header>img {
  max-width: 70%;
  max-height: 150px;
  margin: 0 auto 20px auto;
}

#AuthForm .text-acceuil {
  text-align: center;
  font-size: 22px;
  margin-bottom: 30px;
}

.title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-size: 1.6rem;
  flex-wrap: wrap;
  margin: 10px 0;
}

.title .application-name {
  font-size: 1.8rem;
  font-weight: bold;
  /*font-variant-caps: small-caps;*/
  text-align: center;
}

.alert {
  margin: 10px 0;
  padding: 10px;
  border-radius: 3px;
  font-size: 1rem;
}

.alert.error {
  border: 1px solid darkred;
  background-color: lightcoral;
  color: darkred;
}

.alert.success {
  border: 1px solid darkgreen;
  background-color: lightgreen;
  color: darkgreen;
}

.forgot {
  display: flex;
  margin-top: 2px;
  text-align: right;
  font-size: 0.7rem;
}

.forgot a {
  text-decoration: none;
  color: #586178;
}

.forgot a:hover {
  text-decoration: underline;
}

.command {
  margin: 20px 0 10px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.command .btn {
  padding: 15px 30px;
  border: none;
  user-select: none;
  cursor: pointer;
  border-radius: 3px;
  transition: color box-shadow;
  transition-duration: 0.3s;
  font-size: 1rem;
}

.command .btn:not(:last-child) {
  margin-right: 5px;
}

.command .btn:hover,
.command .btn:focus {
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4);
}

.command .btn:active {
  outline: none;
  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.4);
}

.command .btn.sign-in-techform {
  flex: 0 0 auto;
  min-width: 0.1px;
  background: #009CC4;
  color: #fff;
  font-family: 'AmpleSoft-Bold' sans-serif;
  font-weight: 700;
}

.command .btn.sign-in-techform:disabled {
  background: #2bd4ff;
  cursor: not-allowed;
  box-shadow: inherit;
}

.command .btn.sign-in-azure {
  flex: 0 0 auto;
  min-width: 0.1px;
  display: inline-flex;
  justify-content: space-around;
  align-items: center;
  background-color: #000;
  font-family: 'Segoe UI Semibold', 'Segoe UI';
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.command .btn.sign-in-azure .microsoft-logo {
  height: 1.5rem;
  margin-right: 4px;
}

.command .btn.sign-in-azure:hover {
  background-color: #4B4B4B;
}

.command.solo {
  justify-content: flex-end;
}

.primary-main {
  background: linear-gradient(137deg, #0094cc 0%, #3a5da2 100%);
  /* background: red; */
  color: #ECF1F8;
}

.primary-main:hover {
  background: #3a5da2;
}

.primary-main:disabled {
  background: #617db4;
}

.green-main {
	background: linear-gradient(137deg, #70B851 0%, #4e8436 100%);
	/*background: linear-gradient(137deg, #94cc00 0%, #5da23a 100%);*/
	color: #ECF1F8;
}

.green-main:hover {
  background: #4e8436;
}

.green-main:disabled {
  background: #7db461;
}

.button {
  min-height: 38px;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 18px;
  border: 0px solid;
  cursor: pointer;
  gap: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: AmpleSoft-Regular, sans-serif;

}

.button>span.first {
  padding-right: 5px;
}

.button>span.last {
  padding-left: 5px;
}

.button-large {
  width: 100%;
}

@media screen and (max-width: 1280px),
screen and (max-height: 580px) {
  #AuthForm {
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateY(0);
    border-radius: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
  }

  #AuthForm>.content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media screen and (max-width: 780px) {
  #AuthForm {
    left: 0;
    width: 100%;
    box-shadow: inherit;
  }
}

.authentication .main-container > form .pure-material-textfield-outlined {
  width: 100%;
  margin-bottom: 20px;
}

.authentication .pure-material-textfield-outlined {
  --pure-material-safari-helper1: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
  position: relative;
  display: inline-block;
  padding-top: 6px;
  font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}
.authentication .pure-material-textfield-outlined > input,
.authentication .pure-material-textfield-outlined > textarea {
  box-sizing: border-box;
  margin: 0;
  border: solid 1px;
  /* Safari */
  border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
  border-top-color: transparent;
  border-radius: 4px;
  padding: 15px 13px 15px;
  width: 100%;
  height: inherit;
  color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
  background-color: transparent;
  box-shadow: none;
  /* Firefox */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  caret-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
  transition: border 0.2s, box-shadow 0.2s;
}
.authentication .pure-material-textfield-outlined > input + span,
.authentication .pure-material-textfield-outlined > textarea + span {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
  width: 100%;
  max-height: 100%;
  color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
  font-size: 75%;
  line-height: 15px;
  cursor: text;
  transition: color 0.2s, font-size 0.2s, line-height 0.2s;
}
.authentication .pure-material-textfield-outlined > input + span::before,
.authentication .pure-material-textfield-outlined > input + span::after,
.authentication .pure-material-textfield-outlined > textarea + span::before,
.authentication .pure-material-textfield-outlined > textarea + span::after {
  content: "";
  display: block;
  box-sizing: border-box;
  margin-top: 6px;
  border-top: solid 1px;
  border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
  min-width: 10px;
  height: 8px;
  pointer-events: none;
  box-shadow: inset 0 1px transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.authentication .pure-material-textfield-outlined > input + span::before,
.authentication .pure-material-textfield-outlined > textarea + span::before {
  margin-right: 4px;
  border-left: solid 1px transparent;
  border-radius: 4px 0;
}
.authentication .pure-material-textfield-outlined > input + span::after,
.authentication .pure-material-textfield-outlined > textarea + span::after {
  flex-grow: 1;
  margin-left: 4px;
  border-right: solid 1px transparent;
  border-radius: 0 4px;
}
.authentication .pure-material-textfield-outlined:hover > input,
.authentication .pure-material-textfield-outlined:hover > textarea {
  border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
  border-top-color: transparent;
}
.authentication .pure-material-textfield-outlined:hover > input + span::before,
.authentication .pure-material-textfield-outlined:hover > textarea + span::before,
.authentication .pure-material-textfield-outlined:hover > input + span::after,
.authentication .pure-material-textfield-outlined:hover > textarea + span::after {
  border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
}
.authentication .pure-material-textfield-outlined:hover > input:not(:focus,:-webkit-autofill):placeholder-shown,
.authentication .pure-material-textfield-outlined:hover > textarea:not(:focus,:-webkit-autofill):placeholder-shown {
  border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
}
.authentication .pure-material-textfield-outlined > input:not(:focus,:-webkit-autofill):placeholder-shown,
.authentication .pure-material-textfield-outlined > textarea:not(:focus,:-webkit-autofill):placeholder-shown {
  border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
}
.authentication .pure-material-textfield-outlined > input:not(:focus,:-webkit-autofill):placeholder-shown + span,
.authentication .pure-material-textfield-outlined > textarea:not(:focus,:-webkit-autofill):placeholder-shown + span {
  font-size: inherit;
  line-height: 68px;
}
.authentication .pure-material-textfield-outlined > input:not(:focus,:-webkit-autofill):placeholder-shown + span::before,
.authentication .pure-material-textfield-outlined > textarea:not(:focus,:-webkit-autofill):placeholder-shown + span::before,
.authentication .pure-material-textfield-outlined > input:not(:focus,:-webkit-autofill):placeholder-shown + span::after,
.authentication .pure-material-textfield-outlined > textarea:not(:focus,:-webkit-autofill):placeholder-shown + span::after {
  border-top-color: transparent;
}
.authentication .pure-material-textfield-outlined > input:focus,
.authentication .pure-material-textfield-outlined > input:-webkit-autofill,
.authentication .pure-material-textfield-outlined > textarea:-webkit-autofill,
.authentication .pure-material-textfield-outlined > textarea:focus {
  border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
  border-top-color: transparent;
  box-shadow: inset 1px 0 var(--pure-material-safari-helper1), inset -1px 0 var(--pure-material-safari-helper1), inset 0 -1px var(--pure-material-safari-helper1);
  outline: none;
}
.authentication .pure-material-textfield-outlined > input:focus + span,
.authentication .pure-material-textfield-outlined > input:-webkit-autofill + span,
.authentication .pure-material-textfield-outlined > textarea:-webkit-autofill + span,
.authentication .pure-material-textfield-outlined > textarea:focus + span {
  color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}
.authentication .pure-material-textfield-outlined > input:focus + span::before,
.authentication .pure-material-textfield-outlined > input:-webkit-autofill + span::before,
.authentication .pure-material-textfield-outlined > input:focus + span::after,
.authentication .pure-material-textfield-outlined > input:-webkit-autofill + span::after,
.authentication .pure-material-textfield-outlined > textarea:focus + span::before,
.authentication .pure-material-textfield-outlined > textarea:-webkit-autofill + span::before,
.authentication .pure-material-textfield-outlined > textarea:-webkit-autofill + span::after,
.authentication .pure-material-textfield-outlined > textarea:focus + span::after {
  border-top-color: var(--pure-material-safari-helper1) !important;
  box-shadow: inset 0 1px var(--pure-material-safari-helper1);
}
.authentication .pure-material-textfield-outlined > input:disabled,
.authentication .pure-material-textfield-outlined > input:disabled + span,
.authentication .pure-material-textfield-outlined > textarea:disabled,
.authentication .pure-material-textfield-outlined > textarea:disabled + span {
  border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38) !important;
  border-top-color: transparent !important;
  color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
  pointer-events: none;
}
.authentication .pure-material-textfield-outlined > input:disabled + span::before,
.authentication .pure-material-textfield-outlined > input:disabled + span::after,
.authentication .pure-material-textfield-outlined > textarea:disabled + span::before,
.authentication .pure-material-textfield-outlined > textarea:disabled + span::after {
  border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38) !important;
}
.authentication .pure-material-textfield-outlined > input:disabled:placeholder-shown,
.authentication .pure-material-textfield-outlined > input:disabled:placeholder-shown + span,
.authentication .pure-material-textfield-outlined > textarea:disabled:placeholder-shown,
.authentication .pure-material-textfield-outlined > textarea:disabled:placeholder-shown + span {
  border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38) !important;
}
.authentication .pure-material-textfield-outlined > input:disabled:placeholder-shown + span::before,
.authentication .pure-material-textfield-outlined > input:disabled:placeholder-shown + span::after,
.authentication .pure-material-textfield-outlined > textarea:disabled:placeholder-shown + span::before,
.authentication .pure-material-textfield-outlined > textarea:disabled:placeholder-shown + span::after {
  border-top-color: transparent !important;
}
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance:none) {
    .authentication .pure-material-textfield-outlined > input,
    .authentication .pure-material-textfield-outlined > input + span,
    .authentication .pure-material-textfield-outlined > textarea,
    .authentication .pure-material-textfield-outlined > textarea + span,
    .authentication .pure-material-textfield-outlined > input + span::before,
    .authentication .pure-material-textfield-outlined > input + span::after,
    .authentication .pure-material-textfield-outlined > textarea + span::before,
    .authentication .pure-material-textfield-outlined > textarea + span::after {
      transition-duration: 0.1s;
    }
  }
}