.app-appearance-kbzch .kbzch-auth {
    min-height: 100vh;
    background: #ffffff;
    padding: 24px;
    box-sizing: border-box;
}

body.app-appearance-kbzch {
    background-image: none !important;
    background-color: var(--bs-body-bg) !important;
}

.app-appearance-kbzch .kbzch-auth__layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 48px;
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    box-sizing: border-box;
}

.app-appearance-kbzch .kbzch-auth__main {
    flex: 1 1 540px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    box-sizing: border-box;
}

.app-appearance-kbzch .kbzch-auth__brand {
    margin-bottom: 48px;
}

.app-appearance-kbzch .kbzch-auth__logo {
    width: 100%;
    height: auto;
}

.app-appearance-kbzch .kbzch-auth__brand-subtitle {
    margin-top: 12px;
    color: #214183;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: 2px solid #df2242;
    padding-top: 10px;
    max-width: 420px;
}

.app-appearance-kbzch .kbzch-auth__form-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-appearance-kbzch .kbzch-auth__title {
    margin-bottom: 8px;
    color: #30517C !important;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.6px;
}

.app-appearance-kbzch .kbzch-auth__guest-error {
    background: #fff5f5;
    border: 1px solid #f1b0b7;
    border-radius: 0.75rem;
    color: #842029;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 1rem 1.125rem;
    text-align: left;
}

.app-appearance-kbzch .kbzch-auth__guest-error-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.app-appearance-kbzch .kbzch-auth__subtitle {
    color: #4B5675;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
}

.app-appearance-kbzch .kbzch-auth__form .form-control {
    background-color: #ffffff;
    border-color: #e4e6ef;
    min-height: 48px;
}

.app-appearance-kbzch .kbzch-auth__form .form-control:focus {
    border-color: #1379f0;
}

.app-appearance-kbzch .kbzch-auth__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-appearance-kbzch .kbzch-auth__btn-primary {
    color: #E7F2FF !important;
    background-color: #1379f0 !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
    border-radius: 6px !important;
    padding: 12px 20px !important;
}

.app-appearance-kbzch .kbzch-auth__btn-secondary {
    background-color: #E7F2FF;
    color: #1379f0;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
    border-radius: 6px !important;
    padding: 12px 20px !important;
}

.app-appearance-kbzch .kbzch-auth__btn-secondary:hover {
    background-color: #dbeafe;
    border-color: #dbeafe;
    color: #0d4b94;
}

.app-appearance-kbzch .kbzch-auth__link-row {
    margin-top: 20px;
    color: #4B5675;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
}

.app-appearance-kbzch .kbzch-auth__link-row a {
    color: #1379f0;
}

.app-appearance-kbzch .kbzch-auth__forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.app-appearance-kbzch .kbzch-auth__forgot-row .kbzch-auth__legal-link {
    color: #30517C;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.app-appearance-kbzch .kbzch-auth__forgot-row .kbzch-auth__legal-link:hover {
    color: #1379F0;
}

.app-appearance-kbzch .kbzch-auth__footer {
    margin-top: 48px;
}

.app-appearance-kbzch .kbzch-auth__footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.app-appearance-kbzch .kbzch-auth__language {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-appearance-kbzch .kbzch-auth__legal-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-appearance-kbzch .kbzch-auth__legal-link {
    color: #1379F0;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
}

.app-appearance-kbzch .kbzch-auth__legal-link:hover {
    color: #0d4b94;
}

.app-appearance-kbzch .kbzch-auth__footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #DCDDDE;
    color: #6B6E73;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px; 
}

.app-appearance-kbzch .kbzch-auth__aside {
    align-items: center;
    justify-content: center;
}

.app-appearance-kbzch .kbzch-auth__aside-image {
    width: 100%;
    height: calc(100vh - 40px);
    border-radius: 24px;
    object-fit: cover;
}

.app-appearance-kbzch .kbzch-auth__mfa-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 37px;
}

.app-appearance-kbzch .kbzch-auth__mfa-block {
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
}

.app-appearance-kbzch .kbzch-auth__mfa-digit {
    width: 60px;
    height: 60px;
    text-align: center;
    border: 2px solid #e4e6ef;
    border-radius: 8px;
    color: #7E8299;
    font-size: 26px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: -0.52px;
}

.app-appearance-kbzch .kbzch-auth__mfa-digit:focus {
    outline: none;
    border-color: #3E97FF;
}

.app-appearance-kbzch .kbzch-auth__terms {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 37px;
    color: #4B5675;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
}

.app-appearance-kbzch .kbzch-auth__terms .form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.app-appearance-kbzch .kbzch-auth__terms .form-check-label {
    color: #4B5675 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
}

.app-appearance-kbzch .kbzch-auth__terms .kbzch-auth__legal-link {
    color: #1379f0 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
}

.app-appearance-kbzch .kbzch-auth__terms .kbzch-auth__legal-link:hover {
    color: #0d4b94 !important;
}

.app-appearance-kbzch .kbzch-auth__terms .form-check-input {
    width: 30px !important;
    height: 30px !important;
}

.app-appearance-kbzch .kbzch-auth__terms .invalid-feedback {
    flex-basis: 100%;
    width: 100%;
    text-align: left;
}

@media (max-width: 991.98px) {
    .app-appearance-kbzch .kbzch-auth {
        min-height: 100dvh;
    }

    .app-appearance-kbzch .kbzch-auth__layout {
        flex-direction: column;
        min-height: calc(100dvh - 48px);
        gap: 24px;
    }

    .app-appearance-kbzch .kbzch-auth__main {
        max-width: none;
        padding: 0;
        min-height: calc(100dvh - 48px);
    }

    .app-appearance-kbzch .kbzch-auth__aside {
        display: none;
    }

    .app-appearance-kbzch .kbzch-auth__aside-image {
        max-width: 100%;
        max-height: 240px;
    }

    .app-appearance-kbzch .kbzch-auth__brand {
        margin-bottom: 24px;
    }

    .app-appearance-kbzch .kbzch-auth__footer {
        margin-top: auto;
        padding-top: 24px;
    }
}

@media (max-width: 575.98px) {
    .app-appearance-kbzch .kbzch-auth {
        padding: 32px 16px 28px;
    }

    .app-appearance-kbzch .kbzch-auth__layout,
    .app-appearance-kbzch .kbzch-auth__main {
        min-height: calc(100dvh - 60px);
    }

    .app-appearance-kbzch .kbzch-auth__footer-top,
    .app-appearance-kbzch .kbzch-auth__footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-appearance-kbzch .kbzch-auth__title {
        font-size: 26px;
        line-height: 32px;
    }

    .app-appearance-kbzch .kbzch-auth__subtitle,
    .app-appearance-kbzch .kbzch-auth__link-row,
    .app-appearance-kbzch .kbzch-auth__terms,
    .app-appearance-kbzch .kbzch-auth__terms .form-check-label,
    .app-appearance-kbzch .kbzch-auth__terms .kbzch-auth__legal-link {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    .app-appearance-kbzch .kbzch-auth__forgot-row {
        justify-content: center;
    }

    .app-appearance-kbzch .kbzch-auth__actions,
    .app-appearance-kbzch .kbzch-auth__reset-password-actions,
    .app-appearance-kbzch .kbzch-auth__mfa-actions {
        flex-direction: column;
    }

    .app-appearance-kbzch .kbzch-auth__btn-primary,
    .app-appearance-kbzch .kbzch-auth__btn-secondary,
    .app-appearance-kbzch .kbzch-auth__reset-password-btn-primary,
    .app-appearance-kbzch .kbzch-auth__reset-password-btn-secondary {
        width: 100%;
    }

    .app-appearance-kbzch .kbzch-auth__language {
        flex-wrap: wrap;
    }

    .app-appearance-kbzch .kbzch-auth__legal-links {
        gap: 10px;
    }

    .app-appearance-kbzch .kbzch-auth__mfa-digit {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .app-appearance-kbzch .kbzch-auth__mfa-inputs {
        gap: 12px;
        margin-bottom: 28px;
    }

    .app-appearance-kbzch .kbzch-auth__mfa-hint,
    .app-appearance-kbzch .kbzch-auth__new-password-password-hint {
        font-size: 16px;
        line-height: 24px;
    }

    .app-appearance-kbzch .kbzch-auth__terms .form-check-input {
        width: 24px !important;
        height: 24px !important;
        margin-top: 2px;
    }
}

@media (max-width: 399.98px) {
    .app-appearance-kbzch .kbzch-auth {
        padding: 24px 12px 20px;
    }

    .app-appearance-kbzch .kbzch-auth__layout,
    .app-appearance-kbzch .kbzch-auth__main {
        min-height: calc(100dvh - 36px);
    }

    .app-appearance-kbzch .kbzch-auth__mfa-inputs {
        gap: 8px;
    }

    .app-appearance-kbzch .kbzch-auth__mfa-digit {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.app-appearance-kbzch .kbzch-auth__language-label {
    color: #68728D;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
}

.app-appearance-kbzch .btn.kbzch-auth__language-button {
    padding: 0 !important;
}

.app-appearance-kbzch .kbzch-auth__language-flag {
    display: flex;
    width: 18px;
    height: 18px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    margin-right: 4px;
    border-radius: 6px;
}

.app-appearance-kbzch .kbzch-auth__language-name {
    color: #393B40;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
}

.app-appearance-kbzch .kbzch-auth__language-icon {
    color: #676A72;
}

.app-appearance-kbzch .kbzch-auth__login-input {
    margin-top: 37px;
    margin-bottom: 20px !important;
}

.app-appearance-kbzch .kbzch-auth__password-input {
    margin-bottom: 8px !important;
}

.app-appearance-kbzch .kbzch-auth__login-input input,
.app-appearance-kbzch .kbzch-auth__password-input input {
    padding: 10px 16px;
    color: #68728D;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.app-appearance-kbzch .kbzch-auth__login-input input::placeholder,
.app-appearance-kbzch .kbzch-auth__password-input input::placeholder {
    color: #68728D !important;
}

.app-appearance-kbzch .kbzch-auth__reset-password-email-input {
    margin-top: 37px !important;
    margin-bottom: 37px !important;
}

.app-appearance-kbzch .kbzch-auth__reset-password-email-input input {
    padding: 10px 16px;
    color: #68728D;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.app-appearance-kbzch .kbzch-auth__reset-password-email-input input::placeholder {
    color: #68728D !important;
}

.app-appearance-kbzch .kbzch-auth__reset-password-btn-primary {
    height: 43px;
    padding: 12px 20px !important;
    justify-content: center;
    align-items: center;
    border-radius: 6px !important;
    background: #1379F0;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
}

.app-appearance-kbzch .kbzch-auth__reset-password-btn-secondary {
    height: 43px;
    padding: 12px 20px !important;
    justify-content: center;
    align-items: center;
    border-radius: 6px !important;
    background: #F0F1F6;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
    color: #4B5675;
}

.app-appearance-kbzch .kbzch-auth__reset-password-actions {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

.app-appearance-kbzch .kbzch-auth__login-input .fv-plugins-message-container,
.app-appearance-kbzch .kbzch-auth__password-input .fv-plugins-message-container,
.app-appearance-kbzch .kbzch-auth__reset-password-email-input .fv-plugins-message-container,
.app-appearance-kbzch .kbzch-auth__terms .invalid-feedback,
.app-appearance-kbzch .kbzch-auth__new-password-password-input .invalid-feedback,
.app-appearance-kbzch .kbzch-auth__new-password-repeat-password-input .invalid-feedback {
    margin-top: 6px !important;
    color: #ED143B;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.app-appearance-kbzch .kbzch-auth__legal-link--subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
}

.kbzch-auth__new-password-password-input {
    margin-top: 37px !important;
    margin-bottom: 20px !important;
}

.app-appearance-kbzch .kbzch-auth__new-password-password-input input {
    padding: 10px 16px;
    color: #68728D;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.app-appearance-kbzch .kbzch-auth__new-password-password-input input::placeholder {
    color: #68728D !important;
}

.kbzch-auth__new-password-repeat-password-input {
    margin-bottom: 20px !important;
}

.app-appearance-kbzch .kbzch-auth__new-password-repeat-password-input input {
    padding: 10px 16px;
    color: #68728D;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.app-appearance-kbzch .kbzch-auth__new-password-repeat-password-input input::placeholder {
    color: #68728D !important;
}

.app-appearance-kbzch .kbzch-auth__new-password-password-hint {
    color: #4B5675;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.app-appearance-kbzch .kbzch-auth__subtitle--register {
    margin-top: 37px !important;
    margin-bottom: 37px !important;
    color: #27314B !important;
}

.app-appearance-kbzch .kbzch-auth__subtitle--register .kbzch-auth__legal-link {
    color: #1379F0 !important;
    text-decoration-line: underline;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
}

.app-appearance-kbzch .kbzch-auth__subtitle--register .kbzch-auth__legal-link:hover {
    color: #0d4b94 !important;
}

.app-appearance-kbzch .kbzch-auth__subtitle--mfa {
    margin-bottom: 37px;
    color: #4B5675;
}

.app-appearance-kbzch .kbzch-auth__subtitle-email {
    margin-top: 4px;
    color: #181C32;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.app-appearance-kbzch .kbzch-auth__mfa-hint {
    margin-bottom: 10px;
    color: #68728D;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.app-appearance-kbzch .kbzch-auth__mfa-actions {
    flex-direction: row;
    justify-content: center;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth {
    background: #0f172a;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__title {
    color: #dbeafe !important;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__guest-error {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.35);
    color: #f8d7da;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__subtitle,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__link-row,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__forgot-row .kbzch-auth__legal-link,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__footer-bottom,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__terms,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__terms .form-check-label,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__new-password-password-hint,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__subtitle--mfa,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__mfa-hint,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__language-label,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__language-name,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__language-icon {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__subtitle-email {
    color: #f8fafc;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__form .form-control,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__login-input input,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__password-input input,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__reset-password-email-input input,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__new-password-password-input input,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__new-password-repeat-password-input input,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__mfa-digit {
    background-color: #111827;
    border-color: #334155;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__form .form-control:focus,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__mfa-digit:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.15);
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__login-input input::placeholder,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__password-input input::placeholder,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__reset-password-email-input input::placeholder,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__new-password-password-input input::placeholder,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__new-password-repeat-password-input input::placeholder {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__btn-secondary,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__reset-password-btn-secondary {
    background-color: #1e293b;
    border-color: #334155;
    color: #bfdbfe;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__btn-secondary:hover,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__reset-password-btn-secondary:hover {
    background-color: #334155;
    border-color: #475569;
    color: #dbeafe;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__footer-bottom {
    border-top-color: #334155;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__legal-link,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__link-row a,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__terms .kbzch-auth__legal-link,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__subtitle--register .kbzch-auth__legal-link {
    color: #60a5fa !important;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__legal-link:hover,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__link-row a:hover,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__forgot-row .kbzch-auth__legal-link:hover,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__terms .kbzch-auth__legal-link:hover,
[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__subtitle--register .kbzch-auth__legal-link:hover {
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .app-appearance-kbzch .kbzch-auth__subtitle--register {
    color: #e2e8f0 !important;
}