/* base styles that are loaded in app */
*,
:after,
:before {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  width: 100%;
}

:root {
  --font-variant: 0.875;
  --dark-orange: #dd603a;
  --white: #FFFFFF;
  --font-color: #2c2c2c;
  --font-color-light: #8497a0;
  --font-primary-dark-blue: #175778;
  --font-primary-light-blue: #6CCACD;
  --primary-light-blue: 108, 202, 205;
  --secondary-light-blue: 108, 202, 205;
  --primary-dark-blue: 23, 87, 120;
  --secondary-dark-blue: 0, 30, 53;
}

@media screen and (min-height: 600px) and (min-width: 1367px) {
  :root {
    --font-variant: 1;
    --inner-padding-factor: 1;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
  color: var(--font-color);
  font-size: calc(var(--font-variant)*1rem);
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  line-height: calc(var(--font-variant)*1.5rem) !important;
}

#signIn fieldset {
  margin: 0;
}

#signIn button,
#signIn input,
#signIn optgroup,
#signIn select,
#signIn textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit !important;
  width: 100%;
}

#signIn label {
  display: inline-block;
  margin-bottom: .5rem;
}

#signIn legend {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  font-size: 1.5rem;
  line-height: inherit;
  color: inherit;
  white-space: normal;
}

/* Sign In page styles */
.blue-gradient {
  --start-gradient-color: var(--primary-dark-blue);
  --end-gradient-color: var(--primary-light-blue);

  --background-gradient: linear-gradient(135deg, rgba(var(--start-gradient-color), 1) 0, rgba(var(--end-gradient-color), 1) 100%);
  --background-gradient-light: linear-gradient(135deg, rgba(var(--start-gradient-color), .4) 0, rgba(var(--end-gradient-color), .4) 100%);
  background-color: var(--end-gradient-color);
  background-image: var(--background-gradient);

}

@-ms-viewport {
  width: device-width;
}

body,
html {
  min-height: 100vh;
  width: 100%
}

body {
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  font-weight: 300;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  font-size: 14px;
}

.wrong-browser {
  align-content: center;
  display: none;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
  color: #fff;
  padding: 0 1rem;
}

.show-browser-message.wrong-browser {
  display: flex;
}

.wrong-browser .wrong-browser-message {
  background-color: transparent;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, .05), 0 8px 8px 0 rgba(0, 0, 0, .04);
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  font-size: 1rem;
  height: fit-content;
  align-self: center;
  line-height: 1.5;
  padding: 2rem;
  max-width: 34rem;
}

.wrong-browser .wrong-browser-message h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "Roboto", "Helvetica", Arial, sans-serif;
  line-height: 1.125;
  font-weight: 300;
  margin-top: 0;
}

.wrong-browser .wrong-browser-message p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.wrong-browser .wrong-browser-message a {
  text-decoration: underline;
  color: #fff !important;
}

.wrong-browser .wrong-browser-message a:hover {
  color: #fff !important;
  opacity: .8;
}

.wrong-browser .wrong-browser-message strong {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 500;
}

#signIn {
  font-family: var(--font-family);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  justify-content: center;
  width: 100%;
  min-height: 120vh;
  height: 100%;
  padding: 0;
  /*width: 100%; !* calc(100% - 40px); *!*/

  /* Sign In page CSS Variables */
  --font-family: "Trebuchet MS", Helvetica, sans-serif !important;

  --icon-login-size: 20vh;

}

@media only screen and (min-width: 560px) and (min-height: 600px) {
  #signIn {
    width: 100%;
    margin: 0;
    /*padding: 20px;*/
  }
}

#signIn #signInWrap {
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 0 auto;
  padding: 20px 20px;
  width: 100%;
  transition: height 300ms;
  max-width: 550px;
  max-height: 60rem;
}

@media only screen and (min-width: 475px) and (min-height: 475px) {
  #signIn #signInWrap {
    background: transparent;
    padding: 1rem 5vh;
  }
}

@media only screen and (min-width: 560px) and (min-height:600px) {
  #signIn #signInWrap {
    padding: 2rem 20px 3rem;
  }
}

@media only screen and (min-width: 560px) and (min-height:475px) {
  #signIn #signInWrap {
    background-color: transparent;
    min-width: 300px;
    width: 70vw;
  }
}

#signIn #signInWrap .welcome-title h1 {
  color: #fff;
  margin: 0 1vh 1.5vh;
  font-family: var(--font-family);
  margin-bottom: 2em;
}

#signIn #welcomeTitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4em;
  text-align: center;
}

#signIn #welcomeTitle #app-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

#signIn #welcomeTitle #app-title .app-icon {
  margin-right: 0.5rem;
}

#signIn #welcomeTitle>span {
  vertical-align: middle;
  display: inline;
}

/* The greeting keeps the #welcomeTitle size; the #welcomeTitle>span rule below (4vh) was
   written for a direct-child span that did not previously exist and must not enlarge it. */
#signIn #welcomeTitle>#welcomeGreeting {
  font-size: inherit;
}

@media only screen and (min-width: 560px) and (min-height: 400px) {
  #signIn #welcomeTitle {
    font-size: 3vh;
    font-weight: 400;
  }

  #signIn #welcomeTitle>span {
    font-size: 4vh;
  }
}

@media only screen and (min-width: 560px) and (min-height: 600px) {
  #signIn #welcomeTitle {
    line-height: 2em;
  }
}

#signInForm {
  position: relative;
  flex: 1;
}

#signIn #signInForm {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, .12), 0 2px 2px 0 rgba(0, 0, 0, .24);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1.6rem;
}

@media only screen and (min-width: 768px) {
  #signIn #signInForm {
    /*padding: 35px 50px 55px;*/
  }

  .error #warningMessage {
    bottom: 10px;
    width: calc(100% - 100px);
    margin: 0 auto;
  }
}

#signIn #signInForm button {
  border: none;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-size: 3vh;
  padding: 2vh;
  font-family: var(--font-family);
}

#signIn #signInForm button:disabled {
  cursor: wait;
  color: rgba(255, 255, 255, .7);
  opacity: .7;
}

/* https://learn.microsoft.com/en-us/entra/identity-platform/howto-add-branding-in-apps */
#signIn #signInForm button.ms-button {
  font: 25px "Segoe UI Regular";
  font-weight: 600;
  background-color: #FFFFFF;
  border: 1px solid #8C8C8C;
  padding: 17px;
  color: #5E5E5E;

  img {
    height: 29px;
    vertical-align: text-bottom;
  }
}

#warningMessage {
  display: none;
  bottom: 7px;
  width: calc(100% - 60px);
  margin: 1.5rem auto 0;
  font-size: 1rem;
  text-align: center;
  padding-top: .6rem;
}

#signIn #signInForm.error input {
  border-color: var(--dark-orange);
  color: var(--dark-orange);
}

.error #warningMessage {
  color: var(--dark-orange);
  display: block;
}

.info #warningMessage {
  color: var(--font-primary-dark-blue);
  display: block;
}

#signIn {
  opacity: 0;
  position: relative;
  padding: 3rem 0;
  display: none;
}

#signIn.showLogin {
  display: flex;
  opacity: 1;
  transition: opacity 0.6s linear;
  z-index: 100;
}

.validating #signIn.showLogin {
  /*display: none;*/
  position: absolute;
  opacity: 0;
}

.showLogin+#app {
  opacity: 0;
}

#app {
  opacity: 1;
  transition: opacity 1s linear;
}

/* Site environment */
#environmentTitle {
  /* In normal flow (not absolutely positioned) and right-aligned, so when the environment
     name is present it sits in the top-right corner and pushes the button below it. */
  align-self: flex-end;
  background-color: var(--dark-orange);
  border-radius: 1.5rem;
  color: var(--white);
  cursor: help;
  text-align: center;
  font-family: var(--font-family);
  font-size: 1.5vh;
  font-weight: 400;
  margin: 0 0 1rem;
  padding: .3rem .8rem;
  text-transform: capitalize;
}

#environmentTitle.uppercase {
  text-transform: uppercase;
}

.hide-environment {
  display: none;
}

#app+.showLogin,
.validating #app {
  opacity: 0;
}

.is-loading #loading {
  display: block;
  opacity: 1;
}

#loading {
  display: none;
}

#signIn.is-loading #signInWrap {
  position: absolute;
  opacity: 0;
}

#loading h3 {
  text-align: center;
  padding-bottom: 20px;
  font-family: var(--font-family);
  font-weight: 300;
}

.validating {
  background-color: #ffffff;
}

.validating #basicLoader {
  background-color: #ffffff;
  display: block;
  position: absolute;
  left: calc(50% - 50px);
  top: calc(50% - 50px);
}

#basicLoader {
  display: none;
}

.signin-loader,
.signin-loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}

.signin-loader {
  margin: 100px auto;
  font-size: 25px;
  width: .825em;
  height: .825em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load5 1.1s infinite ease;
  animation: load5 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

#basicLoader .signin-loader {
  border-color: rgba(0, 176, 240, 0.8);
  border-left-color: rgb(233, 131, 0);
}

@-webkit-keyframes load5 {

  0%,
  100% {
    box-shadow: 0rem -2.6rem 0em 0em #ff8500, 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.5);
  }

  14.29% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.7), 2.03rem -1.621rem 0em 0em #00b0f0, 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  28.57% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.5), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.7), 2.54rem 0.58rem 0em 0em #008bc0, 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  37.5% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.5), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.7), 1.13rem 2.34rem 0em 0em #0079db, -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  42.86% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.5), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.7), -1.13rem 2.34rem 0em 0em #003c69, -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  57.14% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.5), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.7), -2.54rem 0.58rem 0em 0em #d77a27, -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  71.43% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.5), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.7), -2.03rem -1.621rem 0em 0em var(--dark-orange);
  }

  85.71% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.5), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.7);
  }
}

@keyframes load5 {

  0%,
  100% {
    box-shadow: 0rem -2.6rem 0em 0em #ff8500, 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.5);
  }

  14.29% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.7), 2.03rem -1.621rem 0em 0em #00b0f0, 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  28.57% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.5), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.7), 2.54rem 0.58rem 0em 0em #008bc0, 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  37.5% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.5), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.7), 1.13rem 2.34rem 0em 0em #0079db, -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  42.86% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.5), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.7), -1.13rem 2.34rem 0em 0em #003c69, -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.2), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  57.14% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.5), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.7), -2.54rem 0.58rem 0em 0em #d77a27, -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.2);
  }

  71.43% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.5), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.7), -2.03rem -1.621rem 0em 0em var(--dark-orange);
  }

  85.71% {
    box-shadow: 0rem -2.6rem 0em 0em rgba(255, 133, 0, 0.2), 2.03rem -1.621rem 0em 0em rgba(0, 176, 240, 0.2), 2.54rem 0.58rem 0em 0em rgba(0, 139, 192, 0.2), 1.13rem 2.34rem 0em 0em rgba(0, 121, 219, 0.2), -1.13rem 2.34rem 0em 0em rgba(0, 60, 105, 0.2), -2.54rem 0.58rem 0em 0em rgba(215, 122, 39, 0.5), -2.03rem -1.621rem 0em 0em rgba(217, 91, 42, 0.7);
  }
}



/* progress bar */
#progress {
  display: none;
  height: 3rem;
  justify-content: center;
  width: 100%;
}

#progress progress {
  visibility: hidden;
  width: calc(100% - 100px);
}

#signIn.show-progressbar {}

#signIn.show-progressbar #progress {
  display: flex;
}

body h3.progress-title {
  display: none;
}

#signIn.show-progressbar h3.progress-title {
  color: #FFF;
  display: block;
  font-size: 1.2rem;
  font-family: var(--font-family);
  font-weight: 100;
  margin-bottom: 1rem;
  text-align: center;
}

#signIn.show-progressbar .icon-login {
  margin: 0 auto;
  flex-grow: 0.00001 !important;
  transition: margin 300ms linear;
}

#signIn.show-progressbar .icon-login svg {
  opacity: 0;
  transition: opacity 300ms linear;
}

#signIn.show-progressbar h1 {
  display: none;
}

body .welcome-title,
body #iconLogin,
body #signInForm {
  transition: flex-grow 300ms linear;
}

#signIn.show-progressbar #signInWrap {
  height: 12rem !important;
}

#signIn.show-progressbar form #progress {
  display: block;
}

#signIn.show-progressbar form #progress progress,
#signIn.show-progressbar form #progress progress::-webkit-progress-bar {
  -webkit-appearance: none;
  background-color: var(--end-gradient-color);
  background-image: var(--background-gradient-light);
  border: none;
  border-radius: 3px;
  height: 3rem;
  visibility: visible;
  width: 100%;
}

#signIn.show-progressbar form #progress progress::-moz-progress-bar {
  background-color: var(--end-gradient-color);
  background-image: var(--background-gradient);
  border-radius: 3px 0 0 3px;
  transition: all 1s linear;
}

#signIn.show-progressbar form #progress progress::-webkit-progress-value {
  background-color: var(--end-gradient-color);
  background-image: var(--background-gradient);
  border-radius: 3px 0 0 3px;
  transition: all 1s linear;
}

#signIn .app-icon {
  height: 5vh;
  display: inline-block;
}

#signIn .plain-text {
  text-align: center;
  line-height: 1.5rem;
  padding: .6rem .3rem .6rem .3rem;
  color: var(--font-color-light);
}

.maintenance-box {
  flex: 0 0 auto;         /* Do not grow, do not shrink, stay as big as content */
  background: #ffffff;
  position: relative;
  padding: 20px;
  margin-top: 24px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  border: 1px solid #e1e1e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.maintenance-box .mw-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.maintenance-box .mw-line1,
.maintenance-box .mw-line2 {
  margin: 4px 0;
}

.maintenance-box .mw-date {
  font-weight: 400;
  margin-top: 5px;
  color: #000;
}

.hide {
  display: none;
}

/* Maintenance Styles */
body.maintenance {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f3d4c 0%, #2f6f7a 100%);
  color: #ffffff;
  text-align: center;
  font-family: "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

/* Container */
div #maintenanceWrapper {
  width: 400px;
  max-width: 400px;
}

/* Logo */
div#maintenanceWrapper > img {
  max-width: 220px;
  width: 100%;
  margin-bottom: 20px;
}

/* Message text */
.mw-message {
  width: 75vw;
  max-width: 630px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.8rem;
  opacity: 0.95;
  letter-spacing: 0.3px;
}
