/*
 * Copyright © 2023 Schneider Electric
*/
@font-face {
  font-display: swap;
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300;
  src: local("Nunito Light"), local("Nunito-Light"), url("./../fonts/nunito-light.woff2") format("woff2"),
    url("./../fonts/nunito-light.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  src: local("Nunito Regular"), local("Nunito-Regular"), url("./../fonts/nunito-regular.woff2") format("woff2"),
    url("./../fonts/nunito-regular.woff") format("woff");
}

html {
  height: 100%;
}

.inputs,
input,
button {
  font-family: arial;
}

body,
body img.hq {
  background-image: url(../images/bg_lq.jpg?v=6.0.4.90);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body img.hq {
  background-image: url(../images/bg_1x.jpg?v=6.0.4.90);
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100vw;
}

body.loginPageLoaded img.hq {
  transition: opacity 1s linear;
}

body.loading img.hq {
  background-image: none;
  opacity: 0;
}

.spinner {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  margin-left: -25px;
  border: 3px solid rgba(130, 147, 166, 0.2);
  border-radius: 50%;
  border-left-color: #8293a6;
  animation: rot 1s infinite linear;
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

pre {
  font-family: "Nunito", sans-serif;
  color: #304760;
}

h1,
h2,
h3 {
  font-weight: normal;
  margin: 0;
  color: #3dcd58;
  fill: #3dcd58;
}

h1 {
  height: 24px;
  width: 128px;
}

h2 {
  font-size: 40px;
  font-weight: bold;
  padding-top: 12px;
  white-space: nowrap;
}

i {
  font-weight: normal;
  font-style: normal;
}

h3 {
  font-size: 12px;
  padding-left: 2px;
  color: #8293a6;
}

.a,
.b {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  border-top: 40px solid #3dcd58;
  background: #fff;
  padding-bottom: 30px;
  height: calc(100% - 80px);
}

.a {
  justify-content: center;
  padding-left: 30px;
  flex: 1;
}

.inputs {
  border-top: 40px solid rgba(61, 205, 88, 0.5);
  flex: 0 0 320px;
}

label {
  color: #8293a6;
  font-size: 15px;
  margin: 5px 30px;
  display: flex;
  flex-direction: column;
}

input {
  font-size: 17px;
  border: none;
  color: #304760;
  border-bottom: 1px solid #c5cbd0;
  border-radius: 0;
  margin: 0px 0px 1px 0px;
  min-height: 33px;
}

input:focus,
input:hover {
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid #42b4e6;
  margin: 0px 0px 0px 0px;
}

input,
button {
  min-height: 41px;
  width: 100%;
  left: 0;
  color: #304760;
  transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
  /*Firefox changes the margin and border in steps - due to the transition -
which makes the input div change height momentarily. This causes adjacent
divs to "jump" around.*/
  -moz-transition: none;
}

button {
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #c5cbd0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.5;
}

button:enabled:hover,
button:enabled:focus {
  border-color: #42b4e6;
  background: #42b4e6;
  color: #fff;
}

i {
  font-style: normal;
}

footer {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 12px;
  padding: 15px;
  display: flex;
  min-height: 104px;
  font-family: Arial, sans-serif;
  font-variant-numeric: proportional-nums;
}

footer div:first-child {
  flex: 1;
}

footer svg {
  height: 54px;
  width: 260px;
}

footer a {
  color: #fff;
  display: block;
  margin-bottom: 10px;
}

footer a:last-child {
  margin-top: 10px;
}

#error-box {
  background: #b10043;
  color: #fff;
  margin: 0 30px;
  padding: 15px;
  display: none;
}

.show {
  display: flex !important;
}

.root {
  display: flex;
  opacity: 0;
  transform: translateY(30px);
  transition: all 500ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.root.done {
  transform: none;
  opacity: 1;
}

@media screen and (prefers-reduced-motion: reduce) {
  .root {
    transform: none;
  }
}

.info {
  border-top: 40px solid rgba(61, 205, 88, 0.5);
  flex: 1;
}

#frm {
  width: 100%;
  z-index: 1;
}

#reginfo {
  font-size: 14px;
  color: #8293a6;
  display: none;
  flex-direction: column;
}

#reginfo.not-registered {
  background: #ffd100;
  color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  display: flex;
  flex-direction: row;
  align-self: flex-start;
  align-items: center;
  border-radius: 4px;
  font-size: 17px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

#eula {
  font-size: 12px;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: flex-end;
  padding: 5px 2px;
  color: #8293a6;
}

#eula {
  margin-top: 15px;
}

#eula a {
  color: inherit;
}

#eula a:hover,
a:hover {
  color: #ffd100;
}

@media (max-width: 790px) {
  #reginfo {
    height: 0;
    overflow: hidden;
    display: none;
  }

  #reginfo.not-registered {
    min-height: 26px;
    height: auto;
    margin-right: 30px;
    font-size: 15px;
  }

  footer {
    flex-direction: column-reverse;
  }

  footer svg {
    margin-bottom: 15px;
  }

  .info {
    border-top: none;
    flex: auto;
  }

  .root {
    flex-direction: column;
  }

  .b {
    height: initial;
  }

  .a {
    padding: none;
    background: none;
    display: block;
    border: none;
    margin: none;
    height: initial;
  }

  .inputs,
  .b {
    border-top-width: 20px;
  }

  body {
    background-image: url(../images/bg_p_lq.jpg?v=6.0.4.90);
  }

  h1,
  h2,
  h3,
  #eula {
    color: #fff;
    fill: #fff;
    text-shadow: 0px 0px 2px #000;
  }

  h1 {
    padding-top: 42px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 14px;
  }

  @media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body img.hq {
      background-image: url(../images/bg_p_2x.jpg?v=6.0.4.90);
    }

    body {
      background-image: url(../images/bg_p_lq.jpg?v=6.0.4.90);
    }
  }
}

@media (min-width: 791px) {
  body img.hq {
    background-image: url(../images/bg_t_1x.jpg?v=6.0.4.90);
  }

  body {
    background-image: url(../images/bg_t_lq.jpg?v=6.0.4.90);
  }

  footer {
    padding: 15px 30px;
  }

  @media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body img.hq {
      background-image: url(../images/bg_t_2x.jpg?v=6.0.4.90);
    }
  }
}

@media (min-width: 980px) {
  body img.hq {
    background-image: url(../images/bg_1x.jpg?v=6.0.4.90);
  }

  body {
    background-image: url(../images/bg_lq.jpg?v=6.0.4.90);
  }

  .b {
    padding-right: 30px;
  }

  .a {
    padding-left: 60px;
  }

  .inputs {
    flex: 0 0 480px;
  }

  footer {
    padding: 15px 60px;
  }

  @media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body img.hq {
      background-image: url(../images/bg_2x.jpg?v=6.0.4.90);
    }
  }
}

@media (min-width: 1440px) {
  .b {
    padding-right: 180px;
  }

  .a {
    padding-left: 180px;
  }

  .inputs {
    flex: 0 0 650px;
  }

  footer {
    padding: 15px 180px;
  }
}

svg {
  width: 26px;
  height: 26px;
  margin: 3px;
}

:focus {
  outline: none;
}

#enableGuest {
  display: none;
}

#enableSSO {
  display: none;
}

#cont {
  display: none;
  font-size: 13px;
  margin: 9px 0;
}

#dod-container {
  display: none;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  /* height is needed by IE11 to behave */
  height: 100%;
  z-index: 2;
}

#dod {
  display: flex;
  font-family: Consolas, monospace;
  flex-direction: column;
  height: calc(100% - 30px);
  padding: 15px;
  background: #e2e9ef;
  width: 100%;
  max-width: 600px;
  margin: auto;
  max-height: 600px;
}

@media all and (-ms-high-contrast: none) {
  /*IE11*/
  body {
    height: 100%;
  }

  #dod {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

#dod-footer {
  min-width: 150px;
  display: flex;
  justify-content: space-between;
}

#dod-footer button {
  flex: 0 0 150px;
}

#dod-body {
  margin-bottom: 15px;
  overflow: auto;
  font-size: 15px;
  flex: 1;
}

#unsupported {
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  position: absolute;
  justify-content: center;
  align-items: center;
}

#unsupported div {
  flex: 0 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffd100;
  color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 6px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

#unsupported li a {
  color: inherit;
}

#unsupported li {
  margin-bottom: 10px;
  list-style: none;
}

#unsupported h2 {
  overflow: hidden;
  color: rgba(0, 0, 0, 0.5);
  padding: 0;
}

#unsupported h3 {
  margin-top: 15px;
  color: inherit;
}

.logo {
  width: 128px;
  height: 24px;
}

.reginfo {
  padding-right: 5px;
  margin: 0;
}

.reginfo > path {
  fill: currentColor;
}
