/* Signup Page */
.signup-page-container {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafc;
  padding: 1rem;
}

/* Card styling */
.signup-card {
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: 10px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  text-align: center;
}

/* Title */
.signup-title {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #0d2b2c;
  font-weight: 600;
}

/* Input fields */
.signup-form .form-group {
  margin-bottom: 0.9rem;
}

.signup-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.signup-form input::placeholder {
  color: #999;
}

.signup-form input:focus {
  border-color: #155e63;
  box-shadow: 0 0 0 2px rgba(21,94,99,0.15);
  outline: none;
}

/* Make selects and number/date inputs match inputs */
.signup-form select,
.signup-form input[type="date"],
.signup-form input[type="number"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.signup-form select:focus,
.signup-form input[type="date"]:focus,
.signup-form input[type="number"]:focus {
  border-color: #155e63;
  box-shadow: 0 0 0 2px rgba(21,94,99,0.15);
  outline: none;
}

/* Button styling */
.btn-submit {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.85rem;
  background: #155e63;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.btn-submit:hover {
  background: #124f54;
  transform: translateY(-1px);
}

/* Terms + Privacy disclaimer */
.terms-ack {
  margin-top: 0.8rem;
  font-size: 0.74rem;
  color: #8b95a1;
  text-align: left;
}
.terms-ack a { color: #155e63; text-decoration: none; font-weight: 600; }
.terms-ack a:hover { text-decoration: underline; }

/* Footer link */
.login-footer {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: left;
}

.login-footer a {
  color: #155e63;
  text-decoration: none;
  font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }

/* Slightly larger text for referral toggle link */
.referral-toggle-link {
  font-size: 0.92rem;
}

/* Visual divider (not full width) */
.signup-divider {
  height: 1px;
  width: 90%;
  background: #e5e7eb;
  margin: 12px auto;
  border-radius: 1px;
}

/* Inline form error styling (match account pages) */
.errorlist {
  color: #d9534f;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-align: left;
}

ul.errorlist {
  list-style: none;
  margin: 0.3rem 0 0.4rem 0;
  padding: 0;
  color: #d9534f;
  font-size: 0.85rem; /* slightly smaller */
  text-align: left;
  white-space: nowrap;        /* keep errors on one line */
  overflow: hidden;           /* clip overflow */
  text-overflow: ellipsis;    /* show ellipsis if too long */
}

/* Highlight invalid fields that have an error list immediately before them */
.errorlist + input,
.errorlist + input[type="text"],
.errorlist + input[type="email"],
.errorlist + input[type="password"],
.errorlist + input[type="number"],
.errorlist + select,
.errorlist + textarea {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 2px rgba(217,83,79,0.15) !important;
}
