.forum-main {
  padding-top: 6rem;
}

.forum-band {
  max-width: 72rem;
  margin: 0 auto;
}

.auth-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.auth-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 44, 0.9), rgba(7, 10, 26, 0.82));
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 2rem;
  color: #f5f7ff;
}

.auth-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form h2 {
  font-size: 1.1rem;
  color: #25f4ff;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  color: #a7b0d6;
  font-size: 0.85rem;
}

.auth-form .hint {
  color: #a7b0d6;
  font-weight: 400;
  text-transform: none;
}

.auth-form input,
.thread-form input,
.thread-form textarea {
  border: 1px solid var(--line);
  background: rgba(2, 5, 14, 0.55);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

:root[data-theme="light"] .auth-form input,
:root[data-theme="light"] .thread-form input,
:root[data-theme="light"] .thread-form textarea {
  background: rgba(255, 255, 255, 0.7);
}

.form-error {
  margin: 0;
  color: #ff3bcb;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--cyan);
  font-weight: 800;
}

.thread-form {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(8, 9, 21, 0.5);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  color: #f5f7ff;
}

.thread-form label {
  display: grid;
  gap: 0.35rem;
  color: #a7b0d6;
  font-size: 0.85rem;
}

.thread-form-actions {
  display: flex;
  gap: 0.75rem;
}

.threads-list {
  display: grid;
  gap: 0.75rem;
}

.thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 44, 0.9), rgba(7, 10, 26, 0.82));
  padding: 1rem 1.25rem;
  color: #f5f7ff;
}

.thread-row:hover {
  border-color: var(--cyan);
}

.thread-row .hint {
  color: #a7b0d6;
}

.posts-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.post-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 44, 0.9), rgba(7, 10, 26, 0.82));
  padding: 1.25rem;
  color: #f5f7ff;
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.post-meta .hint {
  color: #a7b0d6;
}

.post-body {
  color: #f5f7ff;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .auth-forms {
    grid-template-columns: 1fr;
  }

  .thread-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
