body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg,#1e1e2f,#121224);
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
}

/* Tombol Keluar di luar kotak login, pojok kanan atas */
.logout-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2c2c44;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  transition: 0.2s;
  z-index: 1000;
}
.logout-btn:hover {
  background: #4fd1c5;
  color: #1e1e2f;
}

.login-box {
  background: rgba(42,42,61,0.95);
  padding: 40px 35px;
  width: 360px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-title { font-size: 28px; color: #4fd1c5; font-weight: bold; }

.login-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #1e1e2f;
  color: #e0e0e0;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: #4fd1c5;
  box-shadow: 0 0 8px rgba(79,209,197,0.5);
}

.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(45deg,#4fd1c5,#38b2ac);
  color: #1e1e2f;
  cursor: pointer;
}

.login-btn:hover {
  background: linear-gradient(45deg,#38b2ac,#2c7a7b);
  transform: scale(1.03);
}

#msg {
  margin-top: 6px;
  color: #f88;
  font-weight: 500;
  text-align: center;
}

#loadingOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.loader-box {
  background: #2a2a3d;
  padding: 25px 35px;
  border-radius: 10px;
  text-align: center;
  color: #4fd1c5;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(79,209,197,0.3);
}

.loader-icon {
  width: 40px;
  height: 40px;
  border: 4px solid #4fd1c5;
  border-top: 4px solid transparent;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }