/* 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. */

   body {
    width: 100%;
    overflow-x: hidden;
}

@font-face{
    font-family:"Font Awesome 6 Pro";
    font-style:normal;
    font-weight:900;
    font-display:block;
    src:url(../webfonts/fa-solid-900.woff2)format("woff2"),url(../webfonts/fa-solid-900.ttf)format("truetype")
}

@font-face{
    font-family:"Font Awesome 6 Pro";
    font-style:normal;
    font-weight:400;
    font-display:block;
    src:url(../webfonts/fa-regular-400.woff2)format("woff2"),url(../webfonts/fa-regular-400.ttf)format("truetype")
}


.login-pf {
    background: none;
}

 .login-pf body {
    background: #fff;
} 

.login-pf-page{
    padding-top: 0;
    max-height: 100vh;
}

.vectorBGImg {
    background: url("../img/authUI-background-img.svg") no-repeat center left ;
    background-size: contain;
    min-height: 100vh;
    background-color:  #e7efff;
}

.secondHalfSectionOfPageAtTemplate {
    display: flex;
    align-items: center;
    justify-content: center;
}

textarea.pf-c-form-control {
  height: auto;
}

.pf-c-alert__title {
    font-size: var(--pf-global--FontSize--xs);
}

p.instruction {
    margin: 5px 0;
}

p#instruction2,
p#instruction3{
 margin-top: 20px;
}

.paragraph1wrapper {
    margin: 0 10vh;
}

.pf-c-button.pf-m-control {
    border: solid var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}

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

#kc-locale ul {
    background-color: var(--pf-global--BackgroundColor--100);
    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: var(--pf-global--Color--200);
    text-align: right;
    font-size: var(--pf-global--FontSize--sm);
}

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: var(--pf-global--spacer--xs)
}

.login-pf .container {
    padding-top: 40px;
}
/* 
.password-rules {
    font-size: 14px;
}
*/

#kc-content .help-text {
    font-size: 1rem;
}

.password-rules p {
    margin-bottom: 0;
}

.password-rules ul {
    list-style: initial;
}

.alert.alert-primary {
    margin-top: auto;
   margin-left: 20px;
   margin-right: 20px;
}

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

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


#kc-content {
    width: 100%;
}

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

#kc-username {
    text-align: center;
    margin-bottom:-10px;
}

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

#kc-form-webauthn .select-auth-box-parent {
    pointer-events: none;
}

#kc-form-webauthn .select-auth-box-desc {
    color: var(--pf-global--palette--black-600);
}

#kc-form-webauthn .select-auth-box-headline {
    color: var(--pf-global--Color--300);
}

#kc-form-webauthn .select-auth-box-icon {
    flex: 0 0 3em;
}

#kc-form-webauthn .select-auth-box-icon-properties {
    margin-top: 10px;
    font-size: 1.8em;
}

#kc-form-webauthn .select-auth-box-icon-properties.unknown-transport-class {
    margin-top: 3px;
}

#kc-form-webauthn .pf-l-stack__item {
    margin: -1px 0;
}

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

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

#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: 0;
}

/* TOTP */

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

.required {
    /*color: var(--pf-global--danger-color--200);*/
    color: #cd0000;
    margin-top: .5rem;
    font-size: .875rem;
}

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: var(--pf-global--Color--200);
}

.kc-social-item {
    margin-bottom: var(--pf-global--spacer--sm);
    font-size: 15px;
    text-align: center;
}

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

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

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

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

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

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

.select-auth-box-arrow{
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.select-auth-box-icon{
    display: flex;
    flex: 0 0 2em;
    justify-content: center;
    margin-right: 1rem;
    margin-left: 3rem;
}

.select-auth-box-parent{
    border-top: 1px solid var(--pf-global--palette--black-200);
    padding-top: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
}

.select-auth-box-parent:hover{
    background-color: #f7f8f8;
}

.select-auth-container {
    padding-bottom: 0px !important;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: var(--pf-global--primary-color--100);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

.select-auth-box-paragraph {
    text-align: center;
    font-size: var(--pf-global--FontSize--md);
    margin-bottom: 5px;
}

.card-pf {
    margin-top: auto; 
    margin-bottom: auto;
    margin-left: 20px;
    margin-right: 20px;
    border: none;
    box-shadow: none;
    justify-content: center;
    padding: 0 20px;
}

.card-pf.firstCardClass {
    margin-bottom: 0;
    padding-bottom: 0;
}

.card-pf.secondCardClass {
    margin-top: 0;
    padding-top: 0;
    padding: 0;
    margin: 0 auto;
}

.card-pf.alertCardClass {
    margin-top: 0;
    margin-bottom: 0;
    padding:0;
    min-width: 40vw;
}

.center {
    text-align: center;
    margin: 0 auto;
    display: block;
}

.display-center {
    margin: 0 auto;
    display: block;
}

img.icpsrLogo{
    margin-top: 1rem;
    padding: 0;
    max-height: 40px;
}

.logo-link {
    display: inline-block;
    margin-bottom: 24px;
    width: 75%;
}

legend.legendClass {
    display: inline;
    font-size: 1rem;
    margin-top: -17px;
    margin-bottom: 0;
    width: fit-content;
    float:none;
    background-color: #fff;
    line-height: inherit;
    color: #333;
    border: 0;
    text-align: center;
    padding: 0 15px;
    
}



/* FF only */
@supports (-moz-appearance:none) {
  fieldset {
    position: relative;
  }
  fieldset>legend {
    position: absolute;
    left: 50%;
    top: 3px;
    transform: translate(-50%, 0);
  }
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}

/*Overriding Mosaic DS */
.social-logins .btn {
    /*justify-content: unset;*/
    }

.social-logins .btn.btn-outline-primary {
    width: 100%;
    text-align: left;
}

.btn-outline-primary{
    margin-bottom: 1rem;
}

.login-pf-page .card-pf {
    padding:  0;

}

.login-pf-page .card-pf p {
    color: #000;
}

.login-pf-page .card-pf p.error-text {
    color: #cd0000;
}

.full-width {
    width: 100%;
}

.btn .left, 
button .left {
    margin-right: 32px;
}

.bottomOfScreen {
    margin-top: auto;
    margin-bottom: 24px;
    padding-left: 12px;
    display: block;
}

.marginTop2rem {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.marginAutoFitContent {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width:fit-content;
}

.marginTop2rem.signInAccountBtn {
    max-width:fit-content;
    min-width: 182px;
}

.form-group {
    padding-left: 0;
}


.login-pf-page .login-pf-signup {
    margin-top: 0;
    font-size: 16px;
} 
#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

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

.btn.btn-primary,
.btn.btn-outline-primary {
    margin-top: 0;
    width:100%;
    /*text-align: center;*/
    justify-content: left;
}

#inCommonLoginOptionDiv .btn.btn-primary {
    max-width: 266px
}

.fitContentWidth {
    max-width: fit-content;
 }

 .noMarginLeft {
     margin-left: 0 !important;
 }

 .inCommonWrapper{
 margin-top:  10px;
}

.inCommonLogo {
 margin-top:  -4px;
}
 
.login-pf-page .list-view-pf-description {
    width: 100%;
}

#kc-register-form .form-group,
.left {
    text-align: left;
}

.no-bottom-margin {
    margin-bottom: 0;
}

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

/* Recovery codes */
.kc-recovery-codes-warning {
    margin-bottom: 32px;
}
.kc-recovery-codes-warning .pf-c-alert__description p {
    font-size: 0.875rem;
}
.kc-recovery-codes-list {
    list-style: none;
    columns: 2;
    margin: 16px 0;
    padding: 16px 16px 8px 16px;
    border: 1px solid #D2D2D2;
}
.kc-recovery-codes-list li {
    margin-bottom: 8px;
    font-size: 11px;
}
.kc-recovery-codes-list li span {
    color: #6A6E73;
    width: 16px;
    text-align: right;
    display: inline-block;
    margin-right: 1px;
}

.kc-recovery-codes-actions {
    margin-bottom: 24px;
}
.kc-recovery-codes-actions button {
    padding-left: 0;
}
.kc-recovery-codes-actions button i {
    margin-right: 8px;
}

.kc-recovery-codes-confirmation {
    align-items: baseline;
    margin-bottom: 16px;
}
/* End Recovery codes */

.search-basic {
    box-shadow:inset 0 1px 2px rgba(37, 37, 37, .075);
    background-color: #fff;
    border: 1px solid #555;
    border-radius: .3rem;
}

.input-group {
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    display: flex
;
    position: relative;
}

.search-basic input.form-control {
    box-shadow: none;
    background-color: transparent;
    border: none;
}

.input-group>.form-control, .input-group>.form-select, .input-group>.form-floating {
    flex: auto;
    width: 1%;
    min-width: 0;
    position: relative;
}

#kc-logout-confirm {
    text-align: center;
    margin-bottom: 3rem;
}

#kc-form-buttons #kc-logout {
    max-width: fit-content;
}


/* Review Profile form */

#kc-idp-review-profile-form div.form-group div.col-xs-12.col-sm-12.col-md-12.col-lg-12 {
    color: #cd0000;
}

#kc-idp-review-profile-form label.pf-c-form__label {
    color: #333;
    margin-bottom: .5rem;
    font-size: 1.125rem;
    font-weight: 700;
    display: inline-block;
}

.subtitle {
    text-align: left;  
    color: #252525; 
}

#kc-idp-review-profile-form #kc-form-buttons {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    max-width: fit-content;
    min-width: 182px;
    margin-bottom: 1rem;
}


/*********************** 
* MEDIA QUERIES
* ************************/
@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}


@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(min-width: 1800px){
  .login-pf-page #loginThruInstitution {
    margin-left: 10px;
    max-width: 93%;
    
  }
}

@media (min-width: 1849px){
    .social-logins{
       
        display: block;
        margin: 0 auto;
    }

    .vectorBGImg {
        background: url(../img/authUI-background-img.svg) no-repeat left;
        background-color:  #e7efff;
    }
}


@media (max-width: 992px){
    .card-pf.alertCardClass {
        min-width: 30vw;
    }

    .paragraph1wrapper,
    .paragraph2wrapper,
    .paragraph3wrapper {
        margin: 0 4vh;
    }
}

@media (max-width: 991px){
 .card-pf.secondCardClass {
     max-width: 45vw;
     min-width: 30vw;
 }

 .flex {
    justify-content: flex-start;
    }
}

/*small screens and below */
 @media (max-width: 850px){
    .card-pf.secondCardClass {
        min-width: 35vw;
    }

    .vectorBGImg {
        background-size: cover;
    }
}

@media (max-width: 767px) {
    #loginThruInstitution.btn.btn-primary,
    .social-logins .btn.btn-outline-primary{
        display: block;
        margin: 10px auto;
    }

    #kc-emaillogin  {
        margin-bottom:0;
    }

    .social-logins {
        text-align: center;
    }
    .vectorBGImg {
        display: none;
    }
    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #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;
    }
 
    img.icpsrLogo {
        margin-top: 24px;
    }

    .card-pf.secondCardClass {
        min-width: 85vw;
    }

    #kc-register-form,
    #kc-reset-password-form {
        min-width: 65vw;
    }

    .login-pf-page .card-pf {
       min-width: 85vw;
    }

    .login-pf-page .card-pf.alertCardClass {
         margin: 0 5px;
     }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .marginTop2rem input {
        max-width: min-content;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

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

    #multiCollapseExample1{
        min-width: 75vw;
    }

    .marginTop2rem.signInAccountBtn #loginThruInstitution{
        max-width:none;
        min-width: 75vw;
        text-align: center;
    }

    .marginTop2rem.signInAccountBtn input  {
        max-width:none;
        text-align: center;
    }

    .form-group.signInAccountBtn {
     padding-left:  0;
    }
}

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

@media (max-width: 578px){
       .card-pf.secondCardClass {
        min-width: 75vw;
    }
}

@media(max-width: 478px){
   .btn .left, button .left {
        margin-right: 20px;
    }
 
}

@media(max-width: 280px){
    .btn .left, button .left {
        margin-right: 15px;
    }
    .card-pf.secondCardClass {
        min-width: 85vw;
    }
}