:root {
    --primary-color: #172b88;     /* hijau soft */
    --secondary-color: #93fdf4;   /* biru pastel */
    --accent-color: #5eead4;      /* mint soft */
    --danger-color: #fca5a5;      /* merah lembut */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
    width: 100%;
    max-width: 600px;
}

.login-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px 35px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.login-logo i {
    font-size: 2.5rem;
    color: white;
}

.login-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.form-control {
    background: transparent !important;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
    padding-right: 45px; /* supaya teks tidak nabrak ikon */
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;

    z-index: 5;           /* ✅ WAJIB */
    pointer-events: auto;/* ✅ WAJIB */
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(30, 58, 138, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: #64748b;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.demo-info {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    font-size: 0.85rem;
}

.demo-info h6 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .login-card {
        padding: 30px 25px;
    }

    .login-logo {
        width: 70px;
        height: 70px;
    }

    .login-logo i {
        font-size: 2rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 11px 15px 11px 45px;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 1.3rem;
    }
}

/* Animation for form elements */
.animate-form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}