a, a:link, a:visited, a:hover, a:active{
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}
/* 修复chrome自动填充的input背景色 */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s !important;
}
.login-pf {
    overflow: hidden;
}
.login-pf body {
    background: url("../img/bg-img.png") #F3F4F7 no-repeat;
    background-size: cover;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* login-oauth-grant页面不展示内容 */
.login-pf body:has(div#kc-oauth) {
    display: none;
}
.login-pf-page {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-pf-page .login-pf-page-header {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
}
.login-pf-page .card-pf {
    position: relative;
    border-top: none;
    border-color: transparent;
    border-radius: 8px;
    box-shadow: 0px 16px 48px 0px #4C545F1A;
    padding: 60px 50px 24px;
    margin-bottom: 100px;
}

.login-pf-page .card-pf #kc-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#kc-footer {
    position: fixed;
    bottom: 0;
    height: 44px;
    padding-bottom: 24px;
    color: rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

#kc-footer footer > span {
    margin-right: 24px;
}

#kc-header-box {
    height: 32px;
    width: 200px;
    margin: 24px 0 0 32px;
    text-align: left;
    user-select: none;
}

#kc-header-box.kc-standard-logo {
    background-image: url('../img/logo-full.png');
    background-size: contain;
    background-repeat: no-repeat;
    color: transparent;
}

#kc-header-box.kc-standard-logo .kc-logo-text {
    display: none;
}

/* 企业版header */
#kc-header-box.kc-enter-logo {
    display: flex;
    align-items: center;
}
#kc-header-box.kc-enter-logo > img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 4px;
}

#kc-header-box.kc-enter-logo > span {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #000000;
}

.card-pf #kc-content-wrapper {
    margin-top: 0;
}

h2.kc-form-title {
    text-align: center;
    color: #181818;
    font-size: 24px;
    margin: 0 0 48px 0;
    font-weight: 600;
    min-height: 28px;
    line-height: 32px;
}

h2.kc-form-title > span.name {
    color: #0052d9;
}

.form-group {
    margin-bottom: 16px;
}

input.pf-c-form-control {
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    font-size: 16px;
    padding: 8px 12px;
    line-height: 24px;
    height: 40px;
    transition: border cubic-bezier(.38,0,.24,1) .2s, box-shadow cubic-bezier(.38,0,.24,1) .2s, -webkit-box-shadow cubic-bezier(.38,0,.24,1) .2s;
}

.pf-c-form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.pf-c-form-control:focus {
    border: 1px solid #0052d9;
    box-shadow: 0 0 0 2px #d9e1ff;
    padding-bottom: 8px;
}

.pf-c-form-control:focus-visible {
    outline: none;
}

.pf-c-form-control[aria-invalid=true] {
    border-bottom-width: 1px;
    background-image: none;
    padding-bottom: 7px;
    border: 1px solid #D54941;
    box-shadow: 0px 0px 0px 2px #FFD8D2;
}

.kc-form-code-wrap {
    position: relative;
}
.kc-form-code-wrap .code-btn {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.9);
    min-width: 100px;
}
.kc-form-code-wrap .code-btn:disabled {
    cursor: not-allowed;
}

.kc-form-code-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 100px;
    width: 1px;
    height: 16px;
    background-color: #E7E7E7;
}

.login-pf-settings #kc-form-options .kc-setting-item {
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
}

#kc-form-login #kc-form-buttons {
    height: 40px;
    margin-top: 32px;
}

.pf-c-form__helper-text.pf-m-error {
    margin-top: 2px;
    color: #D54941;
    display: inline-block;
    max-height: 20px;
    overflow-y: hidden;
}

.btn-group-lg>.btn, .btn-lg {
    font-size: 16px;
    padding: 8px 10px;
}

.pf-c-button.pf-m-primary {
    background-color: #0052d9;
    border-radius: 3px;
}

.pf-c-button:disabled, .pf-c-button:disabled:hover {
    background: rgba(181, 199, 255, 1);
    color: rgba(255, 255, 255, 0.9);
}

.pf-c-button.pf-m-primary:hover {
    background-color: #366ef4;
}

.kc-form-tips {
    display: none;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

.kc-form-tips a {
    color: #006EFF !important;
}

.login-pf-page .card-pf:has(#kc-form-login) .kc-form-tips,
.login-pf-page .card-pf:has(#kc-passwd-update-form) .kc-form-tips {
    display: block;
}

#kc-form-login .pf-c-alert.pf-m-inline {
    background-color: transparent;
    padding: 0;
    border: none;
}
#kc-form-login .pf-c-alert.pf-m-inline .pf-c-alert__title {
    font-weight: normal;
}
#kc-social-providers h2.providers-text {
    position: relative;
    color: rgba(0, 0, 0, 0.4);
    margin: 22px 0 24px;
    line-height: 20px;
}
#kc-social-providers h2.providers-text::before,
#kc-social-providers h2.providers-text::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}
#kc-social-providers h2.providers-text::before {
    left: 0;
}
#kc-social-providers h2.providers-text::after {
    right: 0;
}
#kc-social-providers .kc-social-links {
    padding: 0 45px;
    margin-bottom: 30px;
}
#kc-social-providers .kc-social-links li {
    min-height: 24px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.9);
}
#kc-social-providers .kc-social-links li img {
    width: 24px;
    height: 24px;
}

/* login-update-password.ftl */
#kc-passwd-update-form {
    margin-bottom: 84px;
}
#kc-passwd-update-form .kc-form-back {
    color: rgba(0, 0, 0, 0.6);
    position: absolute;
    left: 24px;
    top: 24px;
}
#kc-passwd-update-form .kc-form-desc {
    color: rgba(0, 0, 0, 0.4);
    margin-top: -36px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 14px;
    line-height: 22px;
}

#kc-passwd-update-form #kc-form-buttons input {
    height: 40px;
}

#kc-passwd-update-form #kc-form-buttons button {
    height: 40px;
    width: 100%;
    margin-top: 12px;
    border: 1px solid #DCDCDC;
    color: rgba(0, 0, 0, 0.9);
    background-color: transparent;
    background-image: none;
    border-radius: 3px;
}

/* info.ftl */
#kc-info-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#kc-info-message .kc-login-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#kc-info-message .kc-login-result > .result-icon {
    height: 80px;
    width: 80px;
    background-size: 80px 80px;
    background-repeat: no-repeat;
    background-position: center top;
}

#kc-info-message .kc-login-result > .result-icon.success-icon {
    background-image: url('../img/success-icon.png');
}

#kc-info-message .kc-login-result > .result-icon.error-icon {
    background-image: url('../img/error-icon.png');
}

#kc-info-message .kc-login-result > h6 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 20px 0;
}

#kc-info-message .kc-login-result > p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.9);
    margin: 0;
}

#kc-info-message .kc-qr-display {
    position: relative;
}

#kc-info-message .kc-qr-display > img {
    width: 122px;
    height: 122px;
    border: 1px solid #DBDBDB;
    border-radius: 4px;
}

#kc-info-message .kc-qr-display > p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.9);
    margin-top: 8px;
    display: none;
}

@media (max-height: 600px){
    .login-pf-page {
        height: auto;
    }
    #kc-footer {
        position: static;
    }
}

@media (min-width: 768px){/*>768*/
    .login-pf-page .card-pf {
        width: 420px;
    }
    #kc-info-message .kc-qr-display {
        margin-top: 70px;
    }
    #kc-info-message .kc-qr-display > p.pc {
        display: block;
    }
}

@media (max-width: 767px){
    div#kc-header {
        padding: 0;
    }
}

@media only screen
and (max-device-width: 767px){
    .login-pf body {
        background: #FFFFFF;
    }
    .login-pf-page {
        justify-content: flex-start;
        padding-top: 36px;
    }
    .login-pf-page .card-pf {
        border-radius: 0;
        box-shadow: none;
        padding: 42px 32px 24px;
        width: 100%;
        height: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    #kc-form-login h2.kc-form-title {
        font-size: 20px;
        margin: 0 0 40px 0;
    }
    .login-pf-page .card-pf #kc-content {
        height: 100%;
    }
    #kc-header-box {
        position: fixed;
        height: 24px;
        margin: 0;
        top: 12px;
        left: 20px;
    }
    #kc-header-box.kc-standard-logo {
        width: 155px;
    }
    #kc-header-box.kc-enter-logo > img {
        height: 22px;
    }
    #kc-header-box.kc-enter-logo > span {
        font-size: 14px;
    }
    div#kc-footer {
        display: none;
    }
    .card-pf #kc-content #kc-content-wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    #kc-social-providers .kc-social-grid {
        grid-column-end: 6;
        --pf-l-grid__item--GridColumnEnd: span 6;
    }
    .login-pf-page .login-pf-settings {
        justify-content: center;
    }
    #kc-info-message {
        position: relative;
    }
    #kc-info-message .kc-login-result > h6 {
        margin: 20px 0 15px;
    }
    #kc-info-message .kc-login-result > p {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.6);
    }
    #kc-info-message .kc-qr-display {
        position: absolute;
        bottom: -55vh;
        left: 50%;
        min-width: 130px;
        transform: translateX(-50%);
    }
    #kc-info-message .kc-qr-display > img {
        border: none;
    }
    #kc-info-message .kc-qr-display > p.mobile {
        display: block;
        color: rgba(0, 0, 0, 0.6);
    }
}

.kc-iframe-large.login-pf-page, .kc-iframe-small.login-pf-page {
    background: #FFFFFF;
    padding-top: 2px;
}
.kc-iframe-large.login-pf-page .card-pf, .kc-iframe-small.login-pf-page .card-pf {
    min-height: 520px;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0 2px;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
}
.kc-iframe-large.login-pf-page .login-pf-settings {
    justify-content: space-between;
}
.kc-iframe-large.login-pf-page .kc-form-title, .kc-iframe-small.login-pf-page .kc-form-title,
.kc-iframe-large.login-pf-page .kc-form-tips, .kc-iframe-small.login-pf-page .kc-form-tips,
.kc-iframe-large.login-pf-page #kc-footer, .kc-iframe-small.login-pf-page #kc-footer {
    display: none !important;
}
