/* ══════════════════════════
   JOIN PAGE — Desktop (light)
   (login.css loaded via <link> in template)
   ══════════════════════════ */

.join-shell .auth-card--wide {
  width: min(520px, 100%);
  gap: 1.2rem;
}

.auth-header--center {
  text-align: center;
}

.auth-header--center h2 {
  margin-bottom: 0.4rem;
}

.auth-header--center p {
  color: var(--auth-muted);
}

.auth-switch {
  color: var(--auth-muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--auth-bg-primary);
  font-weight: 600;
}

/* Mobile header (hidden on desktop) */
.auth-mobile-header {
  display: none;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Row for country/state side by side */
.join-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  align-items: start;
}

.join-row .input-group {
  min-width: 0;
}

.join-row select,
.join-row input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Desktop: clean light inputs */
.input-group select,
.input-group input {
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: #fafafa;
  color: #262626;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group select option {
  background: #fff;
  color: #262626;
}

.input-group select:focus,
.input-group input:focus {
  outline: none;
  border-color: var(--auth-bg-primary);
  box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
}

.input-group input::placeholder {
  color: #a0a0a0;
}

.input-label {
  font-weight: 600;
  color: #262626;
  font-size: 0.88rem;
}

.input-group small {
  font-size: 0.78rem;
  color: var(--auth-muted);
}

/* Phone input */
.phone-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.country-code-select {
  flex: 0 0 120px;
  min-width: 100px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fafafa;
  color: #262626;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.country-code-select option {
  background: #fff;
  color: #262626;
}

.country-code-select:focus {
  outline: none;
  border-color: var(--auth-bg-primary);
  box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
}

.mobile-input-wrapper {
  flex: 1;
}

.mobile-input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fafafa;
  color: #262626;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mobile-input::placeholder {
  color: #a0a0a0;
}

.mobile-input:focus {
  outline: none;
  border-color: var(--auth-bg-primary);
  box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
}

/* Terms */
.terms-check {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--auth-muted);
  align-items: center;
}

.terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--auth-bg-primary);
}

.terms-check a {
  color: var(--auth-bg-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* State wrapper text input fallback — match select styling */
#state-wrapper input[type="text"] {
  width: 100%;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: #fafafa;
  color: #262626;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#state-wrapper input[type="text"]::placeholder {
  color: #a0a0a0;
}

#state-wrapper input[type="text"]:focus {
  outline: none;
  border-color: var(--auth-bg-primary);
  box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
}

/* Submit — inherits from login.css .btn.btn-primary.join-submit */


/* ══════════════════════════════════
   MOBILE: Clean white join form
   ══════════════════════════════════ */
@media (max-width: 767.98px) {

  .join-shell .auth-card--wide {
    width: 100%;
    gap: 0;
  }

  /* Show mobile header, hide desktop header */
  .auth-mobile-header {
    display: block;
    text-align: center;
    padding-bottom: 4px;
  }

  .auth-mobile-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #262626;
    margin: 0 0 4px;
  }

  .auth-mobile-header p {
    font-size: 0.9rem;
    color: #737373;
    margin: 0;
  }

  /* Reduce mobile logo padding for join (shorter) */
  .join-shell .auth-mobile-logo {
    padding: 28px 0 20px;
  }

  .join-shell .auth-mobile-logo img {
    width: 64px;
    height: 64px;
  }

  /* Auth switch link */
  .auth-switch {
    color: #737373;
    font-size: 0.88rem;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .auth-switch a {
    color: var(--auth-bg-primary);
  }

  /* Form */
  .join-form {
    gap: 0.9rem;
  }

  .auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Light inputs */
  .input-label {
    color: #262626;
    font-size: 0.85rem;
  }

  .input-group select,
  .input-group input {
    background: #fafafa;
    border-color: #dbdbdb;
    color: #262626;
    border-radius: 12px;
  }

  .input-group select option {
    background: #fff;
    color: #262626;
  }

  .input-group select:focus,
  .input-group input:focus {
    border-color: var(--auth-bg-primary);
    box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
  }

  .input-group input::placeholder {
    color: #a0a0a0;
  }

  .input-group small {
    color: #999;
  }

  /* Phone inputs light */
  .country-code-select {
    background: #fafafa;
    border-color: #dbdbdb;
    color: #262626;
  }

  .country-code-select option {
    background: #fff;
    color: #262626;
  }

  .country-code-select:focus {
    border-color: var(--auth-bg-primary);
    box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
  }

  .mobile-input {
    background: #fafafa;
    border-color: #dbdbdb;
    color: #262626;
  }

  .mobile-input::placeholder {
    color: #a0a0a0;
  }

  .mobile-input:focus {
    border-color: var(--auth-bg-primary);
    box-shadow: 0 0 0 3px rgba(29, 154, 138, 0.12);
  }

  /* Row */
  .join-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Terms */
  .terms-check {
    color: #737373;
    font-size: 0.85rem;
    margin-top: 4px;
  }

  .terms-check a {
    color: var(--auth-bg-primary);
  }

  /* Submit pill */
  .join-submit {
    border-radius: 30px;
    padding: 14px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(29, 154, 138, 0.25);
  }

  .join-submit:hover {
    transform: none;
  }

  /* Bottom brand */
  .auth-bottom--join {
    padding: 20px 0 32px;
  }
}

@media (max-width: 575.98px) {
  /* Keep phone code + number side by side on small screens */
  .phone-input-wrapper {
    flex-direction: row;
    gap: 8px;
  }

  .country-code-select {
    flex: 0 0 110px;
    min-width: 90px;
    font-size: 0.85rem;
    padding: 0.65rem 0.5rem;
  }

  .mobile-input {
    flex: 1;
    min-width: 0;
  }

  /* Stack country/state on very small screens */
  .join-row {
    grid-template-columns: 1fr;
  }
}
