/* TB2 auth door — FIRE 20260923-door-simple: phone primary, slim modern strip. */
.tb-auth {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.35rem 1.1rem 0.75rem;
  color: inherit;
}

.tb-auth-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tb-auth-quiet,
.tb-auth-legacy {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.tb-auth-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tb-auth-panel[hidden] {
  display: none !important;
}

.tb-auth-btn {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.tb-auth-btn:hover {
  background: rgba(212, 175, 55, 0.22);
}

.tb-auth-btn:disabled,
.tb-auth-btn[data-busy] {
  opacity: 0.55;
  cursor: wait;
}

.tb-auth-btn[hidden] {
  display: none !important;
}

.tb-auth-btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.tb-auth-email {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-auth-email[hidden] {
  display: none !important;
}

.tb-auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.tb-auth-input {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
}

.tb-auth-error,
#door-error {
  min-height: 1.2em;
  margin: 0.25rem 0 0;
  color: var(--gold, #d4af37);
  font-size: 13px;
}

/* Phone is primary — always visible */
#door-phone-wrap {
  max-width: 22rem;
  margin: 0 auto;
  padding: 0 0 0.35rem;
  border-top: none;
}

#door-phone-toggle {
  display: none !important;
}

#door-phone-body {
  display: block;
  margin-top: 0;
}

#door-phone-wrap.is-phone-open #door-phone-body,
#door-phone-wrap[data-force-phone="1"] #door-phone-body {
  display: block;
}

/* Modern strip sits under phone */
#door-modern {
  max-width: 22rem;
  margin: 0.35rem auto 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tb-auth-status {
  min-height: 1.1em;
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}
