/* 
   =========================================================
   CSS TEMA ELEGAN - LOGIN PAGE STARLA
   =========================================================
*/

/* Reset background body */
body.login-body {
    background-color: #000000; /* Fallback color */
    height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    overflow: hidden;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Video Background Styling */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    object-fit: cover;
    object-position: center; /* Memastikan yang ter-crop selalu dari sisi luar, fokus di tengah */
}

/* Overlay untuk warna */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Gradien overlay gelap transparan untuk memperkuat efek elegan */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

/* Sembunyikan blob bawaan karena mengganggu video */
body.login-body .blob {
    display: none !important;
}

/* Hilangkan box-shadow/gradient pembungkus agar lebih clean */
.login-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
    animation: floatForm 6s ease-in-out infinite !important;
}

/* Efek Dark Glassmorphism Premium untuk Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.05) !important; /* Sangat transparan menyatu dengan background */
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    
    /* FORM LEBIH LUAS & RESPONSIF */
    width: 90% !important; 
    max-width: 420px !important;
    padding: 50px 40px !important;
    
    border-radius: 24px !important;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

/* Penyesuaian Logo dan Judul Aplikasi */
.login-card .brand-glow {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.login-card .brand-glow img {
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3)) !important;
    width: 60px !important;
    height: 60px !important;
}

.login-card .app-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important; 
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-size: 24px;
}

.login-card .app-desc {
    color: rgba(255, 255, 255, 0.7) !important; 
    margin-bottom: 35px;
    font-weight: 400;
    font-size: 14px;
}

/* Styling Input Field (Glass effect) */
.login-card .group-input {
    position: relative;
    margin-bottom: 20px;
}

.login-card .group-input input.inp-glass {
    background: rgba(0, 0, 0, 0.2) !important; /* Gelap transparan */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 500;
    border-radius: 16px;
    padding: 15px 15px 15px 50px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 15px;
}

.login-card .group-input input.inp-glass::placeholder {
    color: rgba(255, 255, 255, 0.4) !important; 
    font-weight: 400;
}

.login-card .group-input input.inp-glass:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

/* Ikon Input */
.login-card .group-input .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.login-card .group-input input.inp-glass:focus ~ .input-icon,
.login-card .group-input input.inp-glass:focus + .input-icon {
    color: #ffffff !important;
}

.login-card .group-input .toggle-eye {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.login-card .group-input .toggle-eye:hover {
    color: #ffffff !important;
}

/* Tombol Login */
.login-card .btn-neon {
    background: rgba(255, 255, 255, 0.1) !important; 
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.login-card .btn-neon:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Footer Login (Copyright) */
.login-card .footer-login {
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 30px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Recaptcha Wrapper */
.g-recaptcha {
    transform: scale(0.95);
    transform-origin: center center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    opacity: 0.9; 
    transition: opacity 0.3s;
}
.g-recaptcha:hover {
    opacity: 1;
}
.d-flex.justify-content-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* =========================================================
   SWEETALERT ELEGAN (ALERTS)
   ========================================================= */
.swal-elegant {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    color: #fff !important;
}

.swal-elegant .swal2-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.swal-elegant .swal2-html-container,
.swal-elegant .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.swal-elegant .swal2-confirm {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
}

.swal-elegant .swal2-confirm:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Animasi Fade Out Halaman Utama saat berhasil / loading */
.page-fade-out {
    animation: fadeOutTop 0.8s forwards;
    pointer-events: none;
}
@keyframes fadeOutTop {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.95); }
}

/* =========================================================
   ANIMASI ELEGAN
   ========================================================= */

/* Animasi mengambang / melayang perlahan */
@keyframes floatForm {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* =========================================================
   RESPONSIF MOBILE (HP)
   ========================================================= */
@media (max-width: 768px) {
    /* Pembungkus utama form */
    .login-wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* Login Card agar pas dan center */
    .login-card {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        padding: 40px 30px !important;
    }
    
    .login-card .app-title {
        font-size: 22px;
    }
    
    .login-card .app-desc {
        font-size: 13px;
        margin-bottom: 25px;
    }
}
