/* Animasi Muncul dari Bawah */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center; /* Memastikan tengah vertikal */
    justify-content: center; /* Memastikan tengah horizontal */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 380px; /* Diperkecil dari 420px agar lebih ramping */
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.login-card {
    /* Dibuat lebih transparan (0.85) dengan efek blur kaca */
    background: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding: 35px 25px; /* Padding disesuaikan agar lebih padat */
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    width: 80px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.login-header h4 {
    font-weight: 800;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.input-group {
    background: rgba(255, 255, 255, 0.5); /* Input agak transparan */
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 4px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    margin-bottom: 18px;
}

.input-group:focus-within {
    border-color: #198754;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

.input-group i {
    color: #198754;
    margin-right: 12px;
    font-size: 1.1rem;
}

.input-group input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    outline: none;
    color: #111;
}

.btn-login {
    background: #198754;
    color: white;
    border: none;
    border-radius: 14px;
    width: 100%;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
    box-shadow: 0 8px 15px rgba(25, 135, 84, 0.3);
}

.btn-login:hover {
    background: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #333;
}

.login-footer a {
    color: #198754;
    text-decoration: none;
    font-weight: 700;
}

.alert {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border-left: 4px solid #c53030;
    background: rgba(255, 245, 245, 0.9);
    color: #c53030;
    display: flex;
    align-items: center;
    font-weight: 600;
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }
    .login-card {
        padding: 25px 20px;
    }
}