/*
 * Copyright 2020 Alfonso Alongi, 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.
 */

 /* hides the content if javascript is disabled */
#kc-content {
    display: none;
}

/* fix allineamento label a sinistra */
.form-group {
    text-align: left;
}

/* Collapsible ul */
.collapsible-button {
    color: #0088ce;
    
}

.collapsible-button:hover {
    cursor: pointer;
    opacity: 0.9;
}

.collapsible-button::after {
    float: right;
    font: normal normal normal 16px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    content: "\f106";
    padding-right: 10px;
    font-weight: bold;
}

.collapsible-button.active::after {
    content: "\f107"; 
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms;
    /*
    transition: max-height 0.2s ease-out;
    */
}

/* Patternfly override */
.login-pf-page {
    padding-top: inherit;
    /* display: flex; */
    align-items: center;
    height: 100vh;
}

.login-pf-page .card-pf .pf-m-error {
    color: #dc3545;
}

.login-pf-page .card-pf .pf-m-success {
    color: #28a745;
}

/* custom style for Google recaptcha */
.g-recaptcha{
    width: 304px;
    height: auto;
    position:relative;
    left: -2px;
    margin: auto;
}



/* fix input right icon */
.input-right-addon {
    position: relative;
    z-index: 2;
    font-size: 18px;
    float: right;
    top: -34px;
    right: 12px;
}

.input-right-addon i {
    vertical-align: middle;
}

#kc-info {
    padding-bottom: 0;
    margin-bottom: 0;
    clear: both;
}

.pf-c-button:hover {
    cursor: pointer;
}

@media (max-width: 767px) {
    #kc-info {
        margin-bottom: 0;
    }
}

.login-pf-page .card-pf {
    max-width: 100%;
    margin-bottom: inherit;
}

@media (min-width:768px) {

    /*  complementary rule .login-pf-page .login-pf-social-section:last-of-type */
    .login-pf-page .login-pf-social-section:last-of-type {
        border-left: 0;
    }

    .login-pf-page .login-pf-social-section:first-of-type {
        border-right: 1px solid #d1d1d1;
    }

    .login-pf-page .card-pf {
        max-width: 500px;
        /* padding:20px 40px 0px 40px; */
    }

    .kc-form-wrapper-login {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* Fix tooltip index */
.kc-login-tooltip:hover .kc-tooltip-text {
    z-index: 1;
}

/* begins with */
/*
fieldset div[class^="col-"] {
    padding-left: 0px;
}
*/

.pf-c-form__helper-text {
    margin: 0;
}

.btn a {
    display: block;
    width: 100%;
}

.btn-lg, .btn-group-lg > .btn {
    padding: 8px 10px;
    /* box-shadow: 0 2px 2px rgba(3,3,3,.1); */
}

legend {
    margin-bottom: 15px;
}

.alert {
    padding-left: 11px;
    padding-right: 11px;
}

/* social buttons */
.pf-l-grid > *, .pf-l-grid .pf-l-grid__item {
    grid-column-start: 1;
    grid-column-end: 13;
}


#kc-social-providers h4 a:hover {
    cursor: pointer;
}

a#social-facebook .kc-social-icon-text, a#social-google .kc-social-icon-text, a#social-twitter .kc-social-icon-text {
    left: 0px;
}

a#social-facebook i[class^="kc-social-"], a#social-google i[class^="kc-social-"], a#social-twitter i[class^="kc-social-"] {
	color: #fff;
	position: absolute;
	left: 0.2em;
	padding-top: 0.1em;
    padding-bottom: 0;
    padding-left: 0.5em;
    box-shadow: 0.05em 0 0 rgba(255,255,255,0.25);
    font-size: 21px;
}

a#social-facebook i[class^="kc-social-"] {
    padding-left: 0.5em;
    padding-right: 1.25em;
}

a#social-google i[class^="kc-social-"] {
    padding-left: 0.4em;
    padding-right: 1.35em;
}

a#social-twitter i[class^="kc-social-"] {
    padding-left: 0.35em;
    padding-right: 1.4em;
}


/*
.pf-c-button.pf-m-control::after {
    border-width: inherit;
}
*/

a#social-facebook, a#social-google, a#social-twitter {
    border: 0;
    color: #fff;
}

a#social-facebook {
    background-color: #4267B2;
}

a#social-facebook.pf-c-button.pf-m-control::after {
    border-color: #4267B2;
}

a#social-google {
    background-color: #EA4335;
}

a#social-google.pf-c-button.pf-m-control::after {
    border-color: #EA4335;
}

a#social-twitter {
    background-color: #1D9BF0;
}

a#social-twitter.pf-c-button.pf-m-control::after {
    border-color: #1D9BF0;
}


