/* ------------------------------------------------------------
   SHARED FORM STYLES
------------------------------------------------------------ */

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1rem 0;
}

.auth-form label {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--bg-muted);
  border: 1px solid var(--outline);
  color: var(--text);
  font-size: 0.95rem;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px #ff660055;
  outline: none;
}

.auth-form button {
  width: 180px;
  padding: 0.8rem 1rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 0.6rem;
}

.auth-form button:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 18px #ff660030;
}

.checkbox-row {
  max-width: 360px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

/* ------------------------------------------------------------
   MOBILE: NARROWER INPUTS + BUTTONS (CENTERED)
------------------------------------------------------------ */
@media (max-width: 820px) {

  /* Pick how narrow you want it:
     - 320px looks clean on most phones
     - still responsive via 92vw so it never overflows
  */
  .auth-form label,
  .checkbox-row {
    width: 92vw;
    max-width: 320px;     /* ⬅ makes the fields narrower */
    margin: 0 auto;
  }

  .auth-form input,
  .auth-form select {
    width: 100%;
  }

  .auth-form button {
    width: 92vw;          /* ⬅ match the input width */
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
