html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    font-family: inherit;
    color: inherit;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Rubik', 'Trebuchet MS', sans-serif;
    color: var(--theme-grey1);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin: 0;
}

.Authentication__Container {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.Authentication__Background {
    display: none;
}

.Authentication__Title {
    line-height: 32px;
    color: white;
    -webkit-letter-spacing: 6px;
    -moz-letter-spacing: 6px;
    letter-spacing: 6px;
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate3d(-50%,-50%,0);
    transform: translate3d(-50%,-50%,0);
}

.Authentication__Main {
    position: relative;
    background-color: white;
    padding: 0 30px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-start;
    -webkit-box-align: flex-start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 100%;
}

.Authentication__Main .EnvironmentLabel {
    padding: 5px 15px;
    position: absolute;
    top: 0;
    width: auto !important;
    text-align: center;
    color: white;
    background: var(--theme-green-pure);
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    visibility: hidden;
}

.Authentication__Main .LargeTitle {
    margin-bottom: 20px;
}
.login-pf-header {
    margin-top: auto;
}

.Authentication__Main .Alert {
    margin-bottom: -4px;
}

.Authentication__Main .Alert:not(:last-of-type) {
    margin-bottom: 20px;
}

.Authentication__Main form {
    margin-top: 20px;
}

.Authentication__Main > * {
    width: 100%;
}

.Authentication__Main > *:last-child {
    margin-bottom: auto;
}

.Authentication__Main form .Button {
    width: 100%;
    display: inline-block;
    margin-top: 10px;
}

.Authentication__Main form > *:not(:last-child) {
    margin: 0 0 30px 0;
    padding: 0;
}

.Authentication__Logo {
    width: 130px;
    height: 22px;
    background: url(../img/logotype.svg) center/contain no-repeat;
    flex-shrink: 0;
}

#kc-logo-locale-wrapper {
    margin-top: 30px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-end;
    -webkit-box-align: flex-end;
    align-items: flex-end;
    -webkit-box-pack: space-between;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

#kc-locale {
    position: relative;
    top: 13px;
}

.BottomLinkWrapper {
    position: absolute;
    bottom: 0;
}

#kc-username {
    text-align: left;
    margin-bottom: 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
}

#kc-attempted-username {
    display: inline;
    font-weight: 500 !important;
    max-width: calc(100% - 15px);
    overflow: hidden;
    text-overflow: ellipsis;
}

#reset-flow-tooltip {
    top: -10px;
    left: unset;
    -webkit-transform: translate3d(-90%, -100%, 0);
    transform: translate3d(-90%, -100%, 0);
}

#reset-flow-tooltip::after {
    width: 0;
    height: 0;
    top: 100%;
    right: 17px;
    border: 5px solid transparent;
    border-top-color: black;
    border-bottom: 0;
    margin: 0 0 -5px -5px;
}

@media (min-width:768px) {
    .Authentication__Container {
        background-color: var(--theme-darkBlue-pure);
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end;
    }

    .Authentication__Background {
        position: relative;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end;
        -webkit-flex: 1 1 70%;
        flex: 1 1 70%;
    }

    .Authentication__Background > video {
        position: absolute;
        min-width: 100%;
        min-height: 100%;
        max-width: unset;
        opacity: 0.54;
    }

    .Authentication__Main {
        padding: 0 0 0 40px;
        width: 25%;
        min-width: 450px;
        -webkit-flex: 1 0 25%;
        flex: 1 0 25%;
    }

    .Authentication__Main > * {
        width: 310px !important;
    }
}

@media (max-height:699px) and (min-width:768px) {
    .Authentication__Logo {
        position: absolute;
        top: 30px;
        left: 30px;
        -webkit-filter: invert(1) contrast(3);
        filter: invert(1) contrast(3);
    }

    #kc-locale ul {
        right: unset !important;
    }

    #kc-locale ul li a {
        -webkit-box-pack: start !important;
        -webkit-justify-content: flex-start !important;
        justify-content: flex-start !important;
    }
}

#kc-totp-secret-key {
    background-color: transparent !important;
}