.login-pf body {
    background: #000028;
    background-size: cover;
    height: 100%;
    font-family: "Roboto";
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
div.kc-logo-text {
    background-image: url(../img/logo.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
	background-size: contain;
}

[id^='social-'] {
    width: 100%;
    height: 100%;
    border: 2px solid #009999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

[id^='social-']:hover {
    border-color: #00FFB9 !important;
    color: #00FFB9 !important;
    text-decoration: none !important;
    background-color: #1c3c54;
}

[id^='social-']:hover > .kc-social-provider-name {
    color: #00FFB9;
}

#MyID-icon, #SiemensID-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

#gridscale-logo {
	background-image: url(../img/gridscale-x.png);
	background-repeat: no-repeat;
    background-size: cover;
    width: 40%;
	height: 90%;
	position: absolute;
	bottom: 0;
	left: 60%
}

#siemens-logo {
    height: auto;
    width: 45%;
}

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

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

#kc-content {
    width: 100%;
}

#kc-content-wrapper {
    margin-top: 20px;
}

#grid-header {
    align-items: center;
    height: 100px;
}

h1#kc-page-title {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: #72767b;
}


#kc-page-subtitle {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

#footer {
    position: relative;
    height: 100px;
    width: 100%;
    background-color: #000028;
    bottom: 0;
}

#footer-links, #footer-info {
    align-content: center;
}

#footer-info ul {
    display: flex;
    justify-content: end;
    flex-flow: row wrap;
    row-gap: 0;
    padding-top: 4px;
    gap: 10px;
}

#footer-links ul {
    display: flex;
    align-items: center;
}

#footer-links li, #footer-info li {
    display: inline;
    color: #9999A9;
    font-size: 14px;
}

#footer-links li a, #footer-info li a, button#kc-current-locale-link {
    color: #9999A9;
    background-color: #000028;
}

button#kc-current-locale-link:hover {
    text-decoration: underline;
    color: #9999A9;
}

button#kc-current-locale-link::after {
    margin-left: 4px
}

.pf-v5-c-brand {
	width: 30%;
	height: auto;
}

#kc-locale-dropdown {
    display: inline-block;
}

button#kc-current-locale-link::after {
    margin-left: 4px;
    content: "\2c5";
}

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

#kc-locale ul {
    min-width: 150px;
    display: none;
    padding: 0;
}

#kc-locale-dropdown button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: right;
}

#kc-locale-dropdown a {
    text-align: right;
    color: #9999A9;
}

li {
    text-align: left;
    color: #9999A9
}

li:focus-visible, a:focus-visible {
    outline: none;
}

.nav, .pf-v5-c-nav__list {
    display: flex;
    justify-content: end;
}

.pf-v5-c-nav__link::before, .pf-v5-c-nav__link::after {
    content: none;
}

.login-pf a:hover {
    text-decoration: underline;
    color: #9999A9;
}

.pf-v5-c-nav__item:last-of-type {
    padding-left: 30px;
}

input.pf-v5-c-form-control {
    background-color: #001F39;
    width: 100%;
    height: 40px;
    border: 2px solid #7D8099;
    border-radius: 3px;
    color: #fff;
    padding-left: 15px;
}

input.pf-v5-c-form-control:hover {
    background-color: #1c3c54;
    border-bottom: 2px solid #00FFB9;
}

input.pf-v5-c-form-control::placeholder {
    color: #9999A9;
}

#password {
    margin-top: 10px;
}

.login-pf-settings {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    align-items: center;
}

#kc-form-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#kc-login, #kc-logout,
input.pf-v5-c-button.pf-m-primary,
button#updateProfile,
button#linkAccount {
    background-color: #00E6DC;
    border: none;
    width: 100%;
    height: 40px;
    color: #000028;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

button#updateProfile {
    margin-bottom: 10px;
}

#kc-login:hover, #kc-logout:hover,
input.pf-v5-c-button.pf-m-primary:hover,
button#updateProfile:hover,
button#linkAccount:hover {
    background-color: #00FFB9;
}

#kc-form-options {
    font-size: 14px;
}

.login-pf-settings span a {
    font-size: 14px;
    color: #009999;
    font-weight: bold;
}
.login-pf-settings span a:hover {
    color: #00FFB9;
}

.kc-social-section {
    text-align: center;
}

#kc-form-options div.checkbox label {
    display: flex;
    color: #9999A9;
}

#rememberMe {
    margin-right: 5px;
    accent-color: #009999;
}

input.pf-v5-c-form-control:focus {
    outline: none;
}

.pf-v5-c-login__main>:last-child:not(.pf-v5-c-login__main-footer) {
    padding-block-end: 1;
}

.pf-v5-c-login__main>:last-child:not(.pf-v5-c-login__main-header) {
    padding-block-start: 1;
}

.pf-v5-c-login__main-footer-links {
    display: block;
}

.pf-v5-c-login__main-footer-links li {
    display: flex;
    height: 40px;
}

.pf-v5-c-login__main-footer-links li:not(:last-child) {
    margin-bottom: 5px;
    margin-top: 20px;
}

span.kc-social-provider-name {
    color: #009999;
    font-weight: bold;
    font-size: 14px;
    position: relative
}

hr {
    margin-top: 10px;
    border-color: #7D8099;
    width: 100%;
    height: 1px;
}

.kc-social-section hr {
    margin-bottom: 10px;
}

#divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 20px 0;
}

h3 {
    color: #fff;
    padding: 0 10px;
    font-size: 14px;
}

#social-MyID:hover > svg#MyID-icon path.svg-bg,
#social-SiemensID:hover > svg#SiemensID-icon path.svg-bg {
    fill: #00FFB9;
}

#social-MyID:hover > svg#MyID-icon path.svg-text,
#social-SiemensID:hover > svg#SiemensID-icon path.svg-text {
    fill: #1c3c54;
}

.alert-error.pf-c-alert {
    color: #FF0000;
    font-size: 14px;
    display: flex;
    background-color: #fbebe8;
    border-bottom: 2px solid #FF0000;
    border-radius: 3px;
    padding: 5px;
    margin-bottom: 20px;
}

.alert-info.pf-c-alert {
    color: #ffff00;
    font-size: 14px;
    display: flex;
    background-color: #ffffe27a;
    border-bottom: 2px solid #ffff00;
    border-radius: 3px;
    padding: 5px;
    margin-bottom: 20px;
}

.pf-c-alert__icon {
    margin-right: 5px;
}

#input-error {
    color: #FF0000;
    font-size: 14px;
}

input[aria-invalid='true'] {
    border-bottom: 2px solid #FF0000;
}

p.instruction {
    margin: 5px 0px 20px 0;
    color: #9999A9;
    text-align: center;
}

#kc-info-message p a, a#backToApplication, a#loginRestartLink, a#loginContinueLink {
    font-size: 14px;
    color: #009999;
    font-weight: bold;
}

#kc-info-message p a:hover, a#backToApplication:hover, a#loginRestartLink:hover, a#loginContinueLink:hover {
    color: #00FFB9;
}

.kc-info-message p:last-child {
    margin-top: 20px;
}

/* add Google Roboto font */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/roboto-v30-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}

.pf-v5-c-login__main {
    position: relative;
    align-self: center;
}

.pf-v5-c-form__group {
    font-size: 16px;
    color: #9999A9;
    margin-bottom: 10px;
}

span.subtitle {
    color: #9999A9;
}

/* Fit the login page in the dimensions of the NGM subtitle*/
.pf-v5-c-login__main .card-pf {
    width: 400px;
    background-color: #333353;
    border: none;
    padding: 1px 30px 40px 30px !important;
}

.pf-c-dropdown__menu {
    position: absolute;
    top: var(--pf-c-dropdown__menu--Top);
    z-index: var(--pf-c-dropdown__menu--ZIndex);
    padding-top: var(--pf-c-dropdown__menu--PaddingTop);
    padding-bottom: var(--pf-c-dropdown__menu--PaddingBottom);
    background: var(--pf-c-dropdown__menu--BackgroundColor);
    background-clip: padding-box;
    box-shadow: 0 0.25rem 0.5rem 0rem rgba(0, 230, 220, 0.12), 0 0 0.25rem 0 rgba(0, 230, 220, 0.06)
}

.pf-v5-c-nav.pf-m-horizontal .pf-v5-c-nav__list {
    justify-content: end;
}

.pf-v5-c-nav__link {
    padding: 0;
}

/* .pf-c-dropdown .pf-c-menu.pf-m-align-right, .pf-c-dropdown__menu.pf-m-align-right {
    right: 0;
} */

/*
    Change text-format of login subtitle
    Siemens Logo on top
*/
#kc-header-wrapper {
    height: 70px;
    line-height: 150px;
    margin-bottom: 100px;
    color: #ededed;
}

@media (max-width: 1200px) {
    #gridscale-logo {
        width: 50%;
        height: 90%;
        left: 50%
    }
}

@media (max-width: 992px) {
    #gridscale-logo {
        width: 60%;
        height: 90%;
        left: 40%
    }
}

@media (max-width: 767px) {
    #footer {
        height: 80px;
    }

    #siemens-logo {
        margin-top: 50px;
    }

    #footer-links ul {
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #footer-info {
        --pf-v5-l-grid__item--GridColumnStart: col-start 3;
    }

    #footer-info ul li:last-of-type {
        padding-left: 0px;
    }

    #footer-info ul {
        justify-content: center;
    }

    #kc-header-wrapper {
        font-size: 20px;
        text-align: center;
        color: #ededed;
    }

    .pf-v5-c-login__main .card-pf {
        width: 350px;
        margin: 0 auto !important;
    }
}

@media (max-width: 576px) {
    #gridscale-logo {
        width: 80%;
        height: 90%;
        left: 20%
    }

    .pf-v5-c-form__group {
        font-size: 14px;
        color: #9999A9;
        margin-bottom: 10px;
    }

    .login-pf body {
        font-size: 14px;
    }

    #kc-page-subtitle {
        font-size: 18px;
    }
    h1#kc-page-title {
        font-size: 26px;
    }
    #kc-form-options {
        font-size:12px;
    }
    #kc-locale ul {
        right: -12px;
    }
}

@media (max-width: 400px) {
    #gridscale-logo {
        width: 99%;
        height: 90%;
        left: 1%
    }

    .pf-v5-c-login__main .card-pf {
        width: 300px;
    }
}

@media (min-width: 768px) {
    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}