/* =========================================================
   signup.css – NursingUnity
   ========================================================= */

/* Page base */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: #000;
  color: #dfe3e6;
  margin: 0;
  padding: 0;
}

/* ---------- Auth card ---------- */
.auth-container {
  max-width: 420px;
  margin: 3.25rem auto;
  padding: 2rem;
  background-color: #121212;
  border-radius: 12px;
  border: 1px solid rgba(73,194,242,.35);
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}

.auth-container h2 {
  text-align: center;
  margin: 0 0 1.5rem 0;
  color: #49c2f2;
}

/* Inputs & selects */
.auth-container input,
.auth-container select {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid #49c2f2;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
}

.auth-container input::placeholder {
  color: #9ab7c6;
}

.auth-container input:focus,
.auth-container select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(73,194,242,.30);
}

/* Label above the select */
.select-label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #bce9fa;
}

/* Terms checkbox row */
.terms-checkbox {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.terms-checkbox input {
  margin-right: 6px;
  transform: translateY(1px);
}

.terms-checkbox a {
  color: #49c2f2;
  text-decoration: underline;
}

.terms-checkbox a:hover {
  color: #bce9fa;
}

/* Submit button */
.auth-container button {
  margin-top: 1.5rem;
  padding: 12px;
  width: 100%;
  background-color: #49c2f2;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color .25s ease, transform .06s ease;
}

.auth-container button:hover {
  background-color: #bce9fa;
}

.auth-container button:active {
  transform: translateY(1px);
}

/* Link under form */
.switch-auth {
  text-align: center;
  margin-top: 1rem;
}

.switch-auth a {
  color: #49c2f2;
  font-weight: 600;
}

.switch-auth a:hover {
  color: #bce9fa;
}

/* Optional: tiny helper text (e.g., username availability) inside form */
#signup-form small {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
}

/* ---------- Terms Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;                 /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;                 /* revealed when .open is added */
}

.modal-dialog {
  background: #021317;
  color: #dfe3e6;
  border: 2px solid #49c2f2;
  border-radius: 12px;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  position: relative;
  animation: fadeInUp .3s ease;
}

.modal-dialog h2 {
  color: #49c2f2;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.modal-dialog p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.modal-dialog a {
  color: #49c2f2;
  text-decoration: underline;
}

.modal-dialog a:hover {
  color: #bce9fa;
}

/* Close (X) */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #49c2f2;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: color .2s ease;
}

.modal-close:hover {
  color: #bce9fa;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .auth-container {
    margin: 2.25rem 1rem;
    padding: 1.25rem;
  }
  .modal-dialog {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
  .modal-dialog h2 {
    font-size: 1.15rem;
  }
}
