/* Overlay fullscreen */
#loginModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Konten tengah */
#loginContent {
  background: linear-gradient(145deg, #F3E5AB 0%, #ffffff 100%);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(243, 229, 171, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 350px;
  max-width: 90%;
}

/* Tombol close */
#closeLogin {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

#closeLogin:hover {
  color: #333;
}

/* Biarkan tombol Google bawaan tetap tampil normal */
#loginOverlay {
  width: 100%;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔵 Tombol Login di Atas Tengah */
#topLoginBtn {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: linear-gradient(145deg, #F3E5AB, #ffffff);
  border: 2px solid #c8b36a;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: 0.2s ease;
}

#topLoginBtn:hover {
  background: linear-gradient(145deg, #f7eec4, #ffffff);
  transform: translateX(-50%) scale(1.05);
}

#loginOverlay .g_id_signin {
  display: block;
}

/* Loading spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form styling */
#profileForm input:focus,
#profileForm select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#profileForm button:hover:not(:disabled) {
  background: linear-gradient(145deg, #45a049, #3d8b40);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

#profileForm button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}