/* --- RESET & BODY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #0077b6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- CONTAINER & CARD --- */
.login-container {
    width: 100%;
    max-width: 420px;
}
.login-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* --- LOGO --- */
.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* --- HEADER --- */
.header h2 {
    color: #0077b6;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.header p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* --- FORM GROUP & INPUT --- */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}
.input-wrapper {
    position: relative; /* Penting untuk posisi ikon */
}

/* Ikon Kiri (Gembok/Email) */
.input-wrapper > i.fas:not(.password-toggle) {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none; /* Agar klik tembus ke input */
}

/* Style Input */
.form-group input {
    width: 100%;
    /* Padding KANAN ditambah jadi 2.8rem agar tidak tertutup ikon mata */
    padding: 0.9rem 2.8rem 0.9rem 2.8rem; 
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
.form-group input:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}
.form-group input::placeholder {
    color: #94a3b8;
}

/* --- IKON MATA (PASSWORD TOGGLE) --- */
.password-toggle {
    position: absolute;
    right: 1rem; /* Posisi di kanan */
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    font-size: 1rem;
}
.password-toggle:hover {
    color: #00b4d8; /* Warna berubah saat hover */
}

/* --- TOMBOL LOGIN --- */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

/* --- ALERT ERROR --- */
.alert {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.9rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- LINKS --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.back-link:hover {
    color: #0077b6;
    transform: translateX(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .login-card { padding: 2rem 1.5rem; }
    .header h2 { font-size: 1.5rem; }
    .logo { width: 70px; height: 70px; }
}