/* Import font yang lebih modern */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* --- BARU: Animasi Fade-in --- */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Akhir Animasi --- */

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-container p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

/* --- BARU: Wrapper untuk Ikon --- */
.input-wrapper {
    position: relative;
    width: 100%;
}

/* --- BARU: Style Ikon --- */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none; /* Agar bisa klik input di atas ikon */
}

/* --- MODIFIKASI: Input dengan padding untuk ikon --- */
.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px 15px 12px 40px; /* MODIFIKASI: Tambah padding kiri */
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}
/* --- Akhir Modifikasi Input --- */

/* --- BARU: Grup Opsi (Password & Lupa Password) --- */
.options-group {
    display: flex;
    justify-content: space-between; /* Pisahkan item ke kiri dan kanan */
    align-items: center;
    margin-top: -1rem; /* Tarik ke atas */
    margin-bottom: 1.5rem;
}

.password-toggle label {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    user-select: none; /* Agar teks tidak ter-highlight saat diklik */
}

/* --- BARU: Style Link Lupa Password --- */
.forgot-password {
    font-size: 0.85rem;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #0056b3;
    text-decoration: underline;
}
/* --- Akhir Style Baru --- */

.btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}