.login-pf body {
    background: url("../img/background-intranet.jpg") no-repeat center center fixed;
    background-size: cover;
    background-color: #1B3891;
    color: #343638;
    font-size: 12px;
    min-height: 100vh;
}

.login-pf{
    background-color: #1B3891;
}

.alert-error {
    background-color: #ffffff;
    border-color: #cc0000;
    color: #333333;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 0;
    top: 20px;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px #bbb;
}

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

#kc-locale ul li a {
    display: block;
    padding: 5px 14px;
    color: #000 !important;
    text-decoration: none;
    line-height: 20px;
}

#kc-locale ul li a:hover {
    color: #4d5258;
    background-color: #d4edfa;
}

#kc-locale-dropdown a {
    color: #4d5258;
    background: 0 0;
    padding: 0 15px 0 0;
    font-weight: 300;
}

#kc-locale-dropdown a:hover {
    text-decoration: none;
}

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

/* a#kc-current-locale-link:hover {
    background-color: rgba(0,0,0,0.2);
} */

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

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

.login-pf a:hover {
    color: #0099d3;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/keycloak-logo-2.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/intranet_logo.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: #fff;
    border-radius: 6px 6px 0 0;
    height: 100px;
    max-width: 500px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#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;
    margin: 50px 0px 0px 0px;
    white-space: normal;
}


.login-pf-page .login-pf-header h1 {
    font-size: 14px;
    text-align: justify;
    line-height: 1.5;
    color: #343638;
    font-weight: 400;
}


#kc-content {
    width: 100%;
}

#kc-attempted-username{
    font-size: 20px;
    font-family:inherit;
    font-weight: normal;
    padding-right:10px;
}

#kc-username{
    text-align: center;
}

#kc-webauthn-settings-form{
    padding-top:8px;
}

/* #kc-content-wrapper {
    overflow-y: hidden;
} */

#kc-info {
    padding-bottom: 200px;
    margin-bottom: -200px;
}

#kc-info-wrapper {
    font-size: 13px;
}

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

#kc-form-options .checkbox {
    margin-top: 0;
    color: #72767b;
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    margin-bottom: 15px;
}

/* TOP HEADER */ 

.top-header {    
    background: #1b3991b2 0% 0% no-repeat padding-box;   
}

.top-header .header-container {
    width: 70%;
    height: auto;
    margin: 0 auto;
    padding: 0 16px;
}

.logo-altia {
    background-image: url(../img/altia_logo.svg);
    background-repeat: no-repeat;
    width: 46px;
    height: 17px;
    text-indent: -99em;
    display: inline-block;
    vertical-align: middle;
    margin: 16px 30px 16px 0;
}

.claim {
    display: inline-block;
    vertical-align: sub;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin: 16px 0;
}

.claim span {
    font-weight: normal;
}

.links {
    float: right;
    margin: 16px 0;
}

.web-links a, .web-links a:link {
    color:#fff;
    font-weight: bold;
    margin-right: 10px;
}

.web-links a:hover {
    text-decoration: underline;
    color:#fff;
    font-weight: bold;
}

.web-links, .social-links {
    display: inline-block;
    list-style: none;
    padding: 0 20px 0 0;
    margin: 0;
}

.web-links li, .social-links li {
    display: inline-block;   
}

.social-links a:link, .social-links a:visited {
    color: rgba(255,255,255,1);
    font-size: 12px;
    padding: 8px;
}

.social-links a:hover {
    opacity: 0.5;
}
.ico.fb {
    background-image: url(../img/ico-facebook.svg);
}

.ico.tw {
    background-image: url(../img/ico-twitter.svg);
}

.ico.x {
    background-image: url(../img/ico-x.svg);
    background-size: 13px;
}

.ico.ln {
    background-image: url(../img/ico-linkedin.svg);
}

.ico.yt {
    background-image: url(../img/ico-yt.svg);
}

.ico.ig {
    background-image: url(../img/ico-ig.svg);
}

.social-links .ico {
    background-repeat: no-repeat;
    background-position: left;
    vertical-align: middle;
    display: inline-block;
    height: 16px;
    width: 18px;
    padding: 8px 8px 8px 0;
    margin-right: 10px;
    text-indent: 9999px;
    overflow: hidden;
    background-size: 14px;
}



/* TOP */

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

.required {
    color: #CB2915;
}

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-providers ul {
    padding: 0;
}

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

#kc-social-providers li:first-of-type {
    margin-top: 0;
}

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

.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;
}


/* Custom */

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
  margin-top: 30px;
}

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


.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.card-pf {
  background: #fff;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 500px;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  -webkit-box-shadow: 3px 10px 6px 0px rgba(0,0,0,0.16);
  -moz-box-shadow: 3px 10px 6px 0px rgba(0,0,0,0.16);
  box-shadow: 3px 10px 6px 0px rgba(0,0,0,0.16);

}


.login-pf-page .login-pf-social-link {
  margin-bottom: 25px;
}
.login-pf-page .login-pf-social-link a {
  padding: 2px 0;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

.login-pf-page .card-pf{
  padding: 15px 50px 60px 50px;  
  margin-bottom: 30px;
}


#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
    margin-bottom: 0px;
}

#kc-back {
    margin-top: 5px;
}

form#kc-select-back-form div.login-pf-social-section {
    padding-left: 0px;
    border-left: 0px;
}


.form-group {
    margin-bottom: 20px;
}


.form-control {
    display: block;
    width: 100%;
    height: 26px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.66666667;
    color: #363636;
    background-color: #fff;
    background-image: none;
    border: 1px solid #CBD0D3;
    border-radius: 6px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}


#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.form-group .btn-primary {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    background: #1B3891;
    background: linear-gradient(180deg, rgba(27,56,145,1) 0%, rgba(19,44,120,1) 100%);
    border-color: #1B3891;
    color: #fff;
    padding: 10px;    
}

.form-control:focus{
    outline: 0;
    outline-offset: 0;    
    border-color: #80BDFF;    
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(0,136,206,.6);

} 

.btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus {
    outline: 0;
    outline-offset: 0;    
    border-color: #4E6AB0; 
    background: #4E6AB0;   
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(0,136,206,.6);
}

label {
    font-weight: bold;
}

/* Footer */

.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    background: transparent;
    padding: 15px;
    font-size: 9px;
    color: #fff;    
}

.footer-container {
    width: 70%;    
    margin: 0 auto; 
    text-align: center;   
}

.footer span {      
    font-size: 9px;
    padding-right: 20px;

}


.footer a, .footer a:link {
    font-size: 11px;
    color: #fff;    
    padding-right: 20px;
    font-weight: bold;
}

.footer a:focus, .footer a:hover {
    color: rgba(255,255,255, 0.5);

}





/* 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;
}

.zocial,
a.zocial  {
    width: 100%;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
    border: 0;
    background: #f5f5f5;
    color: #72767b;
    border-radius: 0;
    white-space: normal;
}
.zocial:before {
  border-right: 0;
  margin-right: 0;
}
.zocial span:before {
    padding: 7px 10px;
    font-size: 14px;
}
.zocial:hover {
    background: #ededed !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    background-image: none;
    border: 0;

    box-shadow: none;
    text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before{ content: "\f15d"; }
.zocial.stackoverflow:before{ color: inherit; }

/*tablet*/

@media (min-width: 768px) {
    #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: url(../img/background-intranet.jpg) no-repeat center center fixed;
        background-color: #1B3891;  
        background-size: cover;
        height: 100%;   
        min-height: 850px;  
      }

     .top-header .header-container {    
        width: 80%;
        padding: 16px;    

    } 

    .claim {
        margin: 5px 0;
    }

    .links {
        float: unset;
        margin: 5px 0;
    }

    .footer {
        position: relative;
        z-index: 99999;
    }

    .footer-container {
        width: 80%;    
    }

    #kc-header {
        margin: 0;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
      font-size: 16px;
      font-weight: bold;
      margin: 25px 0 0 0;
      color: #343638;
      letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 100%;
        height: 80px;        
        background-size: 60%;          
        height: 100px;
        max-width: 500px;       
        margin: 0 auto;    
    }

    .login-pf-page .card-pf{
      max-width: 500px;
      margin: 0 auto 30px auto;      
      padding: 15px 30px 60px 30px;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 15px;
        padding-top: 15px;
        padding-left: 0px;
        padding-right: 15px;
    }

    #kc-social-providers li {
        display: block;
        margin-right: 5px;
    }

    .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;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }

}



@media (min-width: 768px) {


  .login-pf-page .login-pf-social-section:first-of-type {
    padding-right: 39px;
    border-right: 1px solid #d1d1d1;
    margin-right: -1px;
  }
  .login-pf-page .login-pf-social-section:last-of-type {
    padding-left: 40px;
  }
  .login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
    margin-bottom: 0;
  }

    .login-pf-page .login-pf-page-header {
        margin-bottom: 0px;
    }

    .login-pf-page .login-pf-header {
        margin-bottom: 20px;
    }

    .login-pf-page .login-pf-header h1 {
        font-size: 14px;
    }


}


@media (max-width: 767px) {

    .login-pf-page .login-pf-page-header {
        margin-bottom: 0px;
    }

    .card-pf.login-pf-accounts{
      max-width: none;
    }  

}




@media (max-width: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }

    .web-links, .social-links {
        margin: 5px 0;
    }

}

@media (max-width: 645px) {
    
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }

}


