/* Estilo Geral do Slider */
.banner-slider {
    position: relative;
    width: 100%;
    min-height: 240px;
    overflow: hidden;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Itens do Banner (Escondidos por padrão) */
.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%; 
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
    box-sizing: border-box;
}

.banner-item img {
  max-width: 600px;
   width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  // OU use object-fit: 
  display: block; 
}

/* Banner Ativo (Visível) */
.banner-item.active {
    position: relative;
    opacity: 1;
}

/* Conteúdo interno centralizado */
.banner-content {
    text-align: center;
    color: #ffffff;
    max-width: 600px;
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Container dos Botões de Login */
.social-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Ajusta em telas pequenas de celular */
}

/* Estilo Base dos Botões Sociais */
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Botão do Google Oficial */
.btn-google {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

/* Botão do Facebook Oficial */
.btn-facebook {
    background-color: #1877f2;
    color: #ffffff;
}

/* Ajustes para Celular */
@media (max-width: 600px) {
    .banner-content h2 { font-size: 1.6rem; }
    .banner-content p { font-size: 0.95rem; }
    .btn-social { width: 100%; justify-content: center; } /* Botões empilhados e cheios no celular */
}

3. O Script JavaScript para rotação automática

<script>
function iniciarBannerSlider() {
    const banners = document.querySelectorAll('.banner-slider .banner-item');
    if (banners.length <= 1) return; // Se tiver só 1 banner, não precisa rodar

    let indexAtual = 0;

    setInterval(() => {
        // Remove a classe ativa do banner atual
        banners[indexAtual].classList.remove('active');
        
        // Calcula o próximo índice (volta ao zero se chegar ao fim)
        indexAtual = (indexAtual + 1) % banners.length;
        
        // Adiciona a classe ativa no novo banner
        banners[indexAtual].classList.add('active');
    }, 5000); // 5000 milissegundos = 5 segundos
}

document.addEventListener('DOMContentLoaded', iniciarBannerSlider);
</script>