/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Background dengan gambar full */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url("images/bg_18.png");
    /* Ganti sesuai file Anda */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

/* Overlay gelap agar teks jelas */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Wrapper untuk center */
.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container login */
.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

/* Logo di atas form (center) */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo {
    width: 90px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Animasi masuk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Judul */
.login-container h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 26px;
    font-weight: 600;
}

/* Input group */
.input-group {
    margin-bottom: 18px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #4e73df;
    outline: none;
    box-shadow: 0 0 6px rgba(78, 115, 223, 0.5);
}

/* Tombol */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #375ac4, #17a673);
}

/* Pesan error */
.error-message {
    background: #ffdddd;
    color: #d8000c;
    padding: 10px;
    border: 1px solid #d8000c;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

/* Responsif */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }

    .login-container h2 {
        font-size: 22px;
    }
    .logo {
            width: 70px;
    }
    
}