/* Auth & plateforme communautaire */

.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  margin-top: 72px;
  background: var(--off-white, #f8fbf9);
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem;
  border: 2px solid var(--gray-200);
  background: white;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.is-active {
  border-color: var(--green);
  background: rgba(22, 136, 90, 0.08);
  color: var(--green-dark);
}

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

.auth-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-msg--error { background: #fde8e8; color: #9b1c1c; }
.auth-msg--ok { background: #e8f5ee; color: var(--green-dark); }

.nav__auth {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.nav__auth:hover { color: var(--green-dark); }

/* Forum live */
.forum-live { margin-top: 2rem; }

.forum-topic {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.forum-topic__meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.forum-topic__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.forum-replies {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gray-200);
}

.forum-reply {
  padding: 0.65rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.forum-compose {
  background: var(--gray-100);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.pub-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.pub-card__domain {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green);
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.apply-modal[hidden] { display: none; }

.apply-modal__box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.apply-modal__close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.backend-banner {
  background: linear-gradient(90deg, #fff8e6, #e8f5ee);
  border: 1px solid #e8d5a0;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.backend-banner code {
  background: rgba(255,255,255,0.8);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
}
