﻿/* custom.css */

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

.background {
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container {
  background-color: transparent;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
}

.login-container h2,
.login-container h5 {
  color: white;
  margin-bottom: 20px;
}

 form {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    margin: auto;
  }

  .form-control {
    background-color: rgba(0, 0, 0, 0.5); /* fundo escuro translúcido */
    border: 1px solid #ccc;
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
  }

  .form-control::placeholder {
    color: #ddd;
  }

  /* Removemos transparência no hover */
  .form-control:hover {
    background-color: rgba(0, 0, 0, 0.6); /* leve destaque */
  }

  /* Efeito apenas no foco */
  .form-control:focus {
    background-color: rgba(0, 0, 0, 0.7); /* mais escuro para destacar */
    border-color: #66afe9;
    outline: none;
  }

  .password-wrapper {
    position: relative;
  }

  .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fff;
  }

  .btn-primary {
    background-color: rgba(0, 123, 255, 0.9);
    border: none;
    color: #fff;
  }

#datetime {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 14px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  padding: 6px 10px;
  border-radius: 5px;
  z-index: 9999;
  white-space: nowrap;
}

@media (max-width: 576px) {
  #datetime {
    font-size: 12px;
    top: 5px;
    right: 10px;
    padding: 4px 8px;
  }
}

.auto-style1 {
  text-align: center;
  color: #ffffff;
  margin-top: 30px;
  font-size: 14px;
}

.auto-style1 a {
  color: #ffffff;
  text-decoration: underline;
}

#instagram-float {
  position: fixed;
  bottom: 90px; /* acima do WhatsApp */
  right: 20px;
  background: #d6249f; /* cor do Instagram */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, background 0.3s;
  z-index: 9999;
}

#instagram-float:hover {
  transform: scale(1.15);
  background: #b91d85;
}

#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

#whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #fff;
  font-size: 18px;
}

#grafico-container {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 9999;
  background-color: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 8px;
  color: white;
  width: 320px;
}

#grafico-container canvas {
  display: block;
  margin-bottom: 10px;
}

#total-anual {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* Banner fixo no rodapé */
#rssBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  z-index: 9999;
}

#rssBanner h3 {
  margin: 0 0 5px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
}

/* Área de rolagem */
.ticker {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
}

.news-item {
  display: inline-block;
  margin: 0 50px; /* espaço entre as notícias */
}

.news-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.news-item a:hover {
  text-decoration: underline;
}

/* Animação contínua */
@keyframes scroll-left {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}