/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
  This clashes with the "keycloak-bg.png' background defined on the body below.
  Therefore the Patternfly background must be set to none. */
.login-pf {
  background: none;
}

.login-pf-page {
  padding: 20px;
}

h1#kc-page-title {
  margin-top: 10px;
}

#kc-locale ul {
  background-color: #fff;
  display: none;
  top: 20px;
  min-width: 100px;
  padding: 0;
}

#kc-locale-dropdown {
  display: inline-block;
}

#kc-locale-dropdown:hover ul {
  display: block;
}

#kc-locale-dropdown a {
  color: #6a6e73;
  text-align: right;
  font-size: 14px;
}

a#kc-current-locale-link::after {
  content: "\2c5";
  margin-left: 4px;
}

.login-pf .container {
  padding-top: 40px;
}

#kc-logo {
  width: 100%;
}

#kc-header {
  color: #ededed;
  overflow: visible;
  white-space: nowrap;
}

#kc-header-wrapper {
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  padding: 62px 10px;
  white-space: normal;
}

#kc-content {
  width: 100%;
}

#kc-content-wrapper {
  margin-top: 20px;
  padding-bottom: 20px;
}

#kc-form-wrapper {
  margin-top: 10px;
}

#kc-form-options span {
  display: block;
}

.pf-c-alert__title {
  font-size: 14px; 
  padding: 5px 8px;
}

.pf-c-alert__icon {
  padding: 1rem 0.5rem 1rem 1rem;
  font-size: 16px;
}

/* TOTP */

.subtitle {
  text-align: right;
  margin-top: 30px;
  color: #909090;
}

.required {
  color: #a30000;
}

ol#kc-totp-settings {
  margin: 0;
  padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
  max-width: 150px;
  max-height: 150px;
}

#kc-totp-secret-key {
  background-color: #fff;
  color: #333333;
  font-size: 16px;
  padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
  margin-top: 0;
}

#kc-oauth ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#kc-oauth ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
  border-top: 0;
}

#kc-oauth .kc-role {
  display: inline-block;
  width: 50%;
}

/* Code */
#kc-code textarea {
  width: 100%;
  height: 8em;
}

/* Social */
.kc-social-links {
  margin-top: 20px;
}

.kc-social-provider-logo {
  font-size: 23px;
  width: 30px;
  height: 25px;
  float: left;
}

.kc-social-gray {
  color: #737679;
}

.kc-social-item {
  margin-bottom: 0.5rem;
  font-size: 15px;
  text-align: center;
}

.kc-social-provider-name {
  position: relative;
  top: 3px;
}

.kc-social-icon-text {
  left: -15px;
}

.kc-social-grid {
  display: grid;
  grid-column-gap: 10px;
  grid-row-gap: 5px;
  grid-column-end: span 6;
  --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
  left: -10px;
}

.kc-login-tooltip {
  position: relative;
  display: inline-block;
}

.kc-social-section {
  text-align: center;
}

.kc-social-section hr {
  margin-bottom: 10px;
}

.kc-login-tooltip .kc-tooltip-text {
  top: -3px;
  left: 160%;
  background-color: black;
  visibility: hidden;
  color: #fff;

  min-width: 130px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 5px;

  position: absolute;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
  visibility: visible;
  opacity: 0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
  content: " ";
  position: absolute;
  top: 15px;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

@media (min-width: 768px) {
  .login-pf-page .login-pf-page-header {
    margin-bottom: 10px;
    padding: 20px;
  }

  #kc-container-wrapper {
    position: absolute;
    width: 100%;
  }

  .login-pf .container {
    padding-right: 80px;
  }

  #kc-locale {
    position: relative;
    text-align: right;
    z-index: 9999;
  }
}

@media (max-width: 767px) {
  .login-pf body {
    background: white;
  }

  .login-pf-page .card-pf {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    border-top: 0;
    box-shadow: 0 0;
    padding: 20px;
  }

  #kc-header {
    padding-left: 15px;
    padding-right: 15px;
    float: none;
    text-align: left;
  }

  #kc-header-wrapper {
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    padding: 20px 0 0 0;
    color: #72767b;
    letter-spacing: 0;
  }

  #kc-header-wrapper img {
    width: 70vw;
  }

  #kc-form {
    float: none;
  }

  #kc-info-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
  }

  .login-pf .container {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #kc-locale {
    position: absolute;
    width: 200px;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 9999;
  }
}

/* aeroexcellence STYLES */
.login-pf body {
  background: linear-gradient(90deg, rgba(38,97,166,1) 0%, rgba(41,73,121,1) 0%, rgba(45,103,217,1) 80%);
  height: 100%;
}

.card-pf {
  margin: 0 auto;
  box-shadow: none;
  padding: 0 20px;
  max-width: 500px;
  border-top: 4px solid;
  border-color: #223FBD; 

  background: #F6F9FB;
  border-radius: 5px;
}

.aeroexcellence_nologin {
  font-size: 0.625em;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 400;
  text-align: left;
  margin-top: 10px;
}

.aeroexcellence_nologin_more {
  font-size: 1em;
}

/* Style from previous patternfly version (v3/4) */

.login-pf-page .login-pf-header {
    margin-bottom: 20px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

@media (min-width: 768px) {
    .login-pf-page .login-pf-header {
        margin-bottom: 10px;
    }
}

.login-pf-page .login-pf-header h1 {
  font-size: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .login-pf-page .login-pf-header h1 {
    font-size: 24px;
  }
}

@media (min-width: 768px) {
    .login-pf-page .card-pf {
        padding: 20px 40px 30px 40px;
    }
}

.instruction--hint {
    margin-top: 12px;
    font-size: 0.85em;
    color: #6c757d;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}