body {
    font-family: 'Poppins', sans-serif;
    background-color: #447897; /* Latar belakang gelap */
    color: #2d818e; /* Teks terang */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Efek grid latar belakang */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(-45deg, #1e1e1e 25%, transparent 25%) 0 0,
                linear-gradient(45deg, #1e1e1e 25%, transparent 25%) 0 0,
                linear-gradient(-45deg, transparent 75%, #1e1e1e 75%) 0 0,
                linear-gradient(45deg, transparent 75%, #1e1e1e 75%) 0 0; */
    background-size: 20px 20px;
    opacity: 0.3;
    animation: pan-grid 20s linear infinite;
}

@keyframes pan-grid {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.container {
    background-color: #f0f0f0;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4); /* Neon glow */
    text-align: center;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 191, 255, 0.2);
    animation: fade-in 1s ease-out;
    max-width: 275px; /* Tambahkan atau ubah nilai ini */
    width: 90%; /* Pastikan tetap responsif */
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2 {
    color: #324144; /* Warna neon */
    text-shadow: 0 0 8px #00bfff;
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 2em;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #6f8d9f;
    border: 1px solid #00bfff;
    border-radius: 6px;
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 10px #00bfff;
}

form button {
    background-color: #49b2bd;
    color: #1a1a1a;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

form button:hover {
    background-color: #0099cc;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

.error-message {
    color: #ff4d4d;
    margin-bottom: 1em;
}

a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0099cc;
}

/* Styling for the password input with the eye icon */
.password-container {
    position: relative;
    margin-bottom: 15px; /* Sesuaikan jarak antar elemen */
}

.password-container input[type="password"],
.password-container input[type="text"] {
    width: 100%;
    padding-right: 40px; /* Tambahkan ruang untuk ikon */
}

#togglePassword {
    position: absolute;
    right: 15px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #447897; /* Sesuaikan warna ikon agar terlihat di latar belakang input */
    z-index: 10;
}