/* ==== Modal Overlay ==== */
/* ==== Modal Overlay ==== */
.modal {
  display: none;               /* hidden by default */
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;     /* used when .is-open is present */
  align-items: center;         /* used when .is-open is present */
  overflow: auto;              /* keep if you want scroll for tall content */
}

/* When open, show as flex so it centers */
.modal.is-open {
  display: flex;
}

/* ==== Modal Content (The Login Box) ==== */
.modal-content {
  background-color: #fff;
  margin: 0;
  padding: 16px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}


.modal-input-container {
  /* Targets the renamed container for form inputs (username, password, etc.) */
  padding: 0; /* Ensures inputs align with the modal's 16px padding */
}

/* ==== Close (X) Button ==== */
.close {
  color: #000;
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

/* ==== Labels, Inputs, Login Button (Unchanged for this issue) ==== */
.modal-content label {
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
  font-size: 1.1rem;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-content button[type="submit"] {
  width: 100%;
  background-color: #31ACFF;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 14px 0;
  font-size: 1.15rem;
  font-weight: normal;
  cursor: pointer;
  text-align: center;
  margin-bottom: 16px;
}

.modal-content button[type="submit"]:hover {
  background-color: #3145FF;
}

/* ==== Checkbox and label (Unchanged for this issue) ==== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* ==== Bottom row: Cancel Button Area ==== */
.modal-container.bottom-row {
  width: 100%; /* Spans the full width of the padded modal */
  background-color: #f1f1f1;
  display: flex;
  justify-content: center; /* Centers the cancel button horizontally */
  align-items: center;
  padding: 8px 0; /* Add vertical padding */
  border-radius: 3px;
  box-sizing: border-box;
}

/* Cancel button specifics (Unchanged) */
.cancelbtn {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: auto;
  text-align: center;
  margin: 0;
}

/* ==== Auth Actions (Forgot Password/Create Account) ==== */
.auth-actions {
  display: flex !important;
  justify-content: space-evenly !important; 
  align-items: center !important;   
  width: 100%; /* Spans the full width of the padded modal */
  margin-top: 0.5em; 
  margin-left: 0; 
  margin-right: 0; 
  padding: 0; 
  background: none;
  font-size: 0.8rem;
}

.auth-actions a {
  color: #6c2eb1 !important; 
  text-decoration: underline;
  font-size: 0.8rem;
  text-align: center; 
}

.auth-actions span {
  font-size: 0.8rem;
  text-align: center;
}
