﻿body:has(.ki-login-page) header {
    display: none;
}

body:has(.ki-login-page) .container-fluid.justify-content-center.d-flex {
    display: block !important;
    padding: 0;
}

body:has(.ki-login-page) main {
    width: 100%;
    padding-bottom: 0 !important;
}

.ki-login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* width: 100vw; */
    /* margin-left: calc(50% - 50vw); */
    /* background: #f6f8fb; */
    font-family: Roboto, Arial, sans-serif;
    min-height: calc(100vh - 45px);
}


.ki-language {
    white-space: nowrap;
    color: #0b2d5c;
    display: flex;
    align-items: center;
    gap: 5px;
}


.ki-login-card {
    width: 1080px;
    height: 520px;
    display: grid;
    grid-template-columns: 660px 420px;
    background: #fff;
    border: 1px solid #2f80ed;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.ki-info-panel {
    position: relative;
    background: #173f69;
    overflow: hidden;
}

    .ki-info-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
        filter: brightness(.89) contrast(1.03);
    }

    .ki-info-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(15,43,82,.62) 0%, rgba(15,43,82,.42) 18%, rgba(15,43,82,.18) 42%, rgba(15,43,82,0) 65% );
        pointer-events: none;
    }

.ki-info-text {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 22px;
    z-index: 5;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

    .ki-info-text h3 {
        margin: 0 0 12px;
        font-size: 18px;
        line-height: 24px;
        font-weight: 700;
        color: rgba(255,255,255,.96);
        text-shadow: 0 1px 2px rgba(0,0,0,.35);
    }

.ki-header {
    display: block;
    background: transparent;
    border-bottom: 0;
}

.ki-header-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.ki-header-logo {
    width: 240px;
    height: auto;
    display: block;
    image-rendering: auto;
}

.ki-info-text p {
    margin: 0;
    max-width: 560px;
    font-size: 13px;
    line-height: 22px;
    font-weight: 400;
    color: rgba(255,255,255,.88);
    text-shadow: 0 1px 1px rgba(0,0,0,.25);
}

.ki-form-panel {
    background: #fff;
    border-left: 1px solid #d7e0ef;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.ki-form-header {
    padding: 17px 24px 13px;
    background: #f7f7f8;
    border-bottom: 1px solid #d7e0ef;
}

    .ki-form-header h2 {
        margin: 0 0 6px;
        color: #0b2d5c;
        font-size: 20px;
        font-weight: 800;
    }

    .ki-form-header p {
        margin: 0;
        color: #596579;
        font-size: 13px;
    }

.ki-login-form {
    padding: 18px 24px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

.ki-form-group {
    margin-bottom: 13px;
}

    .ki-form-group label {
        display: block;
        font-size: 14px;
        font-weight: 800;
        color: #445066;
        margin-bottom: 7px;
    }

.ki-input-container {
    position: relative;
    width: 100%;
}

.ki-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7890;
    font-size: 14px;
    z-index: 1;
}

.ki-form-input {
    width: 100%;
    height: 46px;
    border: 1px solid #c8d4e4;
    border-radius: 5px;
    padding: 0 14px 0 42px;
    background: #fff;
    color: #0d2340;
    font-size: 14px;
    outline: none;
}

    .ki-form-input:focus {
        border-color: #2f80ed;
        box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.12);
    }

.ki-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 32px;
    font-size: 13px;
}

.ki-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #596579;
    margin: 0;
    font-weight: 400;
}

    .ki-remember input {
        width: 16px;
        height: 16px;
        accent-color: #3478d4;
    }

.ki-forgot-link {
    color: #1464d2;
    font-weight: 800;
    text-decoration: none;
}

    .ki-forgot-link:hover {
        color: #1464d2;
        text-decoration: underline;
    }

.ki-login-button {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 5px;
    background: #3478d4;
    color: #fff;
    font-weight: 800;
    font-size: 15.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 34px;
}

    .ki-login-button i {
        font-size: 18px;
        font-weight: 800;
    }

    .ki-login-button:hover {
        background: #2467c0;
    }

.ki-demo-info {
    margin-top: 12px;
    padding: 16px 14px;
    border: 1px solid #d6e1ef;
    border-radius: 5px;
    background: #f3f8fd;
    color: #596579;
    font-size: 13px;
}

.error-message {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 104px;
    color: #d93025;
    background: #fff1f1;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 0;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1100px) {
    .ki-login-card {
        width: calc(100% - 32px);
        grid-template-columns: 1.62fr 1fr;
    }
}

@media (max-width: 850px) {
    .ki-login-card {
        height: auto;
        grid-template-columns: 1fr;
        margin: 32px 16px;
    }

    .ki-info-panel {
        height: 300px;
    }
}



.login-spinner {
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    border: 3px solid #c9d8e8;
    border-top-color: #2f6faf;
    border-radius: 50%;
    animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #27496d;
}



.login-form.is-loading .login-content {
    opacity: 0.45;
    pointer-events: none;
}
