.kcf_body_frontend:has(.kcf_login_page) {
    overflow: hidden;
    background: #eceff3;
}

.kcf_body_frontend:has(.kcf_login_page) .kcf_frontend_page {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.kcf_login_page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(130, 80, 223, .14), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(69, 160, 73, .10), transparent 28%),
        #eceff3;
}

.kcf_login_frame {
    width: min(100%, 960px);
    min-height: 540px;
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
    overflow: hidden;
    border: 1px solid #d7dce3;
    border-radius: var(--kcf-radius);
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 28, 35, .16);
}

.kcf_login_brand_panel {
    position: relative;
    min-width: 0;
    padding: 46px 44px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(130, 80, 223, .18), transparent 48%),
        linear-gradient(325deg, rgba(69, 160, 73, .12), transparent 44%),
        #333;
}

.kcf_login_brand_panel::before,
.kcf_login_brand_panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.kcf_login_brand_panel::before {
    width: 260px;
    height: 260px;
    right: -120px;
    top: -110px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.kcf_login_brand_panel::after {
    width: 180px;
    height: 180px;
    left: -90px;
    bottom: 58px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.kcf_login_brand_content,
.kcf_login_brand_footer {
    position: relative;
    z-index: 1;
}

.kcf_login_wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    color: #fff;
    text-decoration: none;
}

.kcf_login_wordmark_name {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.045em;
}

.kcf_login_wordmark_version {
    color: #b990ff;
    font-size: 21px;
    font-weight: 600;
}

.kcf_login_brand_tagline {
    margin: 11px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

.kcf_login_brand_rule {
    width: 54px;
    height: 3px;
    margin: 42px 0 28px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--kcf-color-purple), var(--kcf-color-green));
}

.kcf_login_brand_message {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kcf_login_brand_icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--kcf-radius);
    color: #cdb5ff;
    background: rgba(255, 255, 255, .06);
    font-size: 19px;
}

.kcf_login_brand_message div {
    display: grid;
    gap: 3px;
}

.kcf_login_brand_message strong {
    font-size: 16px;
    font-weight: 600;
}

.kcf_login_brand_message span {
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
}

.kcf_login_brand_footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.kcf_login_status_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65c46a;
    box-shadow: 0 0 0 4px rgba(101, 196, 106, .10);
}

.kcf_login_form_panel {
    min-width: 0;
    padding: 44px 54px;
    display: grid;
    align-items: center;
    background: #fff;
}

.kcf_login_form_wrap {
    width: min(100%, 430px);
    margin: 0 auto;
}

.kcf_login_form_header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.kcf_login_form_icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--kcf-radius);
    color: var(--kcf-color-purple);
    background: var(--kcf-color-purple-soft);
    font-size: 18px;
}

.kcf_login_form_header h1 {
    margin: 0 0 3px;
    color: #252a31;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
}

.kcf_login_form_header p {
    margin: 0;
    color: var(--kcf-color-muted);
    font-size: 13px;
}

.kcf_login_alert {
    margin-bottom: 20px;
    padding: 11px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #edcbc8;
    border-radius: var(--kcf-radius);
    color: #9e3028;
    background: #fff5f4;
    font-size: 12px;
}

.kcf_login_alert i {
    margin-top: 2px;
}

.kcf_login_form {
    display: grid;
    gap: 18px;
}

.kcf_login_field {
    display: grid;
    gap: 7px;
}

.kcf_login_label {
    color: #373d45;
    font-size: 12px;
    font-weight: 600;
}

.kcf_login_input_wrap {
    position: relative;
    min-height: 47px;
    display: flex;
    align-items: center;
    border: 1px solid #d7dce3;
    border-radius: var(--kcf-radius);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.kcf_login_input_wrap:focus-within {
    border-color: #9f79e7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(130, 80, 223, .10);
}

.kcf_login_input_wrap > i {
    width: 43px;
    flex: 0 0 43px;
    color: #8a929d;
    text-align: center;
    font-size: 14px;
}

.kcf_login_input_wrap input {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding: 0 13px 0 0;
    border: 0;
    outline: 0;
    color: #22272e;
    background: transparent !important;
    box-shadow: none !important;
}

.kcf_login_input_wrap input:-webkit-autofill,
.kcf_login_input_wrap input:-webkit-autofill:hover,
.kcf_login_input_wrap input:-webkit-autofill:focus,
.kcf_login_input_wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #22272e;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #22272e;
}

.kcf_login_password_wrap input {
    padding-right: 46px;
}

.kcf_login_password_toggle {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--kcf-radius);
    color: #727b87;
    background: transparent;
    cursor: pointer;
}

.kcf_login_password_toggle:hover,
.kcf_login_password_toggle:focus-visible {
    color: var(--kcf-color-purple);
    background: var(--kcf-color-purple-soft);
    outline: 0;
}

.kcf_login_submit {
    justify-self: end;
    width: auto;
    min-width: 140px;
    min-height: 40px;
    margin-top: 3px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: var(--kcf-radius);
    color: #fff;
    background: var(--kcf-color-purple);
    box-shadow: 0 7px 16px rgba(130, 80, 223, .18);
    cursor: pointer;
    font-weight: 600;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.kcf_login_submit:hover {
    background: var(--kcf-color-purple-hover);
    box-shadow: 0 10px 22px rgba(130, 80, 223, .24);
    transform: translateY(-1px);
}

.kcf_login_submit:active {
    transform: translateY(0);
}

.kcf_login_form_footer {
    margin-top: 27px;
    padding-top: 17px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--kcf-color-border);
    color: #8a929d;
    font-size: 10px;
}

.kcf_login_footer_separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #bbc1c8;
}

@media (max-width: 820px) {
    .kcf_body_frontend:has(.kcf_login_page) {
        overflow: auto;
    }

    .kcf_login_page {
        min-height: 100svh;
        height: auto;
        overflow: auto;
        padding: 18px;
    }

    .kcf_login_frame {
        width: min(100%, 520px);
        min-height: auto;
        max-height: none;
        grid-template-columns: 1fr;
    }

    .kcf_login_brand_panel {
        min-height: 190px;
        padding: 28px;
    }

    .kcf_login_brand_rule {
        margin: 22px 0 18px;
    }

    .kcf_login_brand_footer {
        margin-top: 26px;
    }

    .kcf_login_form_panel {
        padding: 32px 28px;
    }
}

@media (max-width: 480px) {
    .kcf_login_page {
        min-height: 100svh;
        height: auto;
        overflow: auto;
        padding: 0;
        place-items: stretch;
    }

    .kcf_login_frame {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .kcf_login_brand_panel {
        min-height: 168px;
        padding: 25px 22px;
    }

    .kcf_login_wordmark_name {
        font-size: 34px;
    }

    .kcf_login_wordmark_version {
        font-size: 18px;
    }

    .kcf_login_brand_rule,
    .kcf_login_brand_message,
    .kcf_login_brand_footer {
        display: none;
    }

    .kcf_login_form_panel {
        padding: 30px 22px 36px;
        align-items: start;
    }

    .kcf_login_form_header {
        margin-bottom: 25px;
    }

    .kcf_login_submit {
        min-width: 132px;
    }
}
