/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE + FUNDO COM IMAGEM
   ========================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  min-height: 100vh;
  line-height: 1.6;
  color: #1f2937;

  background-image: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: background-image 1s ease-in-out;
}

/* CAMADA DE PAZ (SUAVIZA A IMAGEM) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(120, 120, 120, 0.55);
  backdrop-filter: blur(6px);
  z-index: -1;
}

/* =========================
   CONTAINER
   ========================= */
.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
}

/* =========================
   MARCA
   ========================= */
.marca {
  text-align: center;
  margin-bottom: 36px;
}

.marca h1 {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 6px;
}

.marca p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* =========================
   TÍTULOS
   ========================= */
h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 16px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

/* =========================
   INPUTS
   ========================= */
input,
textarea {
  width: 100%;
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
  font-family: inherit;
  color: #111827;
}

textarea {
  min-height: 140px;
  resize: none;
}

/* =========================
   BOTÕES
   ========================= */
button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

button:active {
  opacity: 0.85;
}

#sair {
  margin-top: 10px;
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

/* =========================
   MENSAGENS
   ========================= */
#mensagem,
#loginMsg {
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

/* =========================
   HISTÓRICO
   ========================= */
#historico {
  margin-top: 20px;
}

#historico div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

/* =========================
   Ressonância / COLETIVO
   ========================= */
#ressonancia {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 0.95rem;
  opacity: 0;
  animation: fadeIn 1s forwards;
  margin-top: 20px;
}

#ressonancia h3 {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #2563eb;
}

/* =========================
   SEPARADOR
   ========================= */
hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

/* =========================
   ANIMAÇÕES
   ========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   TELAS MAIORES
   ========================= */
@media (min-width: 768px) {
  .container {
    padding: 40px 24px 60px;
  }

  .marca h1 {
    font-size: 2.7rem;
  }

  textarea {
    min-height: 180px;
  }
}
