/* ================================================= */
/* 1. RESET & DASAR HALAMAN                          */
/* ================================================= */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Mencegah scrollbar muncul di halaman login */
    background: #8BD5D3; /* Warna dasar biru toska */
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center; /* Memposisikan konten di tengah secara horizontal */
    align-items: center;     /* Memposisikan konten di tengah secara vertikal */
}

/* ================================================= */
/* 2. PEMBUNGKUS UTAMA (WRAPPER)                     */
/* ================================================= */
.main-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column; /* Menyusun elemen (logo, judul, form) ke bawah */
    align-items: center;
    padding: 20px;
}

/* --- Bagian Header (Judul & Deskripsi) --- */
.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.header-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #113F67;
    margin-top: 10px;
}

.header-section p {
    color: #555;
    font-size: 14px;
}

/* ================================================= */
/* 3. KOTAK FORM (CONTAINER)                         */
/* ================================================= */
.container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: white; 
    border-radius: 16px; /* Sudut kotak yang membulat halus */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Efek bayangan lembut */
    box-sizing: border-box;
}

/* --- Elemen Form & Input --- */
label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #4a47ff;
}

.input-wrapper {
    margin-bottom: 15px;
    width: 100%;
}

.input-box {
    width: 100%;
    height: 44px;
    padding: 12px;
    background: #f0f0f0;
    border: 2px solid transparent; /* Border transparan agar tidak geser saat fokus */
    border-radius: 8px;
    box-sizing: border-box;
    transition: 0.3s; /* Efek transisi halus saat diklik */
}

.input-box:focus {
    outline: none;
    border-color: #4a47ff;
    background: #fff;
}

/* --- Tombol Login --- */
.btn-login {
    width: 100%;
    background: #4a47ff;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

/* ================================================= */
/* 4. SISTEM NOTIFIKASI (TOAST)                      */
/* ================================================= */

/* Wadah Utama Notifikasi */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* Klik bisa tembus ke elemen di bawahnya */
}

/* Animasi & Style Kartu Notifikasi */
.notification {
    pointer-events: auto; /* Mengaktifkan klik kembali pada kartu */
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    
    /* State Awal (Tersembunyi) */
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Munculkan Notifikasi (Class ini ditambah via JS) */
.notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Bagian Ikon & Warna */
.notification-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Warna Sukses (Hijau) */
.notification.success .notification-icon {
    background: #e6f7ed;
    color: #2ecc71;
}

/* Warna Gagal (Merah) */
.notification.error .notification-icon {
    background: #fdf2f2;
    color: #e74c3c;
}

/* Bagian Teks Notifikasi */
.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.notification-message {
    font-size: 12px;
    color: #7f8c8d;
    display: block;
}

/* ================================================= */
/* 5. RESPONSIVE DESIGN                              */
/* ================================================= */
@media (max-width: 400px) {
    .main-wrapper {
        padding: 10px;
    }
    .container {
        padding: 20px;
    }
}