/* BWS 2.0 — join.css
   Registration multi-step form styles.
   Extends auth.css — requires auth.css to be loaded first. */

.join-shell {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.join-panel {
  background: rgba(16, 6, 2, .84);
  border: 1px solid rgba(218, 139, 39, .28);
  border-radius: 10px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .52);
}

/* ── Brand lockup ── */
.join-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.join-brand-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(246, 234, 215, .6);
  text-transform: uppercase;
}

/* ── Fieldsets ── */
.join-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
.join-fieldset legend {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: rgba(246, 234, 215, .75);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0;
}

/* ── 2×2 option cards ── */
.join-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .join-option-grid { grid-template-columns: 1fr; }
}

.join-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.join-option {
  cursor: pointer;
}
.join-option-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(218, 139, 39, .22);
  border-radius: 8px;
  background: rgba(30, 12, 2, .5);
  transition: border-color .14s, background .14s, box-shadow .14s;
  min-height: 76px;
}
.join-option input[type="radio"]:checked + .join-option-inner {
  border-color: rgba(218, 139, 39, .75);
  background: rgba(218, 139, 39, .12);
  box-shadow: 0 0 0 1px rgba(218, 139, 39, .35) inset;
}
.join-option-inner:hover {
  border-color: rgba(218, 139, 39, .45);
  background: rgba(218, 139, 39, .07);
}
.join-option-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}
.join-option-inner strong {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: #f6ead7;
}
.join-option-inner small {
  font-size: 11.5px;
  color: rgba(246, 234, 215, .5);
  line-height: 1.35;
}

/* ── Chip multi-select ── */
.join-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.join-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.join-chip {
  cursor: pointer;
}
.join-chip span {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid rgba(218, 139, 39, .25);
  border-radius: 999px;
  background: rgba(30, 12, 2, .5);
  font-size: 12px;
  font-weight: 600;
  color: rgba(246, 234, 215, .65);
  font-family: var(--font-ui);
  letter-spacing: .03em;
  transition: all .12s;
}
.join-chip input[type="checkbox"]:checked + span {
  background: rgba(218, 139, 39, .18);
  border-color: rgba(218, 139, 39, .65);
  color: #dda34a;
}
.join-chip span:hover {
  border-color: rgba(218, 139, 39, .4);
  color: rgba(246, 234, 215, .85);
}

/* ── Region field ── */
.join-region-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(246, 234, 215, .75);
  font-weight: 600;
  font-family: var(--font-ui);
}

/* ── Optional label ── */
.join-optional {
  font-weight: 400;
  color: rgba(246, 234, 215, .4);
  font-size: 11px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Invite code toggle ── */
.join-invite-toggle {
  margin-bottom: 20px;
}
#invite-toggle {
  background: none;
  border: none;
  color: rgba(218, 139, 39, .8);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
#invite-toggle:hover { color: #dda34a; }
#invite-toggle span {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}
.join-invite-field {
  margin-top: 10px;
}
.join-invite-note {
  font-size: 11.5px;
  color: rgba(246, 234, 215, .4);
  margin: 6px 0 0;
}

/* ── Honeypot (must stay invisible) ── */
.join-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Submit ── */
.join-submit {
  width: 100%;
  margin-top: 8px;
}

.join-login-link {
  text-align: center;
  font-size: 13px;
  color: rgba(246, 234, 215, .5);
  margin: 12px 0 0;
}
.join-login-link a { color: rgba(218, 139, 39, .9); }

.join-terms {
  text-align: center;
  font-size: 11.5px;
  color: rgba(246, 234, 215, .35);
  margin: 8px 0 0;
}
.join-terms a { color: rgba(218, 139, 39, .6); }

/* ── Sent / Done screens ── */
.join-sent-icon {
  font-size: 52px;
  text-align: center;
  margin: 8px 0 16px;
}

.join-copy-small {
  font-size: 13px !important;
  color: rgba(246, 234, 215, .5) !important;
  text-align: center;
}

/* ── Dev link box ── */
.join-dev-box {
  margin-top: 20px;
  padding: 14px;
  background: rgba(218, 139, 39, .1);
  border: 1px dashed rgba(218, 139, 39, .4);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(246, 234, 215, .7);
}
.join-dev-box a {
  word-break: break-all;
  color: #dda34a;
  display: block;
  margin-top: 4px;
}

/* ── Password panel ── */
.join-password-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.join-password-wrap input {
  flex: 1;
  min-width: 0;
}
.join-pw-toggle {
  background: rgba(218, 139, 39, .12);
  border: 1px solid rgba(218, 139, 39, .28);
  border-radius: var(--radius-sm, 4px);
  color: rgba(218, 139, 39, .85);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s;
}
.join-pw-toggle:hover { background: rgba(218, 139, 39, .2); }

/* ── Strength bar ── */
.join-strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
  margin: -8px 0 4px;
}
.join-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .2s, background .2s;
}
.join-strength-label {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-ui);
  min-height: 16px;
  margin: 0 0 12px;
}

/* ── Auth status variants ── */
.auth-status.info {
  color: rgba(218, 139, 39, .9);
}
