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

:root {
    --briggs-green: #6af476;
    --briggs-blue: #17104f;
    --briggs-black: #2E2E3A;
    --briggs-font: 'Montserrat',sans-serif;
    --pf-global--link--Color: var(--briggs-blue);
    --pf-global--link--Color--hover: var(--briggs-blue);
    --pf-global--link--Color--visited: var(--briggs-blue);
    --pf-global--Color--light-100: var(--briggs-blue);
    --pf-global--primary-color--100: var(--briggs-green);
    --pf-global--primary-color--200: var(--briggs-green);
    --pf-global--FontFamily--sans-serif: var(--briggs-font);
}

a {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    /* identical to box height */
    
    display: flex;
    align-items: flex-end;
    text-decoration-line: underline;
    
    /* bw-black */
    color: var(--briggs-black);
}

body {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;

    color: var(--briggs-black);
}

.login-pf {
    background: none;
}

.login-pf-page {
    padding-top:0px;
}

.login-pf body {
    background: url("../img/keycloak-bg.png") no-repeat center center fixed;
    background-size: cover;
    background-color: var(--briggs-blue);
    height: 100%;
}

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

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

p.instruction {
    margin: 5px 0;

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;

    color: var(--briggs-black);
}

.pf-c-button.pf-m-control {
        height: 56px;
    
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        text-decoration-line: none;
        background: #F4F5F6;

        --pf-c-button--BorderRadius: none;
        --pf-c-button--disabled--BackgroundColor: none;
        --pf-c-button--after--BorderWidth: none;
        --pf-c-button--after--BorderColor: none;
}

.pf-c-button.pf-m-control:hover {
    background: #C4C4C4;
}

h1#kc-page-title {
    width: 100%;
    
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
    margin-top: 37px;
    /* bw-black */
    
    color: var(--briggs-black);
    
    
    /* Inside auto layout */
    
    flex: none;
    order: 0;
    flex-grow: 0;
}

#kc-locale {
    padding-top: 24px;
    width: 100%;
}

#kc-locale ul {
    background-color: var(--pf-global--BackgroundColor--100);
    display: none;
    top: 20px;
    min-width: 100px;
    padding: 0;
}

#kc-locale-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    float: right;
}

#kc-locale-dropdown{
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

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

#kc-locale-dropdown a {
    color: var(--pf-global--Color--200);
    font-size: var(--pf-global--FontSize--sm);
}

a#kc-current-locale-link {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;

    color: var(--briggs-black);
}

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

.login-pf .container {
    padding-top: 40px;
}

.login-pf a:hover {
    color: #000000;
}

#kc-logo {
    width: 100%;
}

#bw-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 10%;
    padding-right:10%;
    justify-content: space-between;
    /*gap: 682px; */
    width: 100%;
    height: fit-content;
    left: 10%;
}

#bw-logo {
    /* bw-logo */
    width: 110px;
    height: 53px;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom:24px;

    background-image: url("../img/keycloak-logo.png") ;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

#bw-calltoaction {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0px;
    gap: 24px;

    height: 56px;
    margin-left: auto;
    margin-top: 20px;
    margin-bottom:24px;

    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 0;
}

#bw-notyetcustomer {
    width: 170px;
    height: 20px;
    
    text-align:center;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    /* identical to box height */
    color: #FFFFFF;


    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

.bw-actionbutton {
    /* Auto layout */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 30px;
    gap: 10px;
    text-align:center;

    width: 212px;
    height: 56px;

    background: #FFFFFF;
    border-radius: 100px;

    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 0;
}

a.bw-actiontext {
    width: 171px;
    height: 24px;
    color: var(--briggs-blue);
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    display: flex;
    align-items: center;
    text-decoration-line: none;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

#bw-actionbutton:hover {
    border: 2px solid var(--briggs-green);
    color: var(--briggs-green);
}

a.bw-actiontext:hover {
    color: var(--briggs-green);
}


@media (max-width: 767px){
    #bw-header {
        background-image: url("../img/keycloak-bg.png") ;
        background-repeat: no-repeat;
        background-color: var(--briggs-blue);
    }
    #bw-calltoaction {
        display:none;
        position: fixed;
        flex-direction: column;
        left:0px;
        bottom: 0px;
        width: 100%;
        height:fit-content;
        align-items: center;
        background-color: white;
        z-index: 9999;
    }
    
    #bw-notyetcustomer {
        display: none;
        color: #000000;
        width: 100%;
        text-align: center;
        margin-top: 24px;
    }
    
    #bw-actionbutton {
        display: none;
        border: 2px solid #B7B2CC;
        margin-bottom: 24px;
    }
}

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

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

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 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;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

#kc-info {
    margin-bottom: 24px;
}

#kc-info-wrapper {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;

    padding: 15px 35px;
    background-color: #F0F0F0;
    margin-bottom: 24px;
}

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: #72767b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin:0;
    gap: 8px;
}

#kc-form-options input {
    position: relative;
    margin: 0;
}

#kc-form-options .checkbox label {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    padding:0;
    /* identical to box height */
    
    /* bw-black */
    
    color: var(--briggs-black);
}

#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);
}

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;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

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

@media (max-width: 767px){
    .kc-social-links li {
        width: 100%;
    }
}

.kc-social-provider-logo {
    font-size: 23px;
    width: 30px;
    height: 25px;
    
    flex: none;
    order: 0;
    flex-grow: 0;
}

.kc-social-gray {
    color: black;
}

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

#kc-social-providers {
    margin-top: 24px;
}

.kc-social-provider-name {
    position: relative;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    /* identical to box height, or 100% */
    letter-spacing: -0.009em;

    color: #000000;

    flex: none;
    order: 1;
    flex-grow: 0;
}

.kc-social-icon-text {
    margin-left:8px;
    text-decoration-line: none;
}

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

.kc-social-section hr{
    width: 100%;
    margin: 0px;
    height: 0.5px;
    background-color: #B7B2CC;
}

.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 {
        padding-top: 24px;
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {

    .login-pf body {
        background: white;
    }

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px 0 0;
        color: #72767b;
        letter-spacing: 0;
    }

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

@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: 40px;
}

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

.login-pf-page .card-pf {
    padding: 20px 70px 30px 70px;
}

.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 {
    max-width: 580px;
    margin: 0 auto;
    background: #FFFFFF;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.35);
}

/*phone*/
@media (max-width: 767px) {
    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
        padding-right: 8px;
        padding-left: 8px;
        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 {
        text-decoration-line: none;
    }
    
    .login-pf-settings {
        flex-direction: column-reverse;
        gap: 24px;
    }

    #kc-form-options .checkbox {
        justify-content: left;
    }

    #bw-identity-line > hr:first-of-type {
        width: 100% !important;
    }

    .kc-social-links {
        gap: 16px;
    }

    .bw-social-and-login-wrapper {
        flex-direction: column-reverse !important;
    }
}

.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,
#kc-update-email-form div.form-group:last-of-type{
    margin-bottom: 0px;
}

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

/* added classes */
.pf-c-button.pf-m-primary {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    text-align: center;

    height: 56px;
    
    color: var(--briggs-blue);

    background: rgba(106, 244, 118, 0.9);
    border-radius: 50px;
}

.pf-c-button.pf-m-primary:hover {
    background: rgba(84, 194, 94, 0.9);
}

.pf-c-form-control{
    box-sizing: border-box;
    width: 100%;
    /* White Theme / Gray - 0 */
    background: #FFFFFF;

}

.pf-c-form-control[aria-invalid=true] {
    background-repeat: no-repeat;
}

.pf-c-form-control:not(textarea) {
    height: 56px;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    /* identical to box height, or 100% */
    display: flex;
    align-items: center;
    letter-spacing: -0.009em;

    color: var(--briggs-black);
}

.pf-c-button pf-m-control pf-m-block kc-social-item kc-social-gray {
    width: 208px;
    height: 56px;
    background: #F4F5F6;
}

#bw-switchlanguage {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    /* identical to box height */

    color: var(--briggs-black);

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

#bw-identity-line {
    color: #2E2E3A;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
    gap: 9px;
}

#bw-identity-line > hr:first-of-type {
    width: 0;
}

#bw-identity-line h4 {
    white-space: nowrap;
}

.bw-text-input {
    border: 1px solid #B7B2CC;
}

.bw-text-input::placeholder {
    color: #B7B2CC;
}

.form-group {
    margin-bottom: 24px;
}

.bw-social-and-login-wrapper {
    display: flex;
    flex-direction: column;
}

.bw-otp-form-btn-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    padding-inline: 40px;
}

.bw-otp-form-btn-wrapper > input {
    flex-grow: 1;
}

.pf-c-button.btn-default {
    border-radius: 50px;
}

.bw-input-group-wrapper {
    display: flex;
    flex-direction: row;
}

.bw-input-group-wrapper button {
    background: none;
    border: 1px solid #B7B2CC;
    border-left: none;
}