/* =========================================
   RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Background lebih soft */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

/* Animasi Background (Tetap dipertahankan tapi lebih halus) */
.background-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: 0.4; filter: blur(50px); animation: float 20s infinite ease-in-out; }
.shape-1 { width: 300px; height: 300px; background: #a18cd1; top: -50px; left: -50px; }
.shape-2 { width: 250px; height: 250px; background: #fbc2eb; bottom: -50px; right: -50px; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 50px); } }

/* =========================================
   LOGIN CONTAINER (LAYOUT BARU)
   ========================================= */
.container {
    width: 100%;
    max-width: 400px; /* Lebih ramping */
    position: relative;
    z-index: 1;
}

/* Header di Luar Kotak (Logo & Judul) */
.brand-header {
    text-align: center;
    margin-bottom: 25px;
}
.brand-header h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.brand-header p {
    font-size: 14px;
    color: #7f8c8d;
}
.brand-icon {
    font-size: 40px;
    color: #4A90E2;
    margin-bottom: 10px;
}

/* Kotak Login Utama */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.form-group { margin-bottom: 20px; position: relative; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-wrapper { position: relative; }

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px 20px 15px 45px; /* Padding kiri untuk ikon */
    border: 2px solid #f1f2f6;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4A90E2;
    background: #fff;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

/* Ikon di dalam input (kiri) */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    font-size: 18px;
    transition: color 0.3s;
}
input:focus + .input-icon { color: #4A90E2; }

/* Ikon mata (kanan) */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    cursor: pointer;
    padding: 5px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4A90E2 0%, #007bff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(74, 144, 226, 0.4); }
.btn-login:active { transform: translateY(0); }

.btn-login:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================================
   MENU GRID (PENGGANTI FOOTER RIBET)
   ========================================= */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f2f6;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #636e72;
    transition: all 0.3s;
}
.menu-item:hover { color: #4A90E2; transform: translateY(-3px); }

.menu-icon-box {
    width: 45px;
    height: 45px;
    background: #f1f2f6;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 8px;
    transition: all 0.3s;
    color: #4A90E2;
}
.menu-item:hover .menu-icon-box { background: #eaf2ff; }

.menu-text { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }

/* =========================================
   NOTIFIKASI & ERROR
   ========================================= */
.error-message { display: block; color: #ff4757; font-size: 12px; margin-top: 5px; font-weight: 500; padding-left: 5px; }

.status-box {
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.status-error { background: #ffe0e0; color: #d63031; border: 1px solid #ff7675; }
.status-success { background: #def7ec; color: #27ae60; border: 1px solid #2ecc71; }
.status-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* =========================================
   TOMBOL BANTUAN MENGAMBANG
   ========================================= */
.fab-bantuan {
    position: fixed; bottom: 20px; right: 20px;
    background: #25D366; color: white;
    padding: 12px 20px; border-radius: 30px;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; font-weight: 700;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s; z-index: 999;
}
.fab-bantuan:hover { transform: scale(1.05); background: #20b056; }

/* =========================================
   MODAL POPUP
   ========================================= */
.pin-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.pin-modal-overlay.show { opacity: 1; visibility: visible; }
.pin-modal-box {
    background: white; width: 90%; max-width: 380px;
    padding: 30px; border-radius: 20px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.8); transition: transform 0.3s;
}
.pin-modal-overlay.show .pin-modal-box { transform: scale(1); }
.modal-btn {
    display: block; width: 100%; padding: 12px; margin-top: 10px;
    border-radius: 10px; text-decoration: none; font-weight: 700;
    border: none; cursor: pointer;
}
.btn-primary { background: #4A90E2; color: white; }
.btn-secondary { background: #f1f2f6; color: #636e72; }

        /* Style untuk Kotak Peringatan Jaringan */
        .network-warning-box {
            text-align: center;
            padding: 30px 20px;
        }
        .network-icon {
            font-size: 60px;
            color: #FF6B6B;
            margin-bottom: 20px;
            animation: pulse-red 2s infinite;
        }
        .network-title {
            font-size: 22px;
            color: #333;
            margin-bottom: 15px;
            font-weight: 700;
        }
        .network-desc {
            color: #555;
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        @keyframes pulse-red {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }
        
/* Style Tambahan untuk Footer Copyright */
        .app-footer {
            margin-top: 30px;
            text-align: center;
            font-size: 12px;
            color: #7B8794;
            border-top: 1px solid #f1f2f6;
            padding-top: 15px;
        }
        .app-footer a {
            color: #4A90E2;
            text-decoration: none;
            font-weight: 600;
        }
        .app-footer a:hover { text-decoration: underline; }
        

/* CSS UNTUK TOMBOL TRIAL (MODERN & SOFT) */
.btn-trial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background-color: #f8f9fa; /* Latar belakang abu-abu sangat terang/lembut */
    color: #495057; /* Warna teks abu-abu gelap agar tetap terbaca jelas */
    border: 2px solid #e9ecef; /* Garis tepi yang sangat halus */
    border-radius: 10px; /* Dibuat lebih melengkung agar senada dengan tombol biru */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.btn-trial:hover {
    background-color: #e2e6ea; /* Sedikit menggelap saat disentuh */
    border-color: #dae0e5;
    color: #212529;
    transform: translateY(-1px); /* Efek melayang tipis, tidak terlalu lebay */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Bayangan sangat halus */
}

.btn-trial:active {
    transform: translateY(1px); /* Efek tertekan ke dalam */
    box-shadow: none;
    background-color: #dae0e5;
}

.btn-trial:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Penyesuaian Ikon pada tombol */
.btn-trial i {
    margin-right: 8px;
    font-size: 1.2rem;
    color: #6c757d; /* Warna ikon sedikit lebih pudar dari teks agar elegan */
    transition: color 0.2s ease;
}

.btn-trial:hover i {
    color: #495057; /* Ikon ikut menebal warnanya saat di-hover */
}