:root {
    --color--primary-main: #FF0000;
    --color--primary-dark: #B10523;
    --color--accent: #FF0000;
    --color--focus: #808080;
    --logo--width:300px;
    --logo--width-tablet: 250px;
    --logo--width-mobile: 200px;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(../fonts/FiraSans-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(../fonts/FiraSans-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Sans';
    src: url(../fonts/FiraSans-SemiBold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

body {
    font-size: 14px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
}

h4 {
    font-size: 14px;
    font-weight: 400;
}

input[type="checkbox"] {
    accent-color:  var(--color--primary-main);
}

.login-pf body {
    background: url("../img/funke-bg.png") no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: border-box;
}

.login-pf-page{
    flex: 1;
}

header.login-pf-page {
    margin-bottom: 0;
}

.visibility {
    content: url("../img/visibility.svg")
}

.visibility-off {
    content: url("../img/visibility-off.svg")
}


.instruction, .instruction-info {
    text-align: left;
}

.instruction-info {
    padding: 0 40px 20px;
}

.pf-c-form-control:not(textarea){
    height: 45px;
    border-radius: 4px;
}

.pws-reset-button {
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    margin: 20px 0 40px;
}

.loading-icon {
    width: 50px;
    margin: 0 auto;
    opacity: 0.9;
    content: url("../img/loading.svg");
    -webkit-animation:spin 5s linear infinite;
    -moz-animation:spin 5s linear infinite;
    animation:spin 5s linear infinite;
}
@-moz-keyframes spin {
    100% { -moz-transform: rotate(180deg); }
}
@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(180deg); }
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(180deg);
        transform:rotate(360deg);
    }
}

/*IE compatibility*/

.login-pf {
    background: none;
}

.login-pf-page .login-pf-signup a {
    margin-left: 0;
}

a, a:active, a:focus-visible {
    color: #FF0000;
    color: var(--color--primary-main);
}

p {
    font-weight: normal;
    font-size: 0.8rem;
    text-align: justify;
}

.pf-c-form-control {
    font-size: 17px;
    border-width: 1px;
    border-width: var(--pf-global--BorderWidth--sm);
    border: 2px solid #dbdbdb;
    background-color: #FFFFFF;
    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:focus-visible {
    border: 2px solid var(--color--focus); 
    outline: none;
}

.pf-c-form-control:hover, .pf-c-form-control.pf-m-hover {
    border-bottom-color: var(--color--focus);
    border-bottom-width: 2px;
    border-bottom-width: var(--pf-global--BorderWidth--md);
}

.pf-c-form-control[aria-invalid="true"] {
    border-color: #C9190B;
    border-color: var(--pf-global--danger-color--100);
    border-width: 2px;
    border-width: var(--pf-global--BorderWidth--md);
}

.pf-c-alert.pf-m-inline {
    margin-bottom: 0.5rem; /* default - IE compatibility */
    margin-bottom: var(--pf-global--spacer--sm);
    padding: 0.25rem;
    padding: var(--pf-global--spacer--xs);
    border: solid #ededed;
    border: solid var(--pf-global--BorderColor--300);
    border-width: 1px;
    border-width: var(--pf-c-alert--m-inline--BorderTopWidth) var(--pf-c-alert--m-inline--BorderRightWidth) var(--pf-c-alert--m-inline--BorderBottomWidth) var(--pf-c-alert--m-inline--BorderLeftWidth);
    display: -ms-flexbox;
    display: grid;
    -ms-grid-columns: max-content 1fr max-content;
    grid-template-columns:max-content 1fr max-content;
    grid-template-columns: var(--pf-c-alert--grid-template-columns);
    grid-template-rows: 1fr auto;
    grid-template-rows: var(--pf-c-alert--grid-template-rows);
}

.pf-c-alert.pf-m-inline::before {
    position: absolute;
    top: -1px;
    top: var(--pf-c-alert--m-inline--before--Top);
    bottom: -1px;
    bottom: var(--pf-c-alert--m-inline--before--Bottom);
    left: 0;
    width: 3px;
    width: var(--pf-c-alert--m-inline--before--Width);
    content: "";
    background-color: #FFFFFF;
    background-color: var(--pf-global--BackgroundColor--100);
}

.pf-c-alert.pf-m-inline.pf-m-success::before {
    background-color: #92D400;
    background-color: var(--pf-global--success-color--100);
}

.pf-c-alert.pf-m-inline.pf-m-danger::before {
    background-color: #C9190B;
    background-color: var(--pf-global--danger-color--100);
}

.pf-c-alert.pf-m-inline.pf-m-warning::before {
    background-color: #F0AB00;
    background-color: var(--pf-global--warning-color--100);
}

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

.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);
    font-weight: normal;
}

.pf-c-button {
    padding:0.375rem 1rem;
    padding: var(--pf-global--spacer--form-element) var(--pf-global--spacer--md);
    height: 44px;
    border-radius: 4px;
}

/* default - IE compatibility */
.pf-m-primary.pf-c-button {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 500;
    background-color: var(--color--primary-main);
}

/* default - IE compatibility */
.pf-m-primary:hover {
    background-color: var(--color--primary-dark);
}

/* default - IE compatibility */
.pf-c-button.pf-m-control {
    border: 2px solid #dbdbdb;
    height: 45px;
    --pf-c-button--after--BorderColor: white;
}

.pf-c-button.pf-m-control:hover {
    border-color: var(--color--focus);
    outline: none;
}

.pf-c-button.pf-m-control:focus {
    text-decoration: none;
}

/*End of IE compatibility*/
h1#kc-page-title {
    margin-top: 20px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
}

#kc-locale ul {
    background-color: #FFF;
    background-color: var(--pf-global--BackgroundColor--100);
    display: none;
    top: 20px;
    min-width: 50px;
    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 */
.fa-angle-down {
    margin-left: 4px;
    margin-left: var(--pf-global--spacer--xs)
}

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

.login-pf a:hover, .login-pf a:focus-visible, .login-pf a:focus {
    color: var(--color--primary-dark);
    outline: var(--pf-c-button--m-primary--BackgroundColor) 2px solid;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/funke-logo-text.png);
    background-repeat: no-repeat;
    height: auto;
    width: var(--logo--width);
    margin: 62px auto 0;
}

/* div.kc-logo-publication img {} */

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

div.kc-logo-text {
    background-image: url(../img/publication-logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    width: var(--logo--width);
    margin: 0 auto;
}

#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-content-wrapper {
    margin-top: 0;
}

#kc-content-wrapper p{
    font-size: 15px;
}

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

#kc-info {
    margin: 20px -40px -30px;
}

#kc-info-wrapper, #kc-registration {
    font-size: 14px;
}

.kc-info-wrapper {
    background-color: #F2F2F2;
    color: #525252;
    padding: 15px;
}

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

.kc-registration-link {
    font-weight: 600;
}

/* 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;
    margin-top: 3px;
}

.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;
    font-weight: 500;
}

.kc-social-provider-name {
    position: relative;
    top: 3px;
}

.kc-social-icon-text {
    left: -15px;
    font-weight: 500;
    color: #666666;
}

.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;
    border-top: 1px solid #dbdbdb;
    margin-top: 0;
}

.termsAndConditions-data {
    margin-top: 16px;
}

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

.login-pf-page .login-pf-page-header {
    margin: 14px 0 0;
}

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

    div.kc-logo-publication {
        top: 170px;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {

    h1#kc-page-title {
        font-size: 20px;
    }

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

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: 600;
        color: #72767b;
        letter-spacing: 0;
        margin:20px auto;
    }

    .login-pf-page .login-pf-page-header {
        margin-bottom: 10px;
    }

    #kc-form {
        float: none;
    }

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

    .login-pf-page .login-pf-header {
        margin-bottom: 0;
    }

    .fa {
        cursor: pointer;
    }

    #kc-locale {
        position: absolute;
        width: 100px;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: auto;
        width: var(--logo--width-tablet);
        margin: 20px 0 0 20px;
    }
}

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

.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 #f2f2f2;
        padding-top: 1rem;
        padding-bottom: 1rem;
        cursor: pointer;
    }

    .select-auth-box-headline {
        font-size: 16px;
        color: #FF0000;
        font-weight: 600;
    }

    .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(--color--primary-main);
    font-weight: 600;
}

.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: #FF0000; /* default - IE compatibility */
    border-color: var(--color--accent);
    margin-top: 20px;
}

/*Link to account information*/
.funke-info {
    color: #72767b;
    text-decoration: underline;
}

#kc-social-providers p{
    text-align: center;
}

#kc-social-providers h2{
    font-size: 14px;
    margin: 0;
}

.password-container {
    position: relative;
}

#button-password, #button-password-confirm {
    position: absolute;
    right: 0px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Toggle password with icon */
#icon-password, #icon-password-confirm, #icon-password-new {
    font-size: 15px;
    color: var(--pf-global--Color--200);
    cursor: pointer;
    z-index: 1000;
}

#kc-register-form #icon-password, #kc-register-form #icon-password-confirm, #icon-password-new {
    right: 25px;
}

.update-psw-wrapper #icon-password-confirm, .update-psw-wrapper #icon-password-new {
    right: 25px;
    margin-top: 0;
}

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

input::placeholder {
    color: transparent;
}

input:focus + label, input:not(:placeholder-shown) + label {
    transform: translateY(-0.7rem) scale(0.8);
    background-color: #FFFFFF;
    margin-top: 0;
    overflow: hidden;
    opacity: 1;
    padding: 0 10px;
}

.instruction-migration {
    padding: 0 40px 16px;
    text-align: left;
}

.margin-end{
    margin-bottom: 20px;
}

/*tablet*/
@media (max-width: 767px) {
    .login-pf-page .card-pf {
        max-width: 80vw;
        padding: 20px;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }

    #kc-info {
        margin: 20px -20px -30px;
        width: 80vw;
    }

    div.kc-logo-text {
        width: var(--logo--width-tablet);
    }

    .instruction-migration {
        padding: 0 20px 16px;
        text-align: left;
    }
}

/*mobile*/
@media (max-width: 480px) {
    .instruction-info {
        padding: 0 20px 20px;
    }
    .login-pf-page .card-pf {
        max-width: 100vw;
        padding: 0 16px 16px;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }

    #kc-info {
        width: 100vw;
        margin: 20px -16px -30px;

    }

    #kc-header-wrapper {
        margin: 16px auto;
        padding: 25px 10px 20px;
        height: 60px;
    }

    div.kc-logo-text {
        margin: 0;
        width: var(--logo--width-mobile);
        height: auto;
        background-size: 100%;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #72767b;
}

.login-pf-page .login-pf-header {
    margin-bottom: 0;
}

#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;
}
textarea.pf-c-form-control {
    height: auto;
}

/* Move eye icon to left if error in user or psw */
.icon-psw-login button, .icon-psw-update-error button {
    margin-right: 20px;
}

.kc-login-psw-container {
    position: relative;
}

/* Terms and conditions and Data privacy*/
.termsAndConditions-data a {
    color: #72767b;
    text-decoration: underline;
    font-weight: 600;
}

.termsAndConditions-data p {
    font-size: 13px !important;
    text-align: left;
}

.hint {
    margin-bottom: 0;
    margin-top: 8px;
    text-align: left;
    font-size: 13px !important;
    color: #72767b;
}

.hide-hint {
    display: none;
}
.link-opt-in {
    text-decoration: underline;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.link-opt-in:hover, .link-opt-in:focus, .link-opt-in:focus-visible {
    color: var(--color--primary-dark)
}

.verifyMail ~ #goHomeLink {
    display: none;
}

hr.dotted {
    border-top: 2px dotted #bbb;
}

/*footer*/
footer {
    background-color: #3b3b3b;
    width: 100vw;
    min-height: 45px;
    display: flex;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin-top: 10px;
}

.footerContent {
    height: 16px;
}

.email-error {
    display: inline-block;
    color: #A30000;
}

.button-disabled {
    background-color: var(--color--primary-dark) !important;
}