/* popups.css v1.0.0 — Styles for Login, Register, and Exit Confirmation Popups */

/* Base popup container */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 99999;
}

/* Popup headings */
.popup h2 {
  background: var(--primary-color);
  color: #fff;
  padding: 10px;
  margin: -24px -24px 20px;
  font-size: 16px;
  text-align: center;
  border-radius: 6px 6px 0 0;
}

/* Form inputs inside popups */
.popup input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Action button container */
.popup .popup-actions {
  display: flex;
  gap: 10px;
}

/* Default popup button styles */
.popup .popup-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
}

/* Login popup specific buttons */
.login-popup .popup-actions button:first-child {
  background: var(--primary-color);
}
.login-popup .popup-actions button:last-child {
  background: #6c757d;
}

/* Register popup specific buttons */
.register-popup .popup-actions button:first-child {
  background: var(--primary-color);
}
.register-popup .popup-actions button:last-child {
  background: #6c757d;
}

/* Exit confirmation popup overrides */
.exit-popup {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100000;
  text-align: center;
}
.exit-popup p {
  margin-bottom: 16px;
  font-weight: bold;
}
.exit-popup .popup-actions button:first-child {
  background: #c62828;
}
.exit-popup .popup-actions button:last-child {
  background: #4caf50;
}
