.login-pf-page {
    padding-top: 0px;
}

.login-pf body {
    font-family: "Roboto", sans-serif;
    background-image: url(../img/Campus_Nord_ETSETB.jpg);
    background-size: cover;
}

.card-pf {
    height: 100%;
    border-top: 0px;
}

.kc-social-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: space-around;
    align-items: center;
}

.login-pf-page .card-pf {
    padding: 20px 40px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 400px;
    width: 100%;
    height: fit-content!important;
    min-height: 100%;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

.login-pf-page .login-pf-header{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.kc-social-links a.pf-c-button {
    width: 100%;
    border: 0px;
}

.pf-c-button.pf-m-primary {
    border-radius: 60px;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    margin-top: 5px;
}

i.kc-social-provider-logo.kc-social-gray {
    color: #007bc0;
}

a {
    font-size: 1rem;
    font-weight: 400;
    margin-top: -5px;
    color: #007bc0;
}

.pf-c-button.pf-m-primary {
    background-color: #007bc0;
}

.kc-social-links a.pf-c-button {
    width: 100%;
    border: 0px !important;
    padding: 10px 20px;
    color: #007bc0;
}

.kc-social-gray h2 {
    font-weight: unset;
    margin-bottom: 1.5em;
    margin-top: 10px;
    color: #6C757D;
    line-height: 22px;
    font-size: 18px;
    font-family: "Roboto", sans-serif;
}

button,
input,
optgroup,
select,
textarea {
    font-family: Roboto, sans-serif;
}

.pf-c-form-control {
    border-radius: 4px;
    border: 1px solid #CED4DA !important;
}

h1#general {
    color: #007bc0;
}

.pf-c-nav__link:after {
    border: 0;
}

.pf-c-form-control:not(textarea) {
    border: 0px !Important;
    border-bottom: 1px solid #e9edf2 !important;
}

button.pf-c-button.pf-m-control {
    border: 0px !Important;
    border-bottom: 1px solid #e9edf2 !Important;
    padding-top: 5px;
}

.kc-social-section hr {
    margin-bottom: 40px;
    margin-top: 40px;
}

/*aÃ±adir estas lÃ­neas al login*/
.kc-social-section hr {
    margin-bottom: 40px;
    margin-top: 40px;
}

div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}



.card-pf {
    position: absolute;
    right: 0;
    top: 0;
}

ul.pf-c-login__main-footer-links {
    display: flex;
    align-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kc-social-provider-logo {
    font-size: 22px;
}

.pf-c-button:after {
    border: 0px !important;
}

.kc-social-provider-name {
    position: relative;
    text-align: left;
    float: right;
    margin-left: 20px;
    border-left: 2px solid #4c74bc;
    padding-left: 20px;
    width: 80%;
    font-size: 10pt;
}

.kc-social-grid .kc-social-icon-text {
    left: 0px;
}

ul.pf-c-login__main-footer-links li {
    margin: 5px 0px;
}


.pf-c-form-control:focus {
    padding-bottom: 0px !Important;
    border-bottom-width: 0px !Important;
}

.pf-c-alert.pf-m-inline {
    padding: 10px;
    background: unset;
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    border: 1px solid #f1a899;
    border-radius: 10px;
    margin-bottom: 2em;
}

span.pf-c-alert__title.kc-feedback-text {
    font-size: 14px;
    color: #842029;
    font-weight: 400;
    margin-bottom: 0;
}

#kc-locale-dropdown button {
    display: none;
}

#kc-locale ul {
    min-width: 100px;
    margin-bottom: 2px;
    color: #4c74bc;
    margin-right: 20px;
    margin-top: 10px;
    position: relative;
    padding: 0;
    float: right;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    background-color: white;
    box-shadow: 0px 0px !important;
}


.pf-c-alert__icon {
    margin-right: 0px !important;
}

#kc-locale-dropdown:hover, #kc-locale-dropdown {
    display: block !important;
}

#kc-locale-dropdown:hover ul {
    display: flex;
}

#kc-locale ul,
#kc-locale ul:hover {
    margin: 0px !important;
    padding: 0px !important;
}

h1#kc-page-title {
    display: block;
    background: url(../img/upc_logo_header.png) no-repeat;
    height: 120px;
    background-position: center;
    background-size: 320px auto;
    font-size: 0px;
    margin-top: 40px;
    margin-bottom: 0px;
}

#kc-locale {
    margin-top: -20px;
}

#kc-header-wrapper{
    font-size: 0px;
}

.login-pf-page .card-pf p {
    text-align: center;
}

.footer nav {
    float: right;
}

.footer nav ul a{
    font-size: 10px;
    margin-left: 10px;
}

ul#kc-login-footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-content: flex-start;
    align-items: center;
}

.login-pf-page .card-pf p {
    text-align: center;
    font-size: 14px;
} 

#kc-locale ul li a {
    color: #007bc0 !important;
    font-size: 12px;
    background-color: transparent;
    padding: 5px;
}

.footer {
    border-top: 1px solid rgba(120, 130, 140, 0.13);
    margin-top: 20px;
    padding-top: 20px;
}


@media (max-width: 480px){
    h1#kc-page-title {
        background-size: 300px auto;
    }
    .kc-social-links a.pf-c-button {
        width: 105%;
        padding: 10px 0px;
    }
}
@media (max-width: 360px){
    h1#kc-page-title {
        background-size: 240px auto;
    }
}
@media (max-width: 280px){
    h1#kc-page-title {
        background-size: 200px auto;
    }
}


/* 20250325 parche Blue Mode*/
.login-pf-page .card-pf {
    background-color: #007bc0;
}
.pf-c-button.pf-m-primary {
    color: #007bc0;
}


body{
    color: white;
}
div#kc-username i,
.kc-social-section i{
    color:white;
}
.kc-social-links a.pf-c-button {
    color: #fff;
}
.pf-c-button.pf-m-primary {
    background-color: #ffffff;
}
.login-pf-page .card-pf p {
    color: #ffffff;
}
#kc-locale ul li a {
    color: #fff !important;
}
i.kc-social-provider-logo.kc-social-gray {
    color: #ffffff;
}
.kc-social-gray h2 {
    color: #ffffff;
}
.form-group.login-pf-settings a {
    color: #ffffff;
}
#kc-content h3{
    font-size: 22px;
    color: white;
    text-align: center;
    margin: 0px 0px 30px 0px;
}
label.pf-c-form__label.pf-c-form__label-text {
    color: white;
}
.kc-social-provider-name {
    border-left: 2px solid #ffffff;
}

.footer {
    border-top: 1px solid rgb(255 255 255 / 40%);
}
.kc-social-section hr {
    margin-bottom: 20px;
    margin-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 40%);
}


#kc-locale ul {
    background-color: transparent;
}
.kc-social-links a.pf-c-button {
    background-color: transparent;
}

ul.pf-c-login__main-footer-links li {
    margin: 0;
}
h1#kc-page-title {
    filter: brightness(6.5);
}
.pf-c-button.pf-m-primary {
    font-weight: 500;
}
.pf-c-form-control {
    border-radius: 0px !important;
}
.kc-social-gray h2 {
    color: white;
}
.footer nav ul a {
    font-size: 12px;
    color: white;
}
.kc-social-links a.pf-c-button {
    padding: 6px 20px;
}
.pf-c-button.pf-m-primary{
    padding: 0.9rem 1.5rem;    
}


.card-pf a:hover,
.footer nav ul a:hover,
.card-pf a:hover{
    color: #d2d2d2 !important;
}

# 20250326 solucio username otp
@media  (max-width: 768px){ #kc-username { margin-top: 50px;} }

# 20250401
.login-pf a {
    color: #ffffff !important;
}
#kc-form-options .checkbox {
    color: #ffffff !important;
}
img#kc-totp-secret-qr-code {
    margin-bottom: 10px;
}
.login-pf-page .card-pf p {
    text-align: left;
    font-size: 14px;
}
#kc-username {
  margin-top: 50px !Important;
}
.checkbox label, .radio label {
    color: white;
}
.login-pf .required {
    color: #ffffff !Important;
}
.btn-default {
    padding: 0.9rem 1.5rem !important;
    background-color: #ffffff !important;
    color: #007bc0 !important;
    font-size: 1.25rem !important;
    margin-top: 5px !important;
    border-radius: 60px !important;
    font-weight: 500 !important;
}
label.pf-c-tile {
    padding: 0rem 1rem !important;
    background-color: #ffffff !important;
    font-weight: 500 !important;
    border: 0px !important;
    border-color: transparent !important;
    width: calc(100% - 40px);
    margin-left: 10px;
    margin-top: 20px;
}

/* # ########## OTP FORM ############# # */
#kc-totp-settings a:link {
  color: white;
}

#kc-totp-settings a:hover {
  color: #d2d2d2 !important;
  background-color: transparent;
  text-decoration: underline;
}

#mode-manual {
  color: #ffffff;
}

#mode-barcode {
  color: #ffffff;
}
/* # ########## OTP FORM ############# # */

/* # ########## OTP LOGIN FORM ############# # */
#custom-login-otp-fake {
  color: white;
  text-align: center;
  font-weight: 400;
}

#custom-login-otp {
  color: white;
  text-align: center;
  font-weight: 400;
}
/* # ########## OTP LOGIN FORM ############# # */


/* 20250724 tiquet EATIC-87082: configurar boto seleccio device otp en color vermell (complementari del blau upc) */
input[type=checkbox], input[type=radio] {
accent-color: #c04500 !important;
}

/* 20251125 tiquet EATIC-116246: Amagar imatge fons en redimensionar pantalla */
@media (max-width:768px) {
    body{
        background-image: none !important;
        background-color: #017bc0 ! IMPORTANT;
    }
    .login-pf-page .card-pf {
        position: relative;
        margin: 0 auto;
    }
    #kc-content-wrapper {
        margin-top: 10px;
    }
}

