:root {
    --ys2-auth-text: #191d27;
    --ys2-auth-muted: #626975;
    --ys2-auth-line: #dce0e6;
    --ys2-auth-brand: #c83f2d
}

html,
body.ys2-auth-page {
    background: #f4f5f7 !important;
    color: var(--ys2-auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100%
}

.ys2-auth-page .show-mobile,
.ys2-auth-page .auth-page-hero {
    display: none !important
}


.ys2-auth-page .auth-page-layout {
    align-items: center;
    /* background: #f4f5f7 !important; */
    display: flex !important;
    justify-content: center;
    min-height: 100vh;
    padding: 42px 20px;
    background: url(../img/keycloak-bg-darken.svg) no-repeat center center fixed;
    background-size: cover;
    height: 100%;
}

.ys2-auth-page .auth-page-form {
    align-items: center;
    background: transparent !important;
    display: flex !important;
    flex: 0 1 500px !important;
    justify-content: center;
    min-height: 0 !important;
    width: auto !important
}

.ys2-auth-page .auth-shell {
    background: #f4f5f7 !important;
    border: 1px solid var(--ys2-auth-line);
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(25, 29, 39, .08);
    box-sizing: border-box;
    margin: 0 !important;
    padding: 34px 38px 38px !important;
    width: 100% !important
}

.ys2-auth-brand {
    margin: 0 0 26px !important;
    text-align: left !important
}

.ys2-auth-brand a {
    align-items: center;
    color: var(--ys2-auth-text);
    display: inline-flex;
    gap: 10px;
    text-decoration: none
}

.ys2-auth-brand img {
    height: 52px;
    object-fit: contain;
    width: 52px
}

.ys2-auth-brand strong {
    font-size: 20px;
    font-weight: 650
}

.ys2-auth-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 28px
}

.ys2-auth-heading h1 {
    font-size: 25px;
    font-weight: 550;
    line-height: 1.3;
    margin: 0
}

.ys2-auth-language {
    background: #fff;
    border: 1px solid var(--ys2-auth-line);
    border-radius: 7px;
    color: var(--ys2-auth-muted);
    font-size: 12px;
    padding: 7px 24px 7px 9px
}

.ys2-auth-page .auth-field-label {
    color: var(--ys2-auth-muted) !important;
    font-size: 13px !important;
    margin: 0 0 7px !important
}

.ys2-auth-page .reg-group {
    background: transparent !important;
    border: 0 !important;
    margin-bottom: 18px !important
}

.ys2-auth-page .reg-control {
    background: #f7f8fa !important;
    border: 1px solid var(--ys2-auth-line) !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    color: var(--ys2-auth-text) !important;
    font-size: 14px !important;
    height: 46px !important;
    padding: 0 14px !important;
    width: 100% !important
}

.ys2-auth-page .reg-control:focus {
    border-color: var(--ys2-auth-brand) !important;
    box-shadow: 0 0 0 3px rgba(200, 63, 45, .1) !important;
    outline: 0
}

.ys2-auth-page .auth-pwd-eye {
    right: 14px !important
}

.ys2-auth-page .auth-invite-collapsible {
    margin: 2px 0 8px
}

.ys2-auth-page .auth-forgot-row {
    margin: 6px 0 16px !important
}

.ys2-auth-page .auth-forgot-link {
    color: var(--ys2-auth-muted) !important
}

.ys2-auth-page .auth-page-btn {
    background: var(--ys2-auth-brand) !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    height: 46px !important;
    width: 100% !important
}

.ys2-auth-page .auth-page-btn:not(.is-active) {
    opacity: .55
}

.ys2-auth-page .error-tip {
    color: var(--ys2-auth-brand) !important
}

@media(max-width:600px) {
    .ys2-auth-page .auth-page-layout {
        padding: 20px 14px
    }

    .ys2-auth-page .auth-shell {
        padding: 28px 22px 32px !important
    }

    .ys2-auth-heading {
        align-items: stretch;
        flex-direction: column
    }

    .ys2-auth-language {
        width: 100%
    }
}