body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.container {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 300px;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
}
input, button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
button {
  background-color: #00b894;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  background-color: #019875;
}
.error {
  color: red;
  font-size: 14px;
  text-align: center;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-box {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 320px;
  text-align: center;
  animation: popIn 0.3s ease-out;
  position: relative;
}

/* 🔴 Red error title */
.popup-box h2 {
  margin: 0 0 10px;
  color: #cc0000;
}

/* 📃 Message text */
.popup-box p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #333;
}

/* ✅ OK button */
.popup-box button {
  padding: 8px 20px;
  background-color: #cc0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.popup-box button:hover {
  background-color: #a30000;
}

/* ❌ Optional X (hidden if you don’t want it) */
.close-btn {
  display: none; /* hide if not using */
}

/* 🎯 Error shake animation */
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-8px); }
  40%  { transform: translateX(8px); }
  60%  { transform: translateX(-6px); }
  80%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* ✨ Pop-in animation */
@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}