:root {
    --pic-color: #4182ba;
}

.login-pf body {
    background: white;
}

#kc-header-wrapper {
    display: none;
}

#kc-header {
    background: url(https://www.pic.es/wp-content/uploads/2016/03/pic.png) no-repeat center;
    background-size: 250px;
    height: 120px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.pf-c-form-control {
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s;
    border-bottom-width: 1px;
}

.pf-c-form-control:focus {
    border-color: #007bff;
    outline: none;
    border-bottom-width: 1px;
}

.pf-c-button.pf-m-primary {
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.pf-c-button.pf-m-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.pf-c-button.pf-m-primary:hover {
    background-color: #0069d9;
    border-color: #0069d9;
}

.pf-c-form__label {
    font-size: 16px;
}

#kc-locale {
    margin-left: auto;
    margin-right: -1px;
}

#kc-locale ul {
    border-radius: 5px;
    top: 22px;
    display: none;
    /* Hide by default */
    background-color: var(--pf-global--BackgroundColor--100);
    min-width: 100px;
    padding: 0;
}

/* Add the dropdown container and hover behavior */
#kc-locale-dropdown {
    display: inline-block;
}

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

header.login-pf-header>div:last-child {
    display: flex;
    flex-direction: column;
}

/* Use flexbox to reorder title and subtitle */
/* Ensure title appears first */
#kc-page-title {
    order: 1;
}

/* Move subtitle after */
header.login-pf-header .subtitle {
    order: 2;
    margin-top: -5px;
    /* optional: adjust vertical spacing */
    margin-left: -10px;
    /* optional: shift left slightly */
}

.login-pf-header div.col-md-10 {
    padding-left: 0;
    padding-right: 0;
}

/* End flexbox adjustments */

#kc-page-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: left;
}

#kc-current-locale-link {
    text-align: left;
}

a#kc-current-locale-link::after {
    border: solid #4d5258;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    content: "";
    margin-left: 8px;
    margin-bottom: 4px;
}

#kc-registration {
    margin-bottom: 15px;
    margin-top: 10px;
    text-align: center;
    display: none;
    /* Hide by default */
}

/* Show registration when client_id=account-console (requires :has support in the browser) */
body:has(form[action*="client_id=account-console"]) #kc-registration {
    display: block;
}

.login-pf-page .card-pf {
    background: #f5f5f5;
    margin: 0 auto;
    padding: 30px;
    max-width: 500px;
    border: 2px solid var(--pic-color);
    box-shadow: 0 0 0;
    border-radius: 10px;
}

.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}


.pf-c-button.pf-m-control {
    --pf-c-button--after--BorderColor: transparent;
}

.kc-social-links {
    gap: 0.25em;
}

.kc-social-item {
    border: 2px solid var(--pic-color);
    border-radius: 4px;
}

.kc-social-links>li {
    width: 100%;
}

.btn-accept {
    background-color: green;
}

.btn-accept:hover {
    background-color: darkgreen;
}

.btn-deny {
    background-color: red;
}

.btn-deny:hover {
    background-color: darkred;
}

@media (max-width: 767px) {
    #kc-locale {
        position: relative;
        top: 0;
        right: 0;
    }

    #kc-locale ul {
        border-radius: 5px;
        top: 30px;
    }
}