body {
    font-family: 'Arial', sans-serif;
    background-color: #1a2333;
    color: #e0e6ed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Container utama untuk menampung judul, form, dan link */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px; /* Tambah lebar agar konten tidak terlalu sempit */
    width: 90%;
}

/* Gaya untuk Box Login/Register */
h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px; /* Jarak antara judul dan kotak form */
    font-size: 32px; /* Font besar untuk judul */
    letter-spacing: 1px;
}

form {
    background-color: #23344d;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5); /* Shadow lebih menonjol */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px; /* Jarak antara kotak form dan link di bawahnya */
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px; /* Jarak antar input */
    border: 1px solid #30445a;
    border-radius: 6px;
    background-color: #35455c;
    color: #e0e6ed;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

input::placeholder {
    color: #9ab4cc;
}

/* Gaya Tombol Login/Daftar */
button[type="submit"] {
    width: 100%;
    padding: 14px; /* Tombol dibuat lebih besar */
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background-color: #5b8e9b;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px; /* Font tombol dibuat lebih besar */
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #4a7582;
}

/* Gaya Tautan di Bawah Form */
p {
    text-align: center;
    margin: 0; /* Hapus margin default */
    font-size: 16px; /* Font tautan dibuat lebih besar */
}

p a {
    color: #5b8e9b;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: bold;
}

p a:hover {
    color: #ffffff;
}

/* --- Gaya Notifikasi Pop-up --- */
#error-overlay {
    position: fixed; /* Membuatnya tetap di tempat saat scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Latar belakang gelap */
    display: none; /* Default tersembunyi, PHP akan mengubahnya jika ada error */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Pastikan di atas semua elemen lain */
}

#error-box {
    background-color: #23344d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); /* Bayangan merah untuk error */
    text-align: center;
    max-width: 300px;
    color: #e0e6ed;
}

#error-box h2 {
    color: #ff6666; /* Warna merah muda untuk judul Error */
    margin-bottom: 10px;
}

#error-box button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #ff6666;
    font-size: 16px;
}