*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1d4ed8;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a,
.link-button {
  font-size: 0.95rem;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav a:hover,
.link-button:hover {
  color: #1d4ed8;
}

.main {
  flex: 1;
  padding: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 2rem;
}

.hero h1 {
  margin-top: 0;
  font-size: 1.9rem;
}

.subtitle {
  margin-top: 0.25rem;
  color: #6b7280;
}

.lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #374151;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn.primary {
  background: #1d4ed8;
  color: #ffffff;
}

.btn.primary:hover {
  background: #1e40af;
}

.btn.secondary {
  background: #e5e7eb;
  color: #111827;
}

.section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.section-alt {
  background: #eff6ff;
}

.section h2 {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin-top: 0;
}

.bullets {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.qr-placeholder {
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 2px dashed #9ca3af;
  text-align: center;
  color: #6b7280;
}

.footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

label {
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

input,
textarea {
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px #1d4ed8;
}

.status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.status.error {
  color: #b91c1c;
}

.status.success {
  color: #15803d;
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-links a {
  color: #1d4ed8;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.muted {
  color: #6b7280;
  font-size: 0.9rem;
}

.info-box {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  margin-bottom: 1rem;
}

.broadcast-list {
  max-height: 320px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.broadcast-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.broadcast-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .main {
    padding: 1rem;
  }
}
