*,
::before,
::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(#0c2340, 0);
  outline: 0 !important;
}

html {
  font-size: 10px;
  color: #24292e;
}

body {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400;
  line-height: normal;
  text-rendering: optimizeLegibility;
  margin: 0 auto 0 auto;
  max-width: 1280px;
  position: relative;
  background-color: #f5f8fb;
  animation: fadein 0.2s ease-in-out;
}

/* remove ugly inner dotted borders when click on buttons */
button::-moz-focus-inner {
  border: 0;
}
input::-moz-focus-inner {
  border: 0;
}

h1 {
  padding: 0;
  margin: 0;
  padding-bottom: 0.6em;
  font-size: 1.6rem;
}

h3 {
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

h4 {
  font-size: 1rem;
  padding-top: 0.8em;
  padding-bottom: 0.4em;
  margin: 0;
}

div.neoaltoHeader {
  display: none;
}

div.neoaltoHeaderDesktop {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: -999;
}

div.neoaltoHeaderDesktop-inner {
  display: block;
  margin: 0 auto;
}

#neoaltoHeaderDesktop-img {
  margin-top: 2rem;
  padding: 1rem;
  display: block;
  background-color: transparent;
  height: 10rem;
}

h1#kc-page-title {
  text-align: center;
}

hr {
  border: 0;
  border-bottom: 1px dashed #ccc;
  background: #999;
}

a {
  font-weight: bold;
  color: rgb(0, 97, 160);
  padding: 0.3em 1em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
a:hover {
  color: rgb(0, 97, 160);
  text-decoration: underline;
}
a.reset-password-link {
  font-size: 1.3rem;
}

#kc-content-wrapper {
  font-size: 1.4rem;
  border-radius: 0.3rem;
  padding: 3rem;
  border: 0.1rem solid lightgray;
  background-color: white;
  max-width: 37rem;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#kc-content-wrapper > .alert {
  color: #ca5151;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  max-width: 30rem;
  padding-top: 2rem;
}

#kc-content {
  display: flex;
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

form#kc-form-login {
  margin-top: 2rem;
}

div#kc-form label {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.2em;
}

div#kc-info {
  padding-top: 2rem;
  text-align: justify;
}

div#kc-info-message p {
  padding-top: 2rem;
  text-align: center;
}

div#kc-info-message p.instruction {
  padding-top: 0rem;
  text-align: justify;
}

div#kc-back-link {
  padding-top: 2rem;
  text-align: center;
}

div#kc-bottom-link {
  padding-top: 2rem;
  text-align: center;
}

form#kc-reset-password-form {
  padding-top: 2rem;
}

form#kc-reset-password-form label {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.2em;
}

form#kc-reset-password-form input {
  width: 100%;
}

form#kc-passwd-update-form {
  padding-top: 2rem;
}

form#kc-passwd-update-form label {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.2em;
}

form#kc-passwd-update-form input {
  width: 100%;
}

div#kc-form input {
  width: 30rem;
  max-width: 40rem;
}

div#info-area {
  position: fixed;
  bottom: 0;
  left: 0;
  margin-top: 3em;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5em;
  width: 100%;
}

div#info-area p {
  margin-right: 2em;
  display: inline;
}

input[type="text"],
input[type="password"] {
  padding: 0.5em;
  margin-bottom: 1em;
  border-radius: 0.12em;
  box-shadow: 0 0 0.3rem 0.01rem rgb(0 0 0 / 30%);
  border: 0;
  font-size: 1.2em;
  background-color: #fafafa;
}

span#input-error,
span#input-error-password,
span#input-error-password-confirm,
div.alert-error {
  color: #ca5151;
}

/* the show password toggle of keycloak, its label is translated, so it is matched by its attribute */
button[data-password-toggle] {
  display: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
  box-shadow: 0 0 0.3rem 0.01rem rgb(0, 97, 160 / 30%);
}

input[type="submit"], button[type="submit"] {
  text-decoration: none;
  text-align: left;
  color: white;
  background-color: rgb(0, 97, 160);
  border: none;
  padding: 0.5em 1.5em;
  margin-bottom: 0.5em;
  border-radius: 0.12em;
  box-shadow: 0 0 0.3rem 0.01rem rgb(0 0 0 / 30%);
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  width: 100%;
}

.pf-m-control {
  display: none
}

input[type="submit"]:hover, button[type="submit"]:hover {
  background-color: rgba(0, 97, 160, 0.9);
}

div#kc-form-buttons {
  margin-top: 2rem;
}

div#kc-form-buttons input, div#kc-form-buttons button {
  text-align: center;
}

#kc-login {
  width: 100%;
  text-align: center;
}

#kc-reset-link {
  text-align: center;
  padding: 1rem;
}

div#kc-form-options {
  margin-top: 2rem;
}

div#kc-form-options > div > label, div#kc-form-options > div > div > label {
  display: inline-block;
  font-size: 1.2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: 100%;
}

div#kc-feedback {
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

div#kc-feedback-wrapper {
  padding: 1em;
}

div.feedback-success {
  background-color: rgba(155, 155, 255, 0.1);
}

div.feedback-warning {
  background-color: rgba(255, 175, 0, 0.1);
}

div.feedback-error {
  background-color: rgba(255, 0, 0, 0.1);
}

div#kc-header {
  display: none;
}

div#kc-registration {
  margin-bottom: 20px;
}

span {
  width: 100%;
}

.checkbox div {
  line-height: 16px;
}

.checkbox input[type="checkbox"] {
  display: none;
}

.checkbox label {
  position: relative;
  display: inline-block;

  /*16px width of fake checkbox + 6px distance between fake checkbox and text*/
  padding-left: 22px;
}

.checkbox label::before,
.checkbox label::after {
  position: absolute;
  content: "";

  /*Needed for the line-height to take effect*/
  display: inline-block;
}

/*Outer box of the fake checkbox*/
.checkbox label::before {
  height: 16px;
  width: 16px;

  border: 1px solid gray;
  left: 0px;

  /*(24px line-height - 16px height of fake checkbox) / 2 - 1px for the border
   *to vertically center it.
   */
  top: 8px;
}

/*Checkmark of the fake checkbox*/
.checkbox label::after {
  height: 5px;
  width: 9px;
  border-left: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(-45deg);

  left: 4px;
  top: 12px;
}

/*Hide the checkmark by default*/
.checkbox input[type="checkbox"] + label::after {
  content: none;
}

/*Unhide on the checked state*/
.checkbox input[type="checkbox"]:checked + label::after {
  content: "";
}

/*Adding focus styles on the outer-box of the fake checkbox*/
.checkbox input[type="checkbox"]:focus + label::before {
  outline: rgb(59, 153, 252) auto 5px;
}

div.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
}
div.footer > div.links {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}
div.footer > div.links > span {
  padding: 0.5rem;
}
div.footer > div.links > a {
  padding: 0.5rem;
  text-decoration: none;
  font-weight: normal;
  color: rgb(0, 97, 160);
}
div.footer > div.links > a:hover {
  background-color: #e4e4e4;
  border-radius: 3px;
}

@media screen and (max-width: 600px) {
  body {
    background-color: white;
  }

  div.neoaltoHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    z-index: 50;
    background-color: rgb(0, 97, 160);
  }

  div.neoaltoHeader > div.logo {
    height: 2.5rem;
    width: 14rem;
    margin-left: 1.5rem;
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    flex: 1;
  }

  div.neoaltoHeaderDesktop {
    display: none;
  }

  #kc-content {
    margin-top: 0;
  }

  #kc-content-wrapper {
    border: 0;
    width: 100%;
    max-width: 37rem;
  }

  div#kc-form input {
    width: 100%;
  }
}
