body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
}

.login-left {
    background-color: #C00000;
    color: #fff;
    position: relative;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.login-left>div {
    position: relative;
    z-index: 2;
}

.login-right {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    padding-top: 40px !important;
    margin-bottom: 10px !important;
    padding: 60px 80px;
    position: relative;
    color: black;
    overflow: hidden;
}

.login-right::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -100px;
    width: 250px;
    height: 250px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.02);
    transform: rotate(55deg);
    z-index: 1;
}

.login-right::after {
    content: "";
    position: absolute;
    bottom: -200px;
    right: -490px;
    width: 600px;
    height: 500px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(60deg);
    z-index: 1;
}

.login-right form,
.train-footer {
    position: relative;
    z-index: 2;
}

.login-right .logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.login-right .form-control {
    border-radius: 8px;
    height: 48px;
}

.button-login {
    background-color: #C00000;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    height: 48px;
    width: 100%;
    border: none;
}

.login-right button:hover {
    background-color: #a00000;
}

.train-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.train-footer img {
    width: 100%;
    object-fit: cover;
}

.padding-login {
    padding-left: 100px;
    padding-right: 100px;
    z-index: 9999;
    position: relative;
}

/* TRAIN GRID STYLES */
.train-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.train-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.train-item {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.train-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.train-row:first-child .train-item {
    max-width: 90%;
}

.train-row:last-child .train-item {
    max-width: 45%;
}

.login-left {
    background-color: #C00000;
    color: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    top: 200px;
    left: 650px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.07);
    clip-path: polygon(50% 0%,
            100% 38%,
            82% 100%,
            18% 100%,
            0% 38%);
    /* bentuk segi lima */
    transform: rotate(75deg);
    z-index: 1;
}



/* Kiri */
.login-left {
    background-color: #C00000;
    color: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* Overlay siluet miring */

/* Background gambar kereta tipis */
.login-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("{{ asset('assets/img/kci/train-bg.svg') }}");
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    opacity: 0.15;
    z-index: 1;
}

/* Konten teks kiri */
.login-left-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.login-left-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.login-left-content p {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ikon kereta di tengah */
.train-icon {
    width: 60px;
    height: auto;
}

/* Grid kereta */
.train-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

/* Zoom kecil untuk kereta bawah */
.train-item img[alt="Train Down"] {
    transform: scale(2.8);
    position: absolute;
    bottom: 0;
    left: 100%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 5px;
}

/* background train tipis */
.login-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("{{ asset('assets/img/kci/train-bg.svg') }}");
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    opacity: 0.15;
    z-index: 1;
}

/* gambar kereta di atas layer */
.train-grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.train-row {
    display: flex;
    gap: 20px;
}

.train-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.train-item img[alt="Train Up"] {
    position: absolute;
    top: 0;
    left: 0%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    width: 90%;
    height: auto;
    display: block;
    margin-top: 5px;

}

.train-item img[alt="Train Left"] {
    position: absolute;
    bottom: 0;
    left: 0%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    height: auto;
    width: 30%;
    display: block;
    margin-top: 5px;

}

.image-logo {
    width: 350px !important;
    object-fit: contain;
}


.nav-tabs .nav-link:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}


@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px;
    }

    .padding-login {
        padding-left: 0;
        padding-right: 0;
        z-index: 9999;
        position: relative;
    }

}
