/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Atur body */
body {
    background: #d7e1f3; /* Warna lembut, tidak terlalu mencolok */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Pesan login (gagal, logout, belum login) */
.pesan {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffe0e0;
    color: #a10000;
    border: 1px solid #ffaaaa;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: fadeSlideDown 0.4s ease;
    z-index: 1000;
}

/* Pesan sukses (misalnya setelah registrasi berhasil) */
.pesan.sukses {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Animasi muncul halus */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Form login */
form {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    animation: fadeIn 0.5s ease;
}

/* Animasi fade in untuk form */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Container logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Logo image */
.logo-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Judul login */
h2 {
    color: #111827;
    text-align: center;
    margin-bottom: 28px;
    font-size: 24px;
    font-weight: 700;
}

/* Tabel form */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

tr td {
    vertical-align: middle;
}

/* Label */
td:first-child {
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 5px;
}

/* Input teks, email, dan password */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Container button */
.button-container {
    margin-top: 25px;
}

/* Tombol login */
input[type="submit"] {
    width: 100%;
    background: #4f46e5;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

input[type="submit"]:hover {
    background: #4338ca;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* Link register */
.register-link {
    text-align: center;
    margin-top: 20px;
    color: #374151;
    font-size: 14px;
}

.register-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    form {
        padding: 30px 25px;
    }

    h2 {
        font-size: 22px;
    }

    .logo-img {
        width: 90px;
        height: 90px;
    }
}
