/* ==========================================
   LOGIN.CSS
   Estilos da tela de login (index.php). Depende dos tokens --intra-*
   definidos em tema.css (linkado antes deste arquivo).
   ========================================== */

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

/* Lado esquerdo: Painel de controle escuro */
.login-sidebar {
  background-color: var(--intra-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2rem;
  height: 100vh;
  z-index: 10;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: #ffffff;
}
.brand-title span { color: var(--intra-accent); }

/* CORREÇÃO DO AVATAR OVAL */
.avatar-circle {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50% !important;
}

/* Botão Google Customizado e Clean */
.btn-google {
  background-color: var(--intra-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-google:hover {
  background-color: var(--intra-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61, 59, 94, 0.35);
}

/* Lado Direito: foto da barragem da UHE São Roque (película azul + bolinhas por cima) */
.login-bg-pane {
  background-image: url('../assets/img/login-sre.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Camada de cor translúcida */
.login-bg-pane::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(31, 30, 51, 0.55);
  z-index: 1;
}

/* ================================================================= */
/* EFEITO ANIMADO DE BALÕES E OBJETOS FLUTUANTES (CSS) */
/* ================================================================= */
.bubbles-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 2; /* Fica acima da película e abaixo de qualquer conteúdo */
}

.bubble {
  position: absolute;
  bottom: -150px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  animation: floatUp 12s infinite linear;
}

/* Formatos variados: esferas e quadrados arredondados */
.b-circle { border-radius: 50%; }
.b-square { border-radius: 20px; transform: rotate(45deg); }

/* Configuração individual de tempo, tamanho e posição de cada objeto */
.bubble:nth-child(1) { left: 10%; width: 90px; height: 90px; animation-duration: 14s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 25%; width: 45px; height: 45px; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 40%; width: 110px; height: 110px; animation-duration: 18s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 55%; width: 60px; height: 60px; animation-duration: 12s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 70%; width: 100px; height: 100px; animation-duration: 16s; animation-delay: 5s; }
.bubble:nth-child(6) { left: 85%; width: 50px; height: 50px; animation-duration: 9s; animation-delay: 3s; }
.bubble:nth-child(7) { left: 50%; width: 80px; height: 80px; animation-duration: 15s; animation-delay: 7s; }

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}
