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: 'Inter', 'Trebuchet MS', sans-serif;
    color: var(--theme-text-primary);
    background: var(--theme-background) !important;
    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 {
    position: relative;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    color: white;
    width: 100%;
    min-height: 30vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 10%);
    padding: 0 60px 12px;
    font-size: 64px;
    line-height: 72px;
}

.Authentication__Main {
    position: relative;
    background-color: white;
    padding: 24px 24px 24px 0;
    gap: 24px;
    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__Topbar {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
    justify-content: space-between;
    -webkit-box-pack: space-between;
}

.Authentication__Main .EnvironmentLabel {
    padding: 2px 8px;
    width: auto !important;
    text-align: center;
    color: var(--theme-text-positive);
    background: var(--theme-background-positive);
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    border-radius: 4px;
    visibility: hidden;
}

.Authentication__Cover {
    position: absolute;
    left: -10vh;
    top: 0;
    bottom: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.login-pf-header {
    margin-top: auto;
}

.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 16px 0;
    padding: 0;
}

.Authentication__Logo {
    display: block;
    width: 60px;
    height: 60px;
    background: url(../img/symbol.svg) center/contain no-repeat;
    flex-shrink: 0;
    margin-bottom: 40px;
}

.Divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0;
}

.Divider::before,
.Divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--theme-border);
}

.BottomLinkWrapper {
    margin-top: 8px;
}

#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 {
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end;
    }

    .Authentication__Background {
        flex: 1;
        position: relative;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
        -webkit-flex-direction: column;
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end;
        margin: 24px;
        border-radius: 24px;
        overflow: hidden;
        background: #000000;
    }

    .Authentication__Column {
        width: 50%;
        max-width: 662px;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
    }

    .Authentication__Main {
        width: 100%;
        max-width: 459px;
    }
}

@media (min-width:1800px) {
    .Authentication__Cover {
        left: 0;
        width: 100%;
        height: auto;
        min-height: 100%;
    }
}

@media (max-height:699px) and (min-width:768px) {
    #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;
}