/* ===== POPUP STYLES ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-overlay.active {
  display: flex;
}
.popup-content {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: popupIn 0.3s ease;
  position: relative;
}
.popup-content h2 {
  margin-top: 0;
  color: var(--accent);
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}
.popup-close:hover {
  color: var(--accent);
}
.popup-content label {
  font-weight: 500;
  margin-top: 12px;
  display: block;
  color: var(--text);
}
.popup-content input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}
@keyframes popupIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}


span.error-view {
  color: red;
}


* Basic styling for all input text fields */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%; /* Make the input take full width of its parent */
  padding: 12px 20px; /* Add padding inside the input box */
  margin: 8px 0; /* Add margin above and below the input */
  display: inline-block; /* Allow other elements to be on the same line */
  border: 1px solid #ccc; /* Set a border */
  border-radius: 4px; /* Round the corners */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  font-size: 16px; /* Set font size */
}

/* Styling for when the input is focused */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #4CAF50; /* Change border color on focus */
  outline: none; /* Remove the default outline */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Add a subtle shadow on focus */
}

/* Styling for placeholder text */
input::placeholder {
  color: #999;
  font-style: italic;
}

/* Styling for specific input types, e.g., submit button */
input[type="submit"] {
  background-color: #4CAF50; /* Green background */
  color: white; /* White text */
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer; /* Change cursor to pointer on hover */
  font-size: 16px;
}

input[type="submit"]:hover {
  background-color: #45a049; /* Darker green on hover */
}