body, html {
    height: 100%;
}

.kc-form-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc-form-container {
    margin: 0 20px;
}

.ui-button {
    margin: 25px 0 0 0;
    min-width: 100%;
}

.kc-form-card {
    padding: 25px;
    box-shadow: 0 0 5px #DADADA;
    border-radius: 5px;
}

.ui-checkbox {
    margin-bottom: 0;
}

.ui-typography--p {
    margin-top: 25px;
}

.ui-typography--h2:before {
    display: none;
}

#kc-page-title {
    margin: 0;
    font-size: inherit;
}

#kc-header {
    display: flex;
    justify-content: center;
}

#kc-username {
    font-size: 21px;
    padding-bottom: 4px;
    text-align: center;
}

.alert {
    margin-bottom: 25px;
    border-radius: 10px;
    padding: 10px;
    border: 1px dashed #ff0000;
}

.alert.alert-success {
    border: none;
    background: #00B0A6;
}

.alert.alert-info {
    border: none;
    background: #008DEB;
}

.ui-input__warning {
    color: #ff0000;
}

.ui-input__success, .ui-input__info {
    color: white;
}

.kc-feedback-text {
    visibility: visible;
}

/* TEMPORARY: password reset campaign banner on the login page */
.password-reset-notice .kc-feedback-text {
    display: block;
    margin-bottom: 8px;
}

.password-reset-notice .ui-inline-link {
    color: #fff;
    /* overrides the font-weight: 400 that bruker.css sets on .ui-inline-link */
    font-weight: 700;
    border-bottom: 1px solid #fff;
}

.password-reset-notice .ui-inline-link:focus,
.password-reset-notice .ui-inline-link:hover {
    border-bottom: 2px solid #fff;
}

#kc-locale {
    display: flex;
    justify-content: flex-end;
    flex: 0 1 0;
}

#kc-locale .ui-input--select {
    margin-top: 0;
    min-width: 110px;
}

.aem-header__logo-wrapper {
    width: 100px;
    height: 54px;
}

#kc-locale .ui-input--select:after {
    width: 25px;
    height: 25px;
    top: 7px;
    right: 0;
    font-size: 25px;
}

#kc-locale .ui-input--select select {
    border: none;
    padding-left: 0;
    padding-right: 25px;
}

.aem-header__logo-wrapper {
    margin-bottom: 30px;
}

.kc-login-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kc-card-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.kc-terms-and-privacy {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.kc-terms-and-privacy a {
    padding-left: 10px;
}

.kc-terms-and-privacy li:last-child a {
    margin-right: 0;
    padding-right: 0;
}

.kc-accept-terms {
    margin-top: 25px;
}

.kc-login-actions {
    display: flex;
    justify-content: space-between;
}

.ui-layout__responsive {
    width: 100%;
    padding: 0;
}

.ui-typography--p-caption {
    margin-top: 5px;
}

.ui-typography--p-caption-global-info {
    margin-top: 40px;
    margin-bottom: -10px;
}

.ui-checkbox__label:after {
    display: none;
}

.kc-register-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
}

.kc-close-cta {
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 21px;
    color: #008deb;
}

@media all and (max-width: 768px) {
    .kc-form-container {
        width: 100%;
    }

    .kc-register-form-footer {
        display: block;
    }
}

@media all and (min-width: 769px) {
    body:not(.register-template) .kc-form-card {
        min-width: 435px;
        max-width: 600px;
    }

    .ui-button--register {
        min-width: auto;
        margin-top: 0;
    }
}

@media only screen and (min-width: 1024px) {
    .aem-header__logo-wrapper {
        width: 150px;
        height: 78px;
    }

    .kc-terms-and-privacy a {
        white-space: nowrap;
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 141, 235, 0.3);
    border-top: 3px solid #008deb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
}

.login-spinner-text {
    margin-left: 10px;
}