/*
 * Copyright 2016 Red Hat, Inc. and/or its affiliates
 * and other contributors as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.

 input-error-username
 */

 .show {
  display: block;
 }

 .noshow {
  display: none;
 }

 .roboto-thin {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: normal;
}

#kc-form-options{
  font-size: 0.9em;
}

.roboto-light {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.roboto-regular {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-medium {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.roboto-bold {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.roboto-black {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.roboto-thin-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.roboto-light-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.roboto-regular-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.roboto-medium-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.roboto-bold-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.roboto-black-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: italic;
}


html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  font-size: 0.9em;
  overflow: scroll;
}

body {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

p, h1, h2, h3, h4, h5, li, span, div {
  font-family: "Roboto", sans-serif;
}


.login-page-mdc {
  padding:2em;
  max-width: 56.25em;
  overflow: hidden;
  margin:auto;
  border-radius: 1.5vw;
  vertical-align: middle;
  margin-top: 8vh;
}

@keyframes fadeOut {
  0% { opacity: 1;}
  75% { opacity: 1;}
  99% { opacity: 0.01;}
  100% { opacity: 0;}
}
@-webkit-keyframes fadeOut {
  0% { opacity: 1;}
  75% { opacity: 1;}
  99% { opacity: 0.01;}
  100% { opacity: 0;}
}

.alert-error span, .alert-success span, .alert-info span, .alert-warning span {
  max-height: 33px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-error.pf-m-danger{
  position: absolute;
  background: #FCE7E6;
  color: #C31300 !important;
  width: 100%;
  border-radius: 4px;
  padding-top: 8px;
  padding-left: 8px;
  padding-bottom: 8px;


  -webkit-animation: fadeOut 10s;
  animation: fadeOut 10s;
  animation-fill-mode: forwards;
}

.alert-error.pf-m-danger .pf-c-alert__icon span {
  background: url(../img/error-ico.svg);
  margin-right: 6px;
  width: 20px !important;
  height: 20px !important;
  display: block;
  float: left;
}

.alert-success.pf-m-success{
  position: absolute;
  background: #E4F7E8;
  color: #006703 !important;
  width: 100%;
  border-radius: 4px;
  padding-top: 8px;
  padding-left: 8px;
  padding-bottom: 8px;

  -webkit-animation: fadeOut 10s;
  animation: fadeOut 10s;
  animation-fill-mode: forwards;
}


.alert-success.pf-m-success .pf-c-alert__icon span {
  background: url(../img/success-ico.svg);
  margin-right: 6px;
  width: 20px !important;
  height: 20px !important;
  display: block;
  float: left;
}

.alert-info.pf-m-info{
  position: absolute;
  background: #E0F6FB;
  color: #0094AB !important;
  width: 100%;
  border-radius: 4px;
  padding-top: 8px;
  padding-left: 8px;
  padding-bottom: 8px;

  -webkit-animation: fadeOut 10s;
  animation: fadeOut 10s;
  animation-fill-mode: forwards;
}

.alert-info.pf-m-info .pf-c-alert__icon span {
  background: url(../img/info-ico.svg); 
  margin-right: 6px;
  width: 20px !important;
  height: 20px !important;
  display: block;
  float: left;

}

.alert-warning.pf-m-info{
  position: absolute;
  background: #FFFEE6;
  color: #FE7F00 !important;
  width: 100%;
  border-radius: 4px;
  padding-top: 8px;
  padding-left: 8px;
  padding-bottom: 8px;

  -webkit-animation: fadeOut 10s;
  animation: fadeOut 10s;
  animation-fill-mode: forwards;
}

.alert-warning.pf-m-warning .pf-c-alert__icon span {
  background: url(../img/warning-ico.svg); 
  margin-right: 6px;
  width: 20px !important;
  height: 20px !important;
  display: block;
  float: left;
}


.socialform, .pwform {
  padding-top: 30px;
}

button {
  width: 100%;
  height: 2em;
}

.aiai-input-wrapper.input-text input, .aiai-input-wrapper.input-text input:active, .aiai-input-wrapper.input-text input:focus, .aiai-input-wrapper input {
  width: 100%;
  outline: none;
  box-sizing: border-box;
  height: 3em; 
}

.aiai-input-wrapper {
  position: relative;
  margin: 1.25em 0;
  width: 100%;
}

input {
  padding-left: 0.3125em;
  padding-right: 0.3125em;
  border-radius: 0.25em;
  box-sizing: border-box;
  height: 3em;
  padding-left: 0.7em;
}

.aiai-input-wrapper.input-text label, .aiai-input-wrapper label {
  display: block;
  height: 0.0625em;
  overflow: visible;
  margin: 0.4375em;
  line-height: 0px;
  position: absolute;
  top: -0.45em;
  font-weight: 200;
  font-size: 0.7em;
  background: #fff;
  height: 12px;
  font-weight: 300;
}


.aiai-input-wrapper.input-checkbox {
  height: 1em;
}

#kc-form-buttons input{
  cursor: pointer;
}


.aiai-input-wrapper.input-checkbox label {
  display: block;
  font-weight: 200;
  font-size: 0.7em;
  float: left;
  line-height: 1.7em;
  cursor: pointer;
}


.aiai-input-wrapper.input-checkbox input{
  float: left;
  width: 0.9em;;
  height: 0.9em;
  margin-right: 0.625em;
  cursor: pointer;
}

#kc-content{
  display: grid;
  gap: 4%;
  grid-auto-rows: minmax(6.25em, auto);
  grid-template-columns: 48% 48%;
}

#kc-content-wrapper{
  grid-column: 1 / 2;
  grid-row: 1;
  position: relative;
}

.donald {
  grid-column: 2 / 2;
  grid-row: 1;

  margin: 0;
  padding: 0;
  border-radius: 1.5vw;

  height: 100%;
  min-height: 40em;
}


.mobile #kc-content {
  display: grid;
  grid-auto-rows: minmax(6.25em, auto);
  grid-template-columns: 100%;
  gap: 2%;
}

.mobile #kc-content-wrapper{
  grid-column: 1/1;
  grid-row: 1;
  position: relative;
}

.mobile .donald {
  grid-column: 1/1;
  grid-row: 2;

  margin: 0 0 5em 0;
  padding: 0;
  border-radius: 1.5vw;

  height: 100%;
  min-height: 20em;
}

body.mobile{
  font-size: 30px;
}

.mobile .login-page-mdc {
  margin-top: 1vh !important;
}


.mobile .aiai-input-wrapper.input-text label {
  font-weight: 200;
  font-size: 1em;
}

.mobile .aiai-input-wrapper.input-text input, .mobile .aiai-input-wrapper.input-text input:active, 
.mobile .aiai-input-wrapper.input-text input:focus, .mobile .aiai-input {
  height: 3em;
  font-size: 1em;
}

.mobile span.material-symbols-outlined {
  font-size: 4em;
  margin-left: -1em;
  margin-top: 0.2em;
}

.mobile #kc-locale-dropdown button {
  font-size: 1em;
}

.mobile #kc-locale-dropdown li a{
  font-size: 1em;
}

.mobile #contact-icon span {
  font-size: 2.5em;
  margin-left: 0em;
  margin-bottom: 0.2em;
}

.mobile #contact {
  display: none;
}

.mobile #contact2 {

  grid-column: 1 / 1;
  grid-row: 2;
  
  position: absolute;
  right: 190px;

  width: 400px;

  margin-right: -4.125em;

  display: grid;
  gap: 0;
  grid-auto-rows: minmax(4.6875em, auto);
  grid-template-columns: 60% 40%;
  width: 270px;

  padding-left: 50%;
  margin-left: -5.5em;
  margin-top: 3em;
}

.mobile #contact-icon {
  height: 81px;
  width: 72px;
  font-size: 0.8em;
  padding: 0.7em 0.6875em 0.6875em 1.1em;
}

.mobile #contact-content {
  margin-top: 0.9em;
}

.mobile .donald-wrapper{
  padding: 0 2.5em 0 2.5em;
}

/*
body.mobile, body.mobile input, body.mobile label, body.mobile p, body.mobile h1, body.mobile h2, 
body.mobile h3, body.mobile h4, body.mobile h5, body.mobile li, body.mobile span, body.mobile div, body.mobile .material-symbols-outlined{
  font-size: 30px !important;
}*/

.alert-error, .pf-m-danger{
  color: #f00;
}
.donald img {
  width: 100%;
  margin: 0 2.5em;
  display: none;
}

.aiai-show-password-btn {
  width: 1.25em;
  position: absolute;
  top: 0.4375em;
  right: 1.7em;
  background: none;
  border: none;
}

.aiai-header{
  display: grid;
  gap: 2%;
  grid-auto-rows: minmax(6.25em, auto);
  grid-template-columns: 75% 23%;
  height: 2.5em;
  overflow: visible;
}

.aiai-header h1{
  font-size: 1.8em;
  height: 2.5em;
  padding: 0;
  margin: 0;
  font-weight: 400;
}

#kc-locale-dropdown #language-switch1{
  visibility: hidden;
}

#kc-locale-dropdown:hover #language-switch1{
  visibility: visible;
  box-shadow: 0em 0.5em 0.9375em #d3d3d3;
  border-radius: 1em;
}

.aiai-title-header{
  grid-column: 1 / 2;
  grid-row: 1;
}

.aiai-locale-header {
  grid-column: 2 / 2;
  grid-row: 1;
}

.aiai-header button{
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: right;
}

#kc-current-locale-link {
  display: block;
  padding: 0px;
}

#kc-current-locale-link::after {
    margin-left: 0.25em;
    margin-top: -0.25em;
}

#kc-locale-dropdown{
  position: relative;
  padding-top: 0.7em;
}

#kc-locale-dropdown button{
  text-transform: uppercase;

  vertical-align: baseline;
  height: 1.875em;
  display: flex;
  justify-content: right;
}

#language-switch1{
  position: absolute;
  top: 0.8em;
  z-index: 10000;
  left: 1.375em;
  padding: 0.625em 1.25em;
}

#language-switch1 li {
  list-style: none;
  padding: 0.125em 0;
  text-transform: uppercase;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.outlined.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.logo{
  visibility: hidden;
  display: none;

  width: 8em;
  min-width: 6.25em;
  margin: 5.125em 0 4.375em 0;
  cursor: pointer;
}

.logo-light{
  visibility: visible;
  display: block;
}

#kc-login, #kc-form-buttons {
  border-radius: 0.3125em;
  border: none;
  text-transform: uppercase;
  font-size: 0.9em;
  width: 100%;
  line-height: 3em;
}

#kc-form-buttons {
  box-shadow: 0px 0.0625em 0.1875em #636363;
}

#kc-form-buttons input{
  background: none;
  width: 100%;
  border: none;
  text-transform: uppercase;
}

a {
  font-size: 0.9em;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
}

#contact{
  position: absolute;
  top: 4em;
  right: 0;
  margin-right: -4.125em;

  display: grid;
  gap: 4%;
  grid-auto-rows: minmax(4.6875em, auto);
  grid-template-columns: 50% 50%;
  width: 9.375em;
}

#contact2{
display: none;
}

#contact-content{
  grid-column: 1 / 2;
  grid-row: 1;

  margin-top: 1.3em;
  font-size: 1.1em;
}

#contact-icon{
  grid-column: 2 / 2;
  grid-row: 1;
  border-radius: 0.5625em;
  padding: 0.9em 0.6875em 0.7em 0.75em;
}

#contact-icon span{
font-size: 2.5em;
}

#contact-content p, #contact-content a {
  margin: 0.125em 0;
  padding: 0;
  font-size: 0.7em;
}

#contact-content a {
  font-weight: 600;
}

#kc-social-providers hr, #kc-social-providers h2 {
  display: none;
}

#kc-social-providers li {
  display: block;
}

#kc-social-providers ul, #kc-social-providers li { 
  list-style-type: none;
  list-style-position:inside;
  margin:0;
  padding:0; 
}

#kc-social-providers li {
    border-radius: 0.3125em;
    border: none;
    text-transform: uppercase;
    font-size: 0.8em;
    width: 100%;
    height: 3em;
    vertical-align: middle;
    line-height: 3em;
    text-align: center;
    margin-bottom: 0.3em;;
}

#kc-social-providers li a{
  margin: auto;
  display: block;
}

.rest-pw .aiai-header {
  margin-top: 7em;
}

.rest-pw #kc-info {
  display: none;
}

.aiai-social-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  position: relative;
}

.aiai-social-icon-wrapper {
  display: flex;
  padding: 0.6em 0.375em 0 0;
  height: 1.625em;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 3px;
  left: 10px;
}

.aiai-forgot-password {
  margin-top: 0.625em;
}

.aiai-icon-name {
  display: flex;
  justify-content: center;
}

#input-error, #input-error-password-confirm, .pf-c-alert__icon, .alert-warning span, #input-error-username, #input-error-password,#input-error-password, #input-error-firstName, #input-error-lastName, #input-error-email  {
  color: #d00 !important;
  font-size: 0.8em;
}

.alert-warning {
  position: absolute;
  z-index: 100;
  top: 0px;
  left: 0px;
}

.aiai-forgot-password{
  margin-top: -14px;
  margin-bottom: 30px;
}

/* Light mode */
@media (prefers-color-scheme: light) {
  body {
      background-color: #ebeff1;
      color: #212121;
  }

  body.mobile {
    background-color: #fff;
    color: #212121;
  }

  a, a:visited {
    color: #212121;
    font-family: "Roboto", sans-serif;
  }
  
  .login-page-mdc {
    background-color: #fff;
  }
  
  button {
    background: #013de6;
  }

  .aiai-icon-name, .aiai-forgot-password,  .aiai-forgot-password a {
    color: #013de6;
  }

  .aiai-input-wrapper.input-text input, .aiai-input-wrapper input {
    border: 0.0625em solid #e1e1e1;
  }

  input:active {
    background: #fff;
    border: 0.0625em solid #e1e1e1;
  }

  .input-text label {
    background: #fff;
  }
  .donald {
    background: #e3f7e8 url(../img/donald.svg) center center/contain no-repeat content-box local;
  }
  .donald-wrapper{
    background: #e3f7e8;
    padding: 0 1.875em 2.5em 1.875em;
    border-radius: 1.0625em;
  }

  .rest-pw .donald-wrapper{
    background: #e8eafe;
    padding: 0 1.875em 2.5em 1.875em;
  }

  .rest-pw .donald {
    background: #e8eafe url(../img/donald-reset-light.svg) center center/contain no-repeat content-box local;
  }

  .logo-dark{
    visibility: hidden;
    display: none;
  }

  #kc-login, #kc-form-buttons {
    background: #013de6;
    color: white;
  }

  i.aiai-icons{
    text-decoration: none;
    content: url(../img/bankid-light.svg);
  }
  
  #social-bankid span:before img{
    padding-top:0.625em;
  }
  #contact-icon {
    background: #f0e6fd;
    border: 0.3125em solid #fff;
  }

  #kc-social-providers li {
    background: #fff;
    border: 0.0625em solid #013de6;
  }

  #kc-form-buttons input{
    color: #fff;
  }

  #kc-locale-dropdown button{
    color: #013de6;
  }

  #kc-current-locale-link::after {
    content: url(../img/arrow-ligth.svg);
  }

  #language-switch1{
    background: #fff;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
      background-color: #161c24;
      color: #fff;
  }

  body.mobile {
    background-color: #212b36 !important;
    color: #212121;
  }

  .aiai-input-wrapper.input-text label, .aiai-input-wrapper label {
    background: #212b36;
  }


  a, a:visited {
    color: #fff;
  }

  .logo-light{
    visibility: hidden;
    display: none;
  }

  .logo-dark{
    display: block;
    visibility: visible;
  }

  .login-page-mdc {
    background-color: #212b36;
  }
  
  button {
    background: #81d4fa;
  }
  
  .aiai-icon-name, .aiai-forgot-password a {
    color: #81d4fa !important; 
  }

  .aiai-input-wrapper.input-text input, .aiai-input-wrapper input {
    background: none;
    border: 0.0625em solid #404a53;
  }

  input:active {
    background: #212b36;
    border: 0.0625em solid #404a53;
    box-sizing: border-box;
    height: 2.25em;
  }

  .input-text label {
    background: #212b36;
  }

  .donald {
    background: #e3f7e8 url(../img/donald.svg) center center/contain no-repeat content-box local;
  }

  .rest-pw .donald {
    background: #e8eafe url(../img/donald-reset-light.svg) center center/contain no-repeat content-box local;
  }


  .donald-wrapper{
    background: #e3f7e8;
    padding: 0 1.875em 2.5em 1.875em;
    border-radius: 1.0625em;
  }

  .rest-pw .donald-wrapper{
    background: #e8eafe;
    padding: 0 1.875em 2.5em 1.875em;
  }
  
  #kc-login, #kc-form-buttons {
    background: #81d4fa;
    color: #161c24;
  }
  
  i.aiai-icons {
    text-decoration:none;
    content: url(../img/bankid-dark.svg);
  }

  #social-bankid span:before img{
    padding-top:0.625em;
  }
  #contact-icon {
    background: #f0e6fd;
    border: 0.3125em solid #212b36;
  }
  
  #kc-social-providers li {
    background: #212b36;
    border: 0.0625em solid #81d4fa;
  }

  #kc-social-providers li a{
    color: #81d4fa;
  }
  

  .material-symbols-outlined {
    color: #fff;
    cursor: pointer;
  }

  #contact-icon .material-symbols-outlined {
    color: #161c24;
  }
  
  input{
    color: #fff;
  }

  #kc-content div, #kc-content div p, #kc-content div a, #kc-content div h1{
    color: #fff !important;
  }
  
  #kc-locale-dropdown button{
    color: #81d4fa;
  }

  #kc-current-locale-link::after {
    content: url(../img/arrow-dark.svg);
  }

  #language-switch1{
    background: #e3f7e8;
  }

  #language-switch1 a, #language-switch1 a:hover, #language-switch1 a:visited{
    color: #fff !important;
  }
  
  .aiai-forgot-password a {
    color: #81d4fa !important;
  }

  #kc-locale-dropdown:hover #language-switch1{
    background: #000;
    color: #fff;
    box-shadow: 0em 0.5em 0.9375em #000;
    
  }
}

@media only screen and (max-device-width: 480px) {

  #kc-content {
    display: grid;
    grid-auto-rows: minmax(6.25em, auto);
    grid-template-columns: 100%;
    gap: 2%;
  }

  #kc-content-wrapper{
    grid-column: 1/1;
    grid-row: 1;
    position: relative;
  }

  .donald {
    grid-column: 1/1;
    grid-row: 2;

    margin: 0 0 5em 0;
    padding: 0;
    border-radius: 1.5vw;

    height: 100%;
    min-height: 20em;
  }

  body{
    font-size: 30px;
  }

  .login-page-mdc {
    margin-top: 1vh !important;
  }


  .aiai-input-wrapper.input-text label, .aiai-input-wrapper label{
    font-weight: 300;
    font-size: 1em;
    height: 12px;
  }

  .aiai-input-wrapper.input-text input, .aiai-input-wrapper.input-text input:active, 
  .aiai-input-wrapper.input-text input:focus, .aiai-input {
    height: 3em;
    font-size: 1em;
  }

  span.material-symbols-outlined {
    font-size: 4em;
    margin-left: -1em;
    margin-top: 0.2em;
  }

  #kc-locale-dropdown button {
    font-size: 1em;
  }

  #kc-locale-dropdown li a{
    font-size: 1em;
  }

  #contact-icon span {
    font-size: 2.5em;
    margin-left: 0em;
    margin-bottom: 0.2em;
  }

  #contact {
    display: none;
  }

  #contact2 {

    grid-column: 1 / 1;
    grid-row: 2;
    position: relative;
    width: 400px;

    margin-right: -4.125em;

    display: grid;
    gap: 4%;
    grid-auto-rows: minmax(4.6875em, auto);
    grid-template-columns: 60% 40%;
    width: 11em;

    padding-left: 50%;
    margin-left: -5.5em;
    margin-top: 3em;
  }

  #contact-icon {
    height: 81px;
    width: 72px;
    font-size: 0.8em;
    padding: 0.7em 0.6875em 0.6875em 1.1em;
  }

  #contact-content {
    margin-top: 0.9em;
  }

  .donald-wrapper{
    display: none;
    padding: 0 2.5em 0 2.5em;
  }
}