/**
 * Variables
 */
:root {
    --ekz-logo__size: 6rem;
    --pf-global--root--FontSize: 62.5%;
    --pf-global--BoxShadow--lg: 0 4px 72px 0 rgba(0,0,0,0.08);
    --pf-global--danger-color--200: red;
    --pf-c-form__helper-text--FontSize: 1.2rem;

    --qs-color-primary: #008bca;
    --qs-color-primary--dark: #005ea1;
    --qs-color-primary--darker: #002954;
}

@media screen and (min-width: 1200px) {
    :root {
        --ekz-logo__size: 8rem;
    }
}

@font-face {
    font-family: 'Univers';
    src: url('../fonts/univers-light.woff2')
        format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Univers';
    src: url('../fonts/univers-bold.woff2')
        format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/**
 * General EKZ Styles
 */
.login-pf .cos-container.container {
    color: black;
    position: relative;
    padding: 0 4rem;
    margin: 0 auto;
    max-width: 659px;
}

@media screen and (min-width: 700px) {
    .login-pf .cos-container.container {
        max-width: 839px;
    }
}

@media screen and (min-width: 900px) {
    .login-pf .cos-container.container {
        max-width: 1119px;
    }
}

@media screen and (min-width: 1200px) {
    .login-pf .cos-container.container {
        max-width: 1120px;
        padding: 0;
    }
}

@media screen and (min-width: 1600px) {
    .login-pf .cos-container.container {
        max-width: 1360px;
    }
}

.cos-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media screen and (min-width: 700px) {
    .cos-container {
        padding-left: 1.875rem;
        padding-right: 1.875rem;
    }
}

@media screen and (min-width: 900px) {
    .cos-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media screen and (min-width: 1200px) {
    .cos-container {
        padding-left: inherit;
        padding-right: inherit;
    }
}

.heading {
    margin-top: 3.2rem;
    font-family: 'Univers', sans-serif;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
  
    &.heading--2 {
      font-size: 2.8rem;
    }
  
    &.heading--3 {
      font-size: 2rem;
    }
  
    &.heading--4 {
      font-size: 2rem;
    }
  
    &.heading--5 {
      font-size: 1.6rem;
    }
}

@media screen and (min-width: 1600px) {
    .heading.heading--2 {
        font-size: 4rem;
    }
    .heading.heading--3 {
        font-size: 2.4rem;
    }
}

.pf-c-alert__icon {
    --pf-c-alert__icon--FontSize: 2.4rem;
}

.alert-danger .pf-c-alert__icon {
    --pf-c-alert__icon--Color: red;
}

.alert-warning .pf-c-alert__icon {
    --pf-c-alert__icon--Color: #FAAA23;
}

.alert-success .pf-c-alert__icon {
    --pf-c-alert__icon--Color: #B9D241;
}

.pf-c-alert.pf-m-danger {
    --pf-c-alert--m-danger__title--Color: red;
    --pf-c-alert--m-danger__icon--Color: red;
    --pf-c-alert--m-danger--BorderTopColor: red;
}

.pf-c-alert.pf-m-warning {
    --pf-c-alert--m-warning__title--Color: #FAAA23;
    --pf-c-alert--m-warning__icon--Color: #FAAA23;
    --pf-c-alert--m-warning--BorderTopColor: #FAAA23;
}

.pf-c-alert.pf-m-success {
    --pf-c-alert--m-success__title--Color: #505523;
    --pf-c-alert--m-success__icon--Color: #B9D241;
    --pf-c-alert--m-success--BorderTopColor: #B9D241;
}

.pf-c-alert.pf-m-info {
    --pf-c-alert--m-info__title--Color: var(--qs-color-primary--dark);
    --pf-c-alert--m-info__icon--Color: var(--qs-color-primary);
    --pf-c-alert--m-info__icon--BorderTopColor: var(--qs-color-primary);
}

/**
 * Footer Styles
 */
.footer {
    margin-top: 3.2rem;
    background: #fff;
}

@media screen and (min-width: 900px) {
    .footer {
        margin-top: 6.4rem;
    }
}

.footer__list {
    margin-top: 2rem;
}

.footer__link-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.footer__link-item {
    font-size: 2rem;
    margin: 0 0 1.2rem;
    padding: 0;
}

.footer__link-item--active {
    font-family: 'Univers', sans-serif;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--qs-color-primary--darker);
}

.footer__social-links {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.footer__social-links-item {
    margin: 0.8rem 0.8rem 0 0;

    svg {
        fill: var(--qs-color-primary);
        width: 3rem;
        height: 3rem;
    }
}

.visually-hidden,
.footer__social-links-title {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.footer__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 2rem;
}

@media screen and (min-width: 900px) {
    .footer__meta {
        padding-top: 1.2rem;
    }
}

.footer__copyright {
    font-family: 'Univers', sans-serif;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    font-size: 1.4rem;
}

.footer__logo {
    margin: 0 0 0 2rem;
    width: 4rem;
    height: 4rem;
}

@media screen and (min-width: 900px) {
    .footer__logo {
        width: 5.9rem;
        height: 5.9rem;
    }
}

/**
 * Login Page Styles
 */

.login-pf body {
    font-family:  'Univers', sans-serif;
    font-weight: 200;
    line-height: 1.5;
    letter-spacing: normal;
    background: var(--pf-global--BackgroundColor--light-100);
}


/* 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. */
.login-pf {
    background: none;
}

.login-pf body {
    height: 100%;
    font-size: 2rem;
}

.pf-c-form__label {
    --pf-c-form__label--FontSize: 2rem;
}

.pf-c-form-control {
    --pf-c-form-control--BorderTopColor: transparent;
    --pf-c-form-control--BorderRightColor: transparent;
    --pf-c-form-control--BorderBottomColor: #000;
    --pf-c-form-control--BorderLeftColor: transparent;
    --pf-c-form-control--PaddingTop: 4px;
    --pf-c-form-control--PaddingRight: 0;
    --pf-c-form-control--PaddingBottom: 4px;
    --pf-c-form-control--PaddingLeft: 0;
    --pf-c-form-control--Color: #000;
    --pf-c-form-control--FontSize: 2rem;

    &[aria-invalid=true] {
        --pf-c-form-control--invalid--BorderBottomColor: var(--pf-global--danger-color--200);
        --pf-c-form-control--invalid--BorderBottomWidth: 1px;
        --pf-c-form-control--invalid--BackgroundPositionX: right;
    }
}

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

.pf-c-form__helper-text {
    display: block;
    line-height: 2;
}

.pf-c-alert {
    margin-bottom: 1rem;
}

.pf-c-alert__title {
    font-size: 2rem;
}

p.instruction {
    margin: 5px 0;
}

.pf-c-button.btn-lg {
    --pf-c-button--m-primary--BackgroundColor: var(--qs-color-primary);
    --pf-c-button--m-primary--hover--BackgroundColor: var(--qs-color-primary--darker);
    --pf-c-button--PaddingTop: 1.6rem;
    --pf-c-button--PaddingBottom: 1.6rem;
    --pf-c-button--PaddingLeft: 4rem;
    --pf-c-button--PaddingRight: 4rem;
}

#kc-form-buttons .pf-c-button {
    font-size: 2rem;
    font-weight: bold;
    padding: 1.6rem 4rem;
}

.pf-c-button.pf-m-control {
    --pf-c-button--after--BorderColor: transparent transparent #000;
    font-size: 2rem;
}

h1#kc-page-title {
    margin-top: 10px;
    font-size: 4rem;
    font-weight: 700;
    text-align: left;
}

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

#kc-locale-dropdown {
    display: none; /* was: inline-block; */
}

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

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

#kc-locale-dropdown button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--pf-global--Color--200);
    text-align: right;
    font-size: var(--pf-global--FontSize--sm);
}

button#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: #0099d3;
}

#kc-logo {
    width: 100%;
}

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

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: 4.2rem 4rem 2rem;
    max-width: 112rem;
    margin: 0 auto;
    white-space: normal;
}

@media screen and (min-width: 1200px) {
    #kc-header-wrapper {
        padding-inline: 0;
    }
}

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

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

#kc-info {
    margin: 4rem -4rem -2rem;
}

#kc-info-wrapper {
    border-top: 1px solid #e5e5e5;
    padding: 2rem 40px 0;
}

#kc-form-options {
    font-size: 2rem;

    a {
        font-size: 2rem !important;
    }

    span {
        display: block;
    }

    .checkbox {
        margin-top: 0;
        color: #000;

        label {
            padding-left: 4rem;
            font-weight: 200;
        }

        input {
            border: 1px solid #000;
            border-radius: 0;
            margin-left: -4rem;
            width: 2rem;
            height: 2rem;
        }
    }
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration-terms-text {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 5px;
}

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

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

.kc-social-provider-logo {
    font-size: 23px;
    width: 30px;
    height: 25px;
    float: left;
}

.kc-social-gray {
    color: var(--pf-global--Color--200);
}

.kc-social-gray h2 {
    font-size: 1em;
}

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

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

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

@media (max-width: 699px) {

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

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

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

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

@media (min-width: 700px) and (max-width: 899px) {
    .login-pf-page {
        background: url("../img/header_03-sm.jpg") no-repeat center 162px;
        background-size: contain;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .login-pf-page {
        background: url("../img/header_03-md.jpg") no-repeat center 162px;
        background-size: contain;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .login-pf-page {
        background: url("../img/header_03-lg.jpg") no-repeat center 162px;
        background-size: contain;
    }
}

@media (min-width: 1600px) {
    .login-pf-page {
        background: url("../img/header_03-xl.jpg") no-repeat center 162px;
        background-size: contain;
    }
}

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

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

.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;
    text-align: left;
    align-items: unset;
    background-color: unset;
    border-right: unset;
    border-bottom: unset;
    border-left: unset;
}

.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 {
    margin: 24rem auto 16rem;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 4rem;
    max-width: 74rem;
}

.login-pf-page .card-pf {
    padding: 4rem;
    margin-bottom: 16rem;
}

/*phone*/
@media (max-width: 699px) {
    .login-pf-page .card-pf {
        max-width: none;
        margin: 8rem 0 12rem;
        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: 2rem;
}
#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%;
}

.form-group {
    margin-bottom: 2rem;
}

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

#certificate_subjectDN {
    overflow-wrap: break-word
}
/* End Recovery codes */
