/* ==========================================================================
   WRAPPER UTAMA
   ========================================================================== */
.login-wrapper {
    position: fixed; /* Mengunci posisi agar tidak bisa di-scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    overflow: hidden; /* Menghilangkan scroll */
}

/* OVERLAY & BACKGROUND (Menggunakan gaya lama Anda) */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient transparan agar gambar background di body/wrapper tetap terlihat */
    background: linear-gradient(135deg, rgba(5, 20, 45, 0.85), rgba(13, 110, 253, 0.4));
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* ==========================================================================
   KARTU LOGIN (GLASSMORPHISM)
   ========================================================================== */
.glass-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    background: #134784; 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 100%;
    max-width: 750px; 
    overflow: hidden;
    /* Tinggi fleksibel agar tidak memenuhi layar */
}

/* ==========================================================================
   BAGIAN KIRI (LOGO)
   ========================================================================== */
.login-left {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-left img {
    width: 100px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
    transition: transform 0.5s;
}

.login-left h3 {
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.login-left p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ==========================================================================
   BAGIAN KANAN (FORM)
   ========================================================================== */
.login-right {
    flex: 1.2;
    padding: 25px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* INPUT FIELD */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 12px 15px 12px 45px;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0dcaf0;
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.3);
    outline: none;
}

/* ICON */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
}

/* TOMBOL */
.btn-glow {
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border: none;
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    width: 100%;
    margin-top: 5px;
    transition: all 0.3s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.5);
}

/* TOMBOL CLOSE */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    z-index: 10;
    transition: 0.3s;
}

.close-button:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

/* ANIMASI */
.fade-in-up { animation: fadeInUp 0.8s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrapper {
        overflow-y: auto; /* Izinkan scroll hanya di HP jika layar sangat kecil */
        height: auto;
        min-height: 100vh;
    }
    .glass-card {
        flex-direction: column;
        max-width: 380px;
        margin: 20px 0;
    }
    .login-left {
        padding: 25px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .login-right { padding: 30px; }
}