/* Import Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Keyframes untuk animasi fade-in dan slide-up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style untuk Halaman Login Baru */
.login-body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23dce5e3' fill-opacity='0.4' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.99-7.5L26 15v18.5l-13 7.5L0 33.5V15z'/%3E%3C/g%E3C/g%E3E%3C/svg%3E");
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* SISI KIRI (BRANDING) */
.login-branding-side {
    flex: 0 0 55%;
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* SOLUSI FINAL: Bayangan halus untuk menghilangkan garis keras */
    box-shadow: 6px 0px 20px -5px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
#loginCarousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.carousel-inner, .carousel-item { height: 100%; }
.carousel-item img { height: 100%; object-fit: cover; }
.branding-content {
    position: relative;
    z-index: 3;
    padding: 60px;
    background-color: rgba(0, 77, 64, 0.85); 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.branding-content .logo { width: 100px; height: auto; margin-bottom: 20px; background-color: rgba(255,255,255,0.1); padding: 10px; border-radius: 50%; }
.branding-content h1 { font-weight: 700; font-size: 2rem; margin-bottom: 10px; }
.branding-content p { font-size: 1.1rem; opacity: 0.9; }

/* SISI KANAN (FORM) */
.login-form-side {
    flex:  0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 80px;
    animation: fadeInUp 0.8s ease-in-out;
    position: relative;
    background: #ffffff;
    z-index: 1;
}
.login-form-side .form-title {
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}
.login-form-side .form-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: #F59E0B;
    border-radius: 2px;
}
.login-form-side .form-subtitle { color: #6c757d; margin-bottom: 30px; }

/* Grup input dengan ikon */
.input-group-icon { position: relative; }
.input-group-icon .bi { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #9ca3af; font-size: 1.1rem; }
.input-group-icon .form-control { padding-left: 55px !important; }
.login-form-side .form-control { padding: 12px 15px; border-radius: 8px; border: 1px solid #dee2e6; background-color: #fdfdfd; transition: all 0.2s ease-in-out; }
.login-form-side .form-control:focus { 
    border-color: #F59E0B;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}

/* Tombol */
.login-form-side .btn-login {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    background-image: linear-gradient(45deg, #00897b, #00695c);
    border: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,105,92,.2);
}
.login-form-side .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,105,92,.4);
}
.admin-login-link { font-size: .9em; color: #6c757d; }
.admin-login-link a { color: #00695c; text-decoration: none; font-weight: 500; }
.admin-login-link a:hover { text-decoration: underline; }

/* TAMPILAN MOBILE */
@media (max-width: 992px) {
    .login-container { flex-direction: column; }
    .login-branding-side { 
        flex: none;
        width: 100%; 
        height: 35vh; 
        min-height: 280px; 
        border-radius: 0 0 30px 30px;
        box-shadow: none;
    }
    .branding-content { padding: 20px; border-radius: 0 0 30px 30px; }
    .branding-content .logo { width: 80px; }
    .branding-content h1 { font-size: 1.5rem; }
    .branding-content p { font-size: 1rem; }
    .login-form-side { 
        flex: none;
        width: 100%; 
        justify-content: flex-start; 
        margin-top: -50px; 
        z-index: 10;
        animation: none;
        background: none; 
        padding: 40px 25px;
    }
    .login-form-side > div { 
        width: 100%;
        background: #ffffff; 
        padding: 30px; 
        border-radius: 20px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    }
}

/* =================================
   STYLE UNTUK FOOTER TETAP
   ================================= */
.fixed-footer {
    position: fixed;      /* Membuat elemen tetap pada posisinya di layar */
    left: 0;
    bottom: 0;            /* Menempel di bagian bawah */
    width: 100%;          /* Lebar penuh */
    background-color: #004d40; /* Warna hijau tua yang serasi dengan tema */
    padding: 12px 0;      /* Memberi sedikit ruang di dalam footer */
    font-size: 0.9rem;    /* Ukuran font sedikit lebih kecil */
    z-index: 1000;        /* Memastikan footer selalu tampil di atas elemen lain */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2); /* Bayangan halus di atas footer */
}

/* Penyesuaian untuk mobile agar tidak terlalu mengganggu */
@media (max-width: 768px) {
    .fixed-footer {
        padding: 8px 0;
        font-size: 0.8rem;
        background-color: #004d40;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2)
    }
}