.signup-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  width: min(100%, 600px);
  max-width: 600px;
}

/* center the signup card in the viewport for auth pages */
body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.signup-panel {
  background: linear-gradient(180deg, var(--card-glow-fill), #3c8c5a);
  padding: 2.25rem;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(6, 26, 15, 0.55), 0 0 0 6px rgba(15, 61, 37, 0.35);
  border: 1px solid rgba(15, 61, 37, 0.8);
  animation: cardGlow 2.8s ease-in-out infinite;
  color: #eaf9ef;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* center textual content inside the brand area and titles */
.brand-card {
  text-align: center;
}

.signup-title {
  margin: 0;
  text-align: center;
}

.signup-form {
  gap: 1rem;
}

.muted {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr; /* stack fields vertically */
  gap: 0.85rem;
}

/* Ensure each field label takes full width */
.form-row .field {
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: #ddf3e2;
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(8, 30, 19, 0.45);
  background: rgba(12, 46, 27, 0.3);
  color: #f2fff6;
  box-shadow: inset 0 1px 3px rgba(4, 18, 10, 0.35);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 500;
  color: var(--text-muted);
}

/* add extra space between the terms checkbox and the action buttons */
.checkbox {
  margin-bottom: 1.25rem;
}

.checkbox a {
  color: #a4efc0;
}

.actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.feedback {
  min-height: 1.5rem;
}

.links {
  text-align: center;
  color: var(--text-muted);
}

.links a {
  color: #a4efc0;
  font-weight: 700;
}

@media (max-width: 960px) {
  .signup-container {
    grid-template-columns: 1fr;
  }
}
