/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Atur body */
body {
    background: linear-gradient(135deg, #c9d6ff, #e2e2e2);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Pesan login (gagal, logout, belum login) */
.pesan {
    background-color: #ffe0e0;
    color: #a10000;
    border: 1px solid #ffaaaa;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

/* Judul login */
h2 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

/* Form login */
form {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    width: 320px;
}

/* Tabel form */
table {
    width: 100%;
}

/* Label kolom */
td:first-child {
    width: 35%;
    padding-right: 10px;
    color: #444;
    font-weight: bold;
}

/* Input teks */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #5b8def;
}

/* Tombol login */
input[type="submit"] {
    background-color: #4a6cf7;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #3653c9;
}

/* Untuk layar kecil */
@media (max-width: 400px) {
    form {
        width: 90%;
    }
}
