@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Corpo e fundo */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

/* 🎥 Vídeo de fundo */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(60%);
}

/* 🧊 Container principal */
.container {
  position: relative;
  z-index: 1;
  width: 420px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 40px 40px;
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

/* Logo */
.container img {
  width: 200px;
  display: block;
  margin: 0 auto 10px auto;
}

/* Campos */
.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 25px 0;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  outline: none;
  font-size: 16px;
  color: #fff;
  padding: 0 45px 0 20px;
}

.input-box input::placeholder {
  color: #fff;
}

.input-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #fff;
}

/* Lembrar senha */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: -10px 0 15px;
}

.remember-forgot label input {
  accent-color: #fff;
  margin-right: 5px;
}

.remember-forgot a {
  color: #fff;
  text-decoration: none;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

/* Botão login */
.login {
  width: 100%;
  height: 50px;
  background-color: #fff;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  transition: 0.5s;
}

.login:hover {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, .4);
  color: #fff;
}

/* Link de registro */
.register-link {
  font-size: 14px;
  text-align: center;
  margin: 20px 0 10px;
}

.register-link a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* 🔆 Animação de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 30px 25px;
  }

  .container img {
    width: 150px;
  }
}

:root {
  --pulse-primary: #6C3CF0;
  --pulse-primary-dark: #4E2AB8;
}

/* Override absoluto do botão sair (colocar por último!) */
#topbar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1000000;
}

#topbar #logoutBtn {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  border: 2px solid #6C3CF0 !important;
  background-color: #ffffff !important;
  background-image: none !important;     /* ← evita gradientes herdados */
  color: #6C3CF0 !important;
  appearance: none;                       /* ← neutraliza estilos do user-agent */
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 18px rgba(108, 60, 240, 0.15) !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease !important;
}

#topbar #logoutBtn svg {
  display: block;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

#topbar #logoutBtn:hover {
  background: linear-gradient(135deg, #6C3CF0, #4E2AB8) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(108, 60, 240, 0.22) !important;
}

#topbar #logoutBtn:active {
  transform: translateY(1px) !important;
}

#topbar #logoutBtn:focus-visible {
  outline: 0 !important;
  box-shadow:
    0 0 0 3px rgba(108, 60, 240, 0.35),
    0 8px 18px rgba(108, 60, 240, 0.15) !important;
}

/* Override FINAL do botão Sair (colocar por último!) */
html body #topbar > #logoutBtn {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 9999px !important;

  background-color: #ffffff !important;
  background: #ffffff !important;
  background-image: none !important;   /* elimina gradientes herdados */
  border: 2px solid #6C3CF0 !important;
  color: #6C3CF0 !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-shadow: 0 8px 18px rgba(108, 60, 240, 0.15) !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease !important;
}

html body #topbar > #logoutBtn svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

html body #topbar > #logoutBtn:hover {
  background: linear-gradient(135deg, #6C3CF0, #4E2AB8) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(108, 60, 240, 0.22) !important;
}

html body #topbar > #logoutBtn:active { transform: translateY(1px) !important; }

html body #topbar > #logoutBtn:focus-visible {
  outline: 0 !important;
  box-shadow:
    0 0 0 3px rgba(108, 60, 240, 0.35),
    0 8px 18px rgba(108, 60, 240, 0.15) !important;
}