/* Reset básico */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f9fafb;
  /* fundo branco suave */
  color: #333;
  /* texto padrão escuro */
}

/* Fundo com gradiente */
.fundoGradient {
  background: linear-gradient(285.94deg, rgba(255, 255, 255, 0.4) -6.33%, rgb(0 129 5 / 90%) 80.85%);
}

/* Layout do fundo com imagem */
.bgGuestLayout {
  background-image: url(/web_gallery/img/fundo-HQKEHtfH.png);
  background-repeat: no-repeat;
  background-position: 103% 0%;
  background-size: 75%;
}

/* Container centralizado para o login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 76vh;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

/* Caixa do formulário */
.login-box {
  width: 100%;
  max-width: 380px;
  padding: 30px 25px;
  box-sizing: border-box;
  color: #111;
}

/* Logo login */
.login-logo {
  max-width: 200px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
  image-rendering: pixelated;
  /* Removido image-rendering pixelated para evitar perda de qualidade */
}

/* Inputs do formulário */
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  margin: 10px 0;
  border: 1.5px solid #cbd5e1;
  /* cinza claro */
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
  color: #94a3b8;
  /* cinza azul claro */
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #1eb8e7;
  /* azul vibrante no foco */
}

/* Mensagem de erro */
.error-message {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ef4444;
  /* vermelho */
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.8);
  z-index: 10;
}

/* Botões do formulário */
.form-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 14px 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}

.btn.criar-conta {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.btn.criar-conta:hover {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.btn.entrar {
  background: linear-gradient(90deg, #10b981, #047857);
}

.btn.entrar:hover {
  background: linear-gradient(90deg, #047857, #10b981);
}

/* Container notícias */
.container-news {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Linha separadora */
.container-news hr {
  margin: 30px 0;
  border: none;
  border-top: 2px solid #e2e8f0;
}

/* Cabeçalho notícias */
.news-header h2 {
  font-size: 3rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(37, 99, 235, 0.4);
}

.news-header p {
  font-size: 1.25rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0;
  opacity: 0.85;
  font-style: italic;
  letter-spacing: 0.4px;
}

/* Grid para cards das notícias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Card notícia */
.news-card {
  background-color: #2563eb;
  /* azul forte para combinar com texto branco */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  min-height: 160px;
  background-size: cover;
  background-repeat: no-repeat;
}

.news-card:hover {
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.3);
  transform: translateY(-8px);
}

/* Conteúdo texto do card */
.news-card .content {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Título da notícia */
.news-card .title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* Descrição curta */
.news-card .desc {
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.4em;
  max-height: 4.2em;
  /* até 3 linhas */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rodapé do card */
.news-card .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.8;
}

/* Botão Leia Mais */
.news-card .read-more {
  font-weight: 700;
  color: #93c5fd;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: rgba(255 255 255 / 0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.news-card .read-more:hover {
  background-color: rgba(255 255 255 / 0.3);
  color: #e0e7ff;
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
  .news-card {
    flex-direction: column;
    min-height: auto;
  }

  .news-card .content {
    padding: 15px 20px;
  }
}


/* Input com avatar */
.input-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.input-com-avatar {
  width: 100%;
  padding: 12px 50px 12px 15px;
  /* espaço para avatar */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  box-sizing: border-box;
}

.input-com-avatar:focus {
  outline: none;
  border-color: #66afe9;
  box-shadow: 0 0 0 2px rgba(102, 175, 233, 0.2);
}

.avatar-preview {
  position: absolute;
  top: 35%;
  right: 0px;
  transform: translateY(-50%);
  width: 64px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

/* Footer */

.footer-section {
  background: #1a1a1a;
  /* fundo preto suave */
  color: #d0d0d0;
  /* texto cinza claro */
  padding: 50px 20px 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.03);
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-column {
  flex: 1;
  min-width: 280px;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
}

.footer-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: #333333;
  box-shadow: 0 0 5px rgba(50, 50, 50, 0.5);
  border-radius: 1px;
}

@media (max-width: 850px) {
  .footer-column:not(:last-child)::after {
    display: none;
  }
}

.footer-column.socials {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column.socials p {
  color: #aaa;
  /* cinza claro */
  line-height: 1.5;
}

.social-icons-footer {
  display: flex;
  gap: 20px;
}

.social-icons-footer a {
  display: inline-flex;
  width: 52px;
  height: 52px;
  background: #222222;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.social-icons-footer a:hover {
  background-color: #444444;
  animation: pulseGlow 1.5s infinite;
  transform: scale(1.15);
  filter: drop-shadow(0 6px 12px rgba(68, 68, 68, 0.9));
}

.social-icons-footer a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 8px 2px rgba(68, 68, 68, 0.7);
  }

  50% {
    box-shadow: 0 0 15px 5px rgba(68, 68, 68, 1);
  }
}

.footer-column.center-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  line-height: 1.4;
  user-select: text;
}

.footer-column.last-registered {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  user-select: none;
}

.footer-column.last-registered h4 {
  font-weight: 700;
  color: #999999;
  margin-bottom: 10px;
}

.avatars-registrados {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-height: 110px;
  overflow-y: auto;
  padding-bottom: 6px;
  justify-content: flex-end;
  position: relative;
}

.avatars-registrados::-webkit-scrollbar {
  height: 6px;
}

.avatars-registrados::-webkit-scrollbar-thumb {
  background-color: #555555;
  border-radius: 3px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #444444;
  background-color: #222222;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.avatar::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #444444cc;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  user-select: none;
  box-shadow: 0 0 10px #444444aa;
}

.avatar:hover::after {
  opacity: 1;
}

.avatar:hover {
  transform: scale(1.2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

@media (max-width: 850px) {
  .container-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-column.last-registered {
    align-items: center;
  }

  .avatars-registrados {
    justify-content: center;
  }

  .footer-column:not(:last-child)::after {
    display: none;
  }
}