:root {
    --main-background-color: #021A33;
    --accent-color: #CCFD45;
}

body {
	height: auto; 
	min-height: 100%;
	font-family: Arial !important;
}

.login-pf {
    background: var(--main-background-color);
}

.login-pf body {
    background: var(--main-background-color);
	font-size: 16px;
}

.login-pf-page {
	display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100vw;
    background: var(--main-background-color);
}

@media (min-width: 480px) {
    .login-pf-page {
        height: 100vh;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 14px;
	text-align: left;
	padding-left: 40px;
	padding-right: 20px;
}

.header-text-container {
    display: grid;
    row-gap: 10px;

    .header-title {
        font-size: 24px;
        font-weight: 700;
    }

    .header-brand {
        font-size: 36px;
        color: var(--accent-color);
    }

    .header-subtitle {
        font-size: 18px;
        font-weight: 700;
        margin-top: 20px;
    }
}

h1 {
	font-weight: bold;
    color: white;
}

span {
    color: white;
}

.login-button {
    width: 100%;
    background-color: var(--accent-color);
    border: none !important;
    font-weight: 700;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
}

.card-pf {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    height: 100%;
    padding: 10px !important;
    justify-content: center;
    background-color: var(--main-background-color);
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;

    #kc-content {
        display: flex;
        flex-direction: column;
        gap: 20px;

        #kc-content-wrapper, #kc-form {
            display: flex;
            flex-direction: column;
            height: 100%;
            gap: 20px;
        }

        p {
            color: white;
        }
    }

    .login-pf-header {
        margin: 0;

        #kc-page-title {
            margin-top: 20px;
        }

        .sign-in-header {
            margin: 0;
            padding: 0;
        }
    }

    .login-pf-settings {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0;

        .remember-me {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--accent-color);

            input {
                margin: 0;
                padding: 0;
            }
        }
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 20px;

        input {
            height: 40px;
        }
    }
}

@media (min-width: 550px) {
    .card-pf {
        padding: 0px 50px !important;
    }
}

@media (min-width: 1300px) {
    .card-pf {
        padding: 0px 100px !important;
    }
}

@media (min-width: 1700px) {
    .card-pf {
        padding: 0px 200px !important;

    }
}

.login-picture {
    display: none;
    position: relative;
    overflow: hidden;
    width: 50%;

    img {
        position: absolute;
        top: 50%;
        left: 50%;
        height: auto;
        width: 100%;
        transform: translate(-50%, -50%);
    }
}

@media (min-width: 1100px) {
    .login-picture {
        display: block;
    }

    .card-pf {
        width: 50%;
    }
}

#kc-info {
    padding: 0;
    margin: 0;
}

.login-logo {
    display: none;
	background: url("../img/logo.png");
    background-repeat: no-repeat;
    height: 72px;
    margin-top: 8px;
    margin-left: 0px;
}

@media (min-width: 480px) {
    .login-logo {
        display: block;
    }
}

.sign-in-header {
    text-align: left !important;
    margin-top: 20px;
}

input:focus-visible {
	border-color: var(--accent-color) !important;
    outline: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
	position: relative;
    margin: 0;
    padding: 0;

    span {
        color: white;
        font-size: 16px;
        font-weight: 500;
    }
}

.password-reset-form-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;

    input, button {
        height: 40px;
    }
}

label[for=username], label[for=password], label[for=password-new], label[for=password-confirm], label[for=lastName], label[for=firstName], label[for=email]{
	position: absolute;
    background: white;
    left: 40px;
    top: -13px;
    padding: 0 10px;
	z-index: 1;
}

#kc-form-buttons {
	margin-top: 30px;
}

.pf-c-button.pf-m-primary {
	background-color: var(--accent-color);
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
	border: none !important;
}

.pf-c-button.pf-m-primary.get-mobile-app-buttons {
    font-size: 13px;
}

@media (min-width: 1025px ) {
	.mobile-only {
		display: none;
	}
}

a {
	color: var(--accent-color);
	font-weight: 700;
}

.login-pf-page .login-pf-signup a {
    margin-left: 0;
}

.pf-c-alert.pf-m-inline {
	border: none;
}

.glyphicon {
	position: absolute;
    top: 50px;
    right: 15px;
    color: black !important;
}

.glyphicon.glyphicon-eye-open {
    margin: 0 10px;
}

.glyphicon.glyphicon-eye-close {
    margin: 0 10px;
}

.alert-warning {
	background-color: white;
}

.pf-c-alert.pf-m-warning .pf-c-alert__title {
    color: black !important;
}

#kc-passwd-update-form {
	margin-top: 20px;
}

#kc-passwd-update-form .glyphicon {
	right: 30px;
}

#kc-passwd-update-form #kc-form-buttons {
	display: flex;
	flex-direction: column;
    justify-content: center;
}

#kc-passwd-update-form .pf-c-button{
	width: auto;
	margin: 0;
}

#kc-passwd-update-form .btn-default{
    height: 50px;
    border: 2px solid var(--accent-color);
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 100px;
    background-color: white;
    color: var(--accent-color);
    background-image: none;
	margin-bottom: 20px;
}

@media (min-width: 500px){
	#kc-passwd-update-form #kc-form-buttons {
		flex-direction: row;
	}
	#kc-passwd-update-form .pf-c-button{
		width: 120px;
		margin: 0 20px;
	}
}

.pf-c-button:focus{
	color: white;
}

.password-info {
	margin-bottom: 30px;
}

.alert-warning {
	display: none;
}

#logout-sessions {
	height: 20px !important;
}

.infoPageButtonContainer {
	display: flex;
	flex-direction: column;
	margin: 20px 0;
}

.infoPageButtonContainer a:hover {
	color: white !important;
}

.infoPageMessage {
	text-align: center;
}

.infoPageButtonContainer .pf-c-button {
	height: 50px;
    border-radius: 100px;
    width: 230px;
    margin: 10px auto;
    padding-top: 13px;
}

/*IE compatibility*/
.pf-c-form-control {
    font-size: 14px;
    font-size: var(--pf-global--FontSize--sm);
    border-width: 1px;
    border-width: var(--pf-global--BorderWidth--sm);;
    border-color: #EDEDED #EDEDED #8A8D90 #EDEDED;
    border-color: var(--pf-global--BorderColor--300) var(--pf-global--BorderColor--300) var(--pf-global--BorderColor--200) var(--pf-global--BorderColor--300);
    background-color: var(--pf-global--BackgroundColor--100);
    height: 36px;
    height: calc(var(--pf-c-form-control--FontSize) * var(--pf-c-form-control--LineHeight) + var(--pf-c-form-control--BorderWidth) * 2 + var(--pf-c-form-control--PaddingTop) + var(--pf-c-form-control--PaddingBottom));
    padding: 5px 0.5rem;
    padding: var(--pf-c-form-control--PaddingTop) var(--pf-c-form-control--PaddingRight) var(--pf-c-form-control--PaddingBottom) var(--pf-c-form-control--PaddingLeft);
}

.pf-c-form-control:hover, .pf-c-form-control:focus {
    border-bottom-color: #0066CC;
    border-bottom-color: var(--accent-color);
    border-bottom-width: 2px;
    border-bottom-width: var(--pf-global--BorderWidth--md);
}

.pf-c-form-control[aria-invalid="true"] {
    border-bottom-color: #C9190B;
    border-bottom-color: var(--pf-global--danger-color--100);
    border-bottom-width: 2px;
    border-bottom-width: var(--pf-global--BorderWidth--md);
	background-origin: content-box;
    background-position-y: center;
}

.pf-c-alert.pf-m-inline.pf-m-success::before {
    background-color: #92D400;
    background-color: var(--pf-global--success-color--100);
	width: 0;
}

.pf-c-alert.pf-m-inline.pf-m-danger::before {
    background-color: #C9190B;
    background-color: var(--pf-global--danger-color--100);
	width: 0;
}

.pf-c-alert.pf-m-inline.pf-m-warning::before {
    background-color: #F0AB00;
    background-color: var(--pf-global--warning-color--100);
	width: 0;
}

.pf-c-alert.pf-m-inline .pf-c-alert__icon {
    padding: 1rem 0.5rem 1rem 1rem;
    padding: var(--pf-c-alert--m-inline__icon--PaddingTop) var(--pf-c-alert--m-inline__icon--PaddingRight) var(--pf-c-alert--m-inline__icon--PaddingBottom) var(--pf-c-alert--m-inline__icon--PaddingLeft);
    font-size: 16px;
    font-size: var(--pf-c-alert--m-inline__icon--FontSize);
}

.pf-c-alert.pf-m-success .pf-c-alert__icon {
    color: #92D400;
    color: var(--pf-global--success-color--100);
}

.pf-c-alert.pf-m-success .pf-c-alert__title {
    color: #486B00;
    color: var(--pf-global--success-color--200);
}

.pf-c-alert.pf-m-danger .pf-c-alert__icon {
    color: #C9190B;
    color: var(--pf-global--danger-color--100);
}

.pf-c-alert.pf-m-danger .pf-c-alert__title {
    color: #A30000;
    color: var(--pf-global--danger-color--200);
}

.pf-c-alert.pf-m-warning .pf-c-alert__icon {
    color: #F0AB00;
    color: var(--pf-global--warning-color--100);
	display: none;
}

.pf-c-alert.pf-m-warning .pf-c-alert__title {
    color: #795600;
    color: var(--pf-global--warning-color--200);
}

.pf-c-alert__title {
    font-size: 14px; /* default - IE compatibility */
    font-size: var(--pf-global--FontSize--sm);
    padding: 5px 8px;
    padding: var(--pf-c-alert__title--PaddingTop) var(--pf-c-alert__title--PaddingRight) var(--pf-c-alert__title--PaddingBottom) var(--pf-c-alert__title--PaddingLeft);
}

.pf-c-button{
    padding:0.375rem 1rem;
    padding: var(--pf-global--spacer--form-element) var(--pf-global--spacer--md);
	background-color: var(--accent-color);
}

/* default - IE compatibility */
.pf-m-primary:hover {
    background-color: var(--accent-color);
}

/* default - IE compatibility */
.pf-c-button.pf-m-control {
    border: solid 1px;
    border: solid var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}
/*End of IE compatibility*/

#kc-locale {
    position: relative;
    margin-left: auto;
}

#kc-locale ul {
    background-color: #FFF;
    background-color: var(--pf-global--BackgroundColor--100);
    display: none;
    top: 20px;
    min-width: 100px;
    padding: 0;
}

#kc-locale:hover ul {
    display: block;
}

/* IE compatibility */
#kc-locale-dropdown a {
    color: #6A6E73;
    color: var(--pf-global--Color--200);
    text-align: right;
    font-size: 14px;
    font-size: var(--pf-global--FontSize--sm);
}

/* IE compatibility */
a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
    margin-left: var(--pf-global--spacer--xs);
	font-family: Arial;
}

#kc-current-locale-link {
	font-family: Arial;
}

.login-pf .container {
    padding-top: 40px;
}

.login-pf a:hover {
    color: var(--accent-color);
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/keycloak-logo-2.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 62px 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;
}

#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;
}

#kc-webauthn-settings-form {
    padding-top: 8px;
}

#kc-form-options span {
    display: block;
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    margin-bottom: 0;
}

/* TOTP */

.subtitle {
    text-align: right;
    margin-top: 30px;
    color: #909090;
}

.required {
    color: #A30000; /* default - IE compatibility */
    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;
}

.kc-social-provider-logo {
    font-size: 23px;
    width: 30px;
    height: 25px;
    float: left;
}

.kc-social-gray {
    color: #737679; /* default - IE compatibility */
    color: var(--pf-global--Color--200);
}

.kc-social-item {
    margin-bottom: 0.5rem; /* default - IE compatibility */
    margin-bottom: var(--pf-global--spacer--sm);
    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;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

.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(--accent-color);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

#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;
}

#social-strongidentification {
	background-color: var(--main-background-color);
    border: 2px solid white;
    font-weight: 700;
    height: 45px;
    padding-top: 8px;
    margin-bottom: 15px;
	width: 100%;
    display: block;
	text-align: center;
    text-decoration: none;
}

input#kc-login, #kc-logout {
	font-weight: 700;
    font-size: 16px;
    color: black;
}
