/* Certifique-se de que o body e html ocupam toda a tela */
html, body {
  min-height: 100%;
}

.form-wrapper {
  max-width: 650px;
}

.desktop, .celular {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.desktop {
  display: block;
}

.celular {
  display: none;
}

.header {
  display: flex;
  flex-direction: flex-end; /* Logo à direita */
  align-items: center;
  padding: 1rem;
}

.logo-topo {
  height: 230px;        /* Ajuste conforme o tamanho ideal do seu logo */
  width: auto;
  border-radius: 8px;
}

.header h1 {
  font-size: 2rem;
  margin-left: 1rem;
  font-weight: bold;
}

.card {
  background-color: rgba(0, 0, 0, 0.37) !important; /* preto com 70% de opacidade */
  border: none;
  color: white;
}

.logo-footer {
  height: 280px;
  width: auto;
  border-radius: 8px;
  margin-top: -5rem;
  margin-bottom: -5rem;
}

@keyframes pulseZoomRotateShineFlipXDesktop {
  0% {
    transform: scale(1) rotate(0deg) rotateX(0deg);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.12);
    filter: brightness(1.6);
  }
  50% {
    transform: scale(1.18);
    filter: brightness(2);
  }
  75% {
    transform: scale(1.12);
    filter: brightness(1.6);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* Animação mobile */
@keyframes pulseZoomRotateShineFlipX {
  0% {
    transform: scale(1) rotateX(0deg);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.12);
    filter: brightness(1.6);
  }
  50% {
    transform: scale(1.18);
    filter: brightness(2);
  }
  75% {
    transform: scale(1.12);
    filter: brightness(1.6);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* Estilos para mobile (max-width: 768px) */
@media (max-width: 768px) {
  .desktop {
    display: none;
  }

  .celular {
    display: block;
  }

  .header h1 {
    display: none; /* usar apenas display: none */
  }

  .header {
    flex-direction: column !important; /* empilha logo + título (mesmo que oculto) */
    justify-content: center !important; /* centraliza horizontalmente */
    align-items: center !important; /* centraliza todos os elementos */
    gap: 1rem;
  }

  .logo-topo-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
  }

  .form-wrapper {
    max-width: 360px;
    width: 100%;
    margin-top: 15rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
  }

  form .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .logo-topo {
    margin-bottom: 1.5rem;
    animation: pulseZoomRotateShineFlipX 5s infinite ease-in-out;
    transform-origin: center center;
    cursor: default;
  }

  .logo-topo-container, .header {
    perspective: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Animação para desktop (min-width: 769px) */
@media (min-width: 769px) {
  .logo-topo {
    animation: pulseZoomRotateShineFlipXDesktop 7s infinite ease-in-out;
    transform-origin: center center;
    cursor: default;
  }

  .logo-topo-container, .header {
    perspective: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}