/* Default (Light Mode) */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-image: url('bg_index.jpg'); /* Ganti dengan path gambar kampus */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh; /* Pastikan tinggi halaman 100% */
  display: flex; /* Menggunakan flexbox untuk centering */
  justify-content: center; /* Center secara horizontal */
  align-items: center; /* Center secara vertikal */
}

.overlay {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container form login */
.container {
  text-align: center;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.8); /* Transparan agar gambar tetap terlihat */
}

h2 {
  color: #333;
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

label {
  display: block;
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .container {
  background-color: #333;
  border-color: #444;
}

body.dark-mode h2 {
  color: #e0e0e0;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="password"] {
  background-color: #444;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-mode input[type="submit"] {
  background-color: #3e8e41;
}

body.dark-mode input[type="submit"]:hover {
  background-color: #357a38;
}

body.dark-mode .logout-btn {
  background-color: #ff5c5c;
}

body.dark-mode .logout-btn:hover {
  background-color: #e04f4f;
}

/* Toggle button styling */
button#darkToggle {
  margin: 10px;
  padding: 10px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 8px;
}

button#darkToggle:hover {
  background-color: #ddd;
}

/* Logout button styling */
.logout-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f44336;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 10px;
}

.logout-btn:hover {
  background-color: #d32f2f;
}
