* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
}

.hero {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;
  top: 0;
  left: 0;
  background-color: #f5923b57;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.layer-1 {
  -webkit-animation: parallax_fg linear 20s infinite both;
  animation: parallax_fg linear 20s infinite both;
  background: url(/images/1.png?9591c410148e6883727c5339fd1c02cd) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 136px;
}

.layer-2 {
  -webkit-animation: parallax_fg linear 30s infinite both;
  animation: parallax_fg linear 30s infinite both;
  background: url(/images/2.png?ed19f37046b8be52512f63f791e570c4) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 145px;
}

.layer-3 {
  -webkit-animation: parallax_fg linear 55s infinite both;
  animation: parallax_fg linear 55s infinite both;
  background: url(/images/3.png?7d1099ba78549258bc91ecfae26d28d4) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 158px;
}

.layer-4 {
  -webkit-animation: parallax_fg linear 75s infinite both;
  animation: parallax_fg linear 75s infinite both;
  background: url(/images/4.png?7058228bbaba5ae2cff000c2140ba5c8) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 468px;
}

.layer-5 {
  -webkit-animation: parallax_fg linear 95s infinite both;
  animation: parallax_fg linear 95s infinite both;
  background: url(/images/5.png?f0103e7989168361829d1efed51bbf08) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 311px;
}

.layer-6 {
  -webkit-animation: parallax_fg linear 120s infinite both;
  animation: parallax_fg linear 120s infinite both;
  background: url(/images/6.png?683ba9296297feb871a75bd6bcf02296) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 222px;
}

.bike-1,
.bike-2 {
  background: url(/images/bike.png?67bfb7ed83fa2be38d4c5a6f82c3411a) 0 100% no-repeat;
  z-index: 1;
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 75px;
  -webkit-animation: parallax_bike linear 10s infinite both;
  animation: parallax_bike linear 10s infinite both;
}

.bike-2 {
  -webkit-animation: parallax_bike linear 15s infinite both;
  animation: parallax_bike linear 15s infinite both;
}

@-webkit-keyframes parallax_fg {
  0% {
    background-position: 2765px 100%;
  }

  100% {
    background-position: 550px 100%;
  }
}

@keyframes parallax_fg {
  0% {
    background-position: 2765px 100%;
  }

  100% {
    background-position: 550px 100%;
  }
}

@-webkit-keyframes parallax_bike {
  0% {
    background-position: -300px 100%;
  }

  100% {
    background-position: 2000px 100%;
  }
}

@keyframes parallax_bike {
  0% {
    background-position: -300px 100%;
  }

  100% {
    background-position: 2000px 100%;
  }
}

.wrapper {
  position: absolute;
  z-index: 9999;
  width: 100%;
}

.wrapper33 {
  position: relative;
  display: flex;
  justify-content: center;
  /* Centraliza horizontalmente */
  align-items: center;
  /* Centraliza verticalmente */
  height: 100vh;
  /* Altura total da tela */
}

.lg-login-box {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  width: 360px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 15px;
  -webkit-box-shadow: 0px 0px 5px #bbb;
  box-shadow: 0px 0px 5px #bbb;
}

.left-image {
  position: absolute;
  /* Permite posicionar a imagem em relação à lg-login-box */
  top: 38%;

  /* Posiciona a imagem verticalmente no meio da lg-login-box */
  right: -250px;
  /* Ajuste para que o lado direito da imagem sobreponha o lado esquerdo da lg-login-box */
  transform: translateY(-50%);
  /* Centraliza verticalmente a imagem */
  width: 200px;
  height: 251px;
  z-index: 999;
}

#video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  background-size: cover;
  pointer-events: none;
}

#login-form {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  z-index: 1000;
}

.cookie-banner p {
  margin: 0;
  display: inline-block;
  margin-right: 10px;
}

.cookie-banner a {
  color: #ffd700;
  text-decoration: underline;
}

.cookie-banner a:hover {
  text-decoration: none;
}

.cookie-accept-btn {
  border-radius: 5px;
  border-color: #000000;
  border-width: medium;
  color: black;
  font-weight: bold;
  background-color: #FB6600;
  height: 35px;
}

.cookie-accept-btn:hover {
  background-color: whitesmoke;
}

/* Modal Estilos */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #ffc095;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 50%;
  height: 400px;
}

.modal-body {
  max-height: calc(100% - 40px);
  /* Altura máxima para evitar o padding do modal-content */
  overflow-y: auto;
  /* Ativa o scroll vertical se necessário */
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.login-page {
  display: block !important;
  min-height: 100vh;
  overflow-x: hidden;
}

.login-page .hero,
.login-page .hero33 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.login-page .wrapper33 {
  position: relative;
  z-index: 1;
  width: 100%;
}

.login-page #login-form {
  position: fixed;
  top: 40%;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 380px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, -50%);
}

.login-page .wrapper {
  position: absolute;
  z-index: 9999;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.login-page .wrapper>.row {
  margin-right: 0;
  margin-left: 0;
}

.login-page .wrapper>.row>[class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.login-page .wrapper img[alt="Upbgame"],
.login-page #login-form img[alt="Upbgame"] {
  width: min(360px, 82vw) !important;
  height: auto;
}

.login-page .lg-login-box {
  width: 360px;
}

.login-page .lg-login-box-msg {
  line-height: 1.35;
}

.login-page .lg-login-box .btn-link {
  white-space: normal;
}

@media (max-width: 768px) {
  .left-image {
    position: absolute;
    top: calc(95% + 1px);
    /* Coloca a imagem logo abaixo da caixa de login com espaçamento */
    left: 50%;
    transform: translateX(-50%);
    /* Centraliza horizontalmente abaixo da caixa de login */
    width: 150px;
    /* Ajuste a largura conforme necessário */
    height: auto;
    z-index: 999;
  }

  .login-page .hero,
  .login-page .hero33 {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .login-page .wrapper,
  .login-page .wrapper33 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100svh;
    height: auto;
    padding: 12px 12px 118px;
  }

  .login-page .wrapper>.row {
    width: 100%;
    max-width: 360px;
    padding-top: 0 !important;
  }

  .login-page #login-form {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 360px;
    margin: 0 !important;
    padding-top: 0 !important;
    transform: none;
  }

  .login-page .lg-login-box {
    width: 100%;
    margin-top: 10px !important;
    padding: 14px;
    border-radius: 10px;
  }

  .login-page .lg-login-box-msg {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .login-page .input-group {
    margin-bottom: 10px !important;
  }

  .login-page .form-control,
  .login-page .input-group-text {
    min-height: 38px;
    font-size: 14px;
  }

  .login-page .lg-login-box .row.align-items-center {
    row-gap: 8px;
  }

  .login-page .lg-login-box .row.align-items-center>[class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .login-page .lg-login-box .btn-link {
    padding: 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .login-page .lg-login-box button[type="submit"] {
    width: 100%;
    min-height: 38px;
  }

  .lg-login-box {
    width: 100%;
  }

  .cookie-banner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
  }

  .cookie-banner p {
    margin: 0;
  }

  .cookie-banner .cookie-accept-btn {
    align-self: center;
    min-width: 132px;
    height: 34px;
  }

  .modal-content {
    width: calc(100% - 24px);
    height: auto;
    max-height: 82vh;
    margin: 9vh auto;
  }
}

@media (max-width: 380px) {
  .login-page .wrapper,
  .login-page .wrapper33 {
    padding-right: 8px;
    padding-left: 8px;
  }

  .login-page .lg-login-box {
    padding: 12px;
  }

  .login-page .wrapper img[alt="Upbgame"],
  .login-page #login-form img[alt="Upbgame"] {
    width: 74vw !important;
  }
}
