@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

.login-pf body {
    /* background: url("../img/white-bg.jpg") no-repeat center center fixed;
     background-size: cover; */
    height: 100%;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}

/* SPLIT SCREEN LAYOUT */
.container-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.left-section {
    flex: 1;
    background-image: url('../img/login-left-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-left: 80px;
    padding-top: 120px;
}

.left-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.hero-text h1 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.right-section {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-container-custom {
    max-width: 400px;
    width: 100%;
}

.logo-custom {
    margin-bottom: 48px;
}

.logo-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-custom img {
    height: 60px;
    width: auto;
}

.logo-brand-row .logo-buss {
    height: 60px;
}

.logo-brand-row .logo-cm {
    height: 44px;
}

h2.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.subtitle-custom {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.5;
}

#kc-passwd-update-form .form-group:first-of-type,
#kc-form-login .form-group:first-of-type {
    margin-bottom: 18px;
}

.kc-update-password-stack .form-group + .form-group {
    margin-top: 18px;
}

#kc-passwd-update-form .form-group:last-of-type {
    margin-top: 40px;
}

.pf-c-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5 !important;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
    outline: none;
    height: 45px !important;
    box-sizing: border-box;
}

.pf-c-form-control:focus,
.pf-c-form-control:active,
#username:focus,
#password:focus {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    height: 45px !important;
    line-height: 1.5 !important;
    border-bottom-width: 1px !important;
}

.pf-c-form-control:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.pf-c-form-control[aria-invalid="true"] {
    border-bottom-color: #C9190B;
    border-bottom-width: 2px;
}

.pf-c-alert.pf-m-inline {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border: solid #F0AB00;
    border-width: 1px;    
    background-color: rgba(240, 171, 0, 0.12);
    display: grid;
    -ms-grid-columns: max-content 1fr max-content;
    grid-template-columns: max-content 1fr max-content;
    grid-template-rows: 1fr auto;
}

.pf-c-alert.pf-m-inline.pf-m-danger {
    background-color: rgba(240, 171, 0, 0.12) !important;
    border-color: #F0AB00 !important;  
}

.pf-c-alert.pf-m-inline .pf-c-alert__icon {
    padding: 1rem 0.5rem 1rem 1rem;    
    font-size: 16px;
}

.pf-c-alert__icon .kc-alert-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.pf-c-alert.pf-m-success .pf-c-alert__icon {
    color: #92D400;
}

.pf-c-alert.pf-m-success .pf-c-alert__title {
    color: #486B00;
}

.pf-c-alert.pf-m-danger .pf-c-alert__icon {
    color: #C9190B;
}

.pf-c-alert.pf-m-danger .pf-c-alert__title {
    color: #A30000;
}

.pf-c-alert.pf-m-warning .pf-c-alert__icon {
    color: #F0AB00;
}

.pf-c-alert.pf-m-warning .pf-c-alert__title {
    color: #795600;
}

.pf-c-alert__title {
    font-size: 14px;
    padding: 5px 8px;
}

.pf-c-button {
    padding: 0.375rem 1rem;
    border-radius: 5px;
}

.pf-c-button.pf-m-primary {
    width: 100%;
    padding: 14px;
    background: #1e3a5f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px
}

.forgot-password {
    font-size: 14px;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
}

.pf-c-button.pf-m-primary:active,
.pf-c-button.pf-m-primary.pf-m-active {
    --pf-c-button--m-primary--BackgroundColor: var(--pf-global--primary-color--100);
}

.pf-m-primary:hover {
    background-color: #152A45;
}

.pf-c-button.pf-m-control {
    border: solid 1px;    
    border-color: rgba(230, 230, 230, 0.5);
}

h1#kc-page-title {
    margin-top: 10px;
}

#kc-locale ul {
    background-color: #FFF;
    display: none;
    top: 20px;
    min-width: 100px;
    padding: 0;
}

#kc-locale:hover ul {
    display: block;
}

#kc-locale-dropdown a {
    color: #6A6E73;
    text-align: right;
    font-size: 14px;
}

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
}

.login-pf .container {
    padding-top: 40px;
}

.login-pf a:hover {
    color: #0099d3;
}

.login-pf a {
    color: #143557;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/keycloak-logo-2.png);
    background-repeat: no-repeat;
    height: 130px;
    width: 190px;
    border-radius: 8px;
    /* margin: 12px auto 0; */
}

div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    color: #ededed;
    overflow: visible;
    white-space: nowrap;
}

.password-input-wrapper {
    position: relative
}

.password-input-wrapper input {
    padding-right: 45px
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.pf-c-form__label-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    /*padding: 32px 10px 20px;*/
    white-space: normal;
}

#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-content-wrapper {
    margin-top: 20px;
}

#kc-form-wrapper {
    margin-top: 10px;
}

#kc-info {
    margin: 10px -40px -30px;
}

#kc-info-wrapper {
    font-size: 13px;
    padding: 15px 35px;

}

#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: #A30000;
}

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: #737679;
}

.kc-social-item {
    margin-bottom: 0.5rem;
    font-size: 15px;
    text-align: center;
}

.kc-social-provider-name {
    position: relative;
    top: 3px;
}

.kc-social-icon-text {
    left: -15px;
}

.kc-social-grid {
    display: grid;
    grid-column-gap: 10px;
    grid-row-gap: 5px;
    grid-column-end: span 6;
    --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
    left: -10px;
}

.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;
}

@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;
    }

    .login-pf-page .login-pf-page-header {
        margin-bottom: 20px;
    }
}

/* TABLET */
@media(max-width:1024px) {
    .left-section {
        padding-left: 40px;
        padding-top: 80px
    }

    .hero-text h1 {
        font-size: 56px
    }
}

/* MOBILE */
@media(max-width:768px) {
    .container-login {
        flex-direction: column
    }

    .left-section {
        height: 40vh;
        padding: 40px 24px;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex: none;
    }

    .hero-text h1 {
        font-size: 36px
    }

    .right-section {
        padding: 30px 24px 60px;
        flex: none;
    }

    h2.welcome-title {
        font-size: 24px
    }

    .subtitle-custom {
        font-size: 14px;
        margin-bottom: 30px
    }
}

/* SMALL PHONE */
@media(max-width:480px) {
    .hero-text h1 {
        font-size: 28px
    }

    .logo-custom img {
        height: 48px
    }
}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.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%;
}

/* Internet Explorer 11 compatibility workaround for select-authenticator screen */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .select-auth-box-parent {
        border-top: 1px solid #f0f0f0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        cursor: pointer;
    }

    .select-auth-box-headline {
        font-size: 16px;
        color: #06c;
        font-weight: bold;
    }

    .select-auth-box-desc {
        font-size: 14px;
    }

    .pf-l-stack {
        flex-basis: 100%;
    }
}

/* End of IE11 workaround for select-authenticator screen */

.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);
}

.card-pf {
    margin: 0 auto;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 0 20px;
    max-width: 500px;
    border-top: 4px solid;
    border-color: #0066CC;
    border-color: #143557;
}

/*phone*/
@media (max-width: 768px) {
    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
        border-top: 0;
        box-shadow: 0 0;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #72767b;
}

#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 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%;
}

#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;
}

.no-bottom-margin {
    margin-bottom: 0;
}

#kc-back {
    margin-top: 5px;
}

.login-pf {
    height: 100%;
    background: white;
    /* background-size: auto; */
}

form i {
    margin-left: -30px;
    cursor: pointer;
}

.fa {
    display: inline;
}
