/* Mengatur tampilan body */
body {
    background: linear-gradient(135deg, #6e7fd1, #4e5d96, #3f8f5d);
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Animasi background dengan pergerakan gradien */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mengatur tampilan form */
form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 380px;
    transform: translateY(30px);
    opacity: 0;
    animation: formAnimation 0.8s ease-out forwards;
}

/* Animasi form masuk */
@keyframes formAnimation {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Mengatur tampilan tabel dalam form */
table {
    width: 100%;
}

/* Mengatur label teks */
td:first-child {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    font-weight: 600;
}

/* Mengatur tampilan input text dan password */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efek saat input fokus */
input[type="text"]:focus, input[type="password"]:focus {
    border-color: #7e57c2;
    box-shadow: 0 0 10px rgba(126, 87, 194, 0.7);
    transform: scale(1.02);
}

/* Mengatur tampilan tombol submit */
input[type="submit"] {
    background-color: #7e57c2;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* Efek hover pada tombol submit */
input[type="submit"]:hover {
    background-color: #5e35b1;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Efek saat tombol ditekan */
input[type="submit"]:active {
    transform: scale(0.98);
}

/* Mengatur margin kosong pada form */
form br {
    margin-bottom: 20px;
}

/* Membuat form lebih responsive di layar kecil */
@media (max-width: 400px) {
    form {
        width: 100%;
        padding: 25px;
    }

    /* Mengatur input text dan password lebih besar */
    input[type="text"], input[type="password"] {
        font-size: 18px;
        padding: 18px 20px;
    }

    /* Mengatur tombol submit lebih besar */
    input[type="submit"] {
        font-size: 20px;
    }
}
