@import url(https://db.onlinewebfonts.com/c/3b83b6d7c11cf8f70ca43eedcf6ccc9f?family=BentonSans-Regular+Regular);

/* Estilos globais */
html {
  height: 100%;
}

body {
  background-image: url(../assets/img/fundo.jpg);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Calibri";
  background-repeat: no-repeat;
  background-size: cover;
}

/* O box */
.login-box {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: 30px;
  width: 400px;
  padding: 40px;
  transform: translate(-50%, -50%);
  background-color: #ffffff; /* Fundo branco */
  box-sizing: border-box;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); /* Box-shadow com blur */
  border-radius: 30px;
  text-align: center;
}

/* Logo e título */
.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px; /* Espaço entre a logo-box e o título */
}

.logo-box img {
  max-width: 150px; /* Ajuste o tamanho da sua logo aqui */
  margin-bottom: 20px;
}


/* Login */
.login-box h2 {
    margin: 0px;
    padding: 0px;
    color: #707070;
    text-align: center;
}	

/* Usuário e Senha */
.login-box .user-box {
  position: relative;
}

/* Alinhamento dos input*/
.login-box .user-box input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #707070;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #707070;
  outline: none;
  background: transparent;
}

/* Alinhamento dos nomes Usuário e Senha*/
.login-box .user-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: #707070;
  pointer-events: none;
  transition: .5s;
}

/* Cor e tamanho dos nomes quando clicado no input*/
.login-box .user-box input:focus~label,
.login-box .user-box input:valid~label {
  top: -20px;
  left: 0;
  color: #707070;
  font-size: 12px;
}

/* Alinhamento dos efeitos do button*/
.login-box form a:not(.forgot-password-link) {
  position: relative;
  display: inline-block;
  padding: 0px 0px;
  color: #ddd;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: .5s;
  margin-top: 40px;
  letter-spacing: 4px;
}

/* Alinhamento do hover por cima*/
.login-box a:not(.forgot-password-link):hover {
  background: #ddd;
  color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 5px #ddd, 0 0 25px #ddd, 0 0 50px #ddd, 0 0 100px #ddd;
}

/* Funcionalidade dos efeitos do button */
.login-box a span {
  position: absolute;
  display: block;
}

/* Estilizar o botão entrar */
.styled {
  display: block;
  margin: 0 auto;
  border: 0;
  line-height: 3; /* Ajustar a altura do botão */
  padding: 0 30px; /* Ajustar o preenchimento horizontal do botão */
  font-size: 16px; /* Ajustar o tamanho da fonte do botão */
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.836);
  border-radius: 60px;
  background-color: rgb(2, 101, 255);
  /* background-image: linear-gradient(to top left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, 0));
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, 0.836); */
  width: 100%; /* Tornar o botão responsivo */
  max-width: 150px; /* Definir largura máxima */
  cursor: pointer;
}

/* Hover do botão */
.styled:hover {
  background-color: #0860ee;
}

/*  */
/* .styled:active {
  box-shadow: inset -2px -2px 3px #fff, inset 2px 2px 3px rgba(0, 0, 0, 0.836);
} */

/* Centralizar o conteúdo verticalmente */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Nova logo acima do login-box */
.outer-logo {
  position: relative;
  top: -238px; /* Ajuste a posição vertical da logo */
  right: 2px; /* Ajuste a posição horizontal da logo */
  width: 140px; /* Ajuste a largura da logo */
  height: 150px; /* Ajuste a altura da logo */
  background-image: url(../assets/img/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1; /* Coloca a outer-logo na frente do login-box */
}

/* Media Queries para tornar o layout responsivo */
/* Media Queries para tornar o layout responsivo */
@media screen and (max-width: 600px) {
  .login-box {
    width: 90%;
  }

  /* Ajustar posição da logo no responsivo */
  .outer-logo {
    position: relative;
    top: -255px; /* Ajuste a posição vertical da logo no responsivo */
    right: -20px; /* Ajuste a posição horizontal da logo no responsivo */
    width: 170px; /* Ajuste a largura da logo no responsivo */
    height: 120px; /* Ajuste a altura da logo no responsivo */
  }
}
/* Estilizar o link "Esqueceu a senha" */
.forgot-password-link {
  display: block;
  text-align: right;
  margin-bottom: 15px;
  margin-top: 5px;
  font-size: 14px;
  color: #707070;
  text-decoration: none;
  cursor: pointer; /* Adicionei este estilo para indicar que é um link clicável */
}

.forgot-password-link:hover {
  color: rgb(2, 101, 255);
}

/* Estilizar o botão mostrar/ocultar senha */
.show-password {
  position: absolute;
  top: 245px; /* Ajuste a posição vertical da imagem */
  right: 45px; /* Ajuste a posição horizontal da imagem */
  cursor: pointer;
}

.show-password img {
  width: 25px; /* Ajuste o tamanho da imagem */
  height: 17px; /* Ajuste o tamanho da imagem */
}

/* Estilizar a label */
.label {
  text-align: center; /* Centralizar o texto */
  margin-top: 30px; /* Espaçamento superior */
  font-size: 12px; /* Tamanho da fonte */
  color: #484848; /* Cor do texto */
}


/********************* EFEITO NO BOTÃO ENTRAR *******************/

/* Efeito em cima */
.login-box a span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ddd);
  animation: btn-anim1 1s linear infinite;
}

/* Efeito em cima 2 */
@keyframes btn-anim1 {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* Efeito na direita */
.login-box a span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ddd);
  animation: btn-anim2 1s linear infinite;
  animation-delay: .25s
}

/* Efeito na direita 2 */
@keyframes btn-anim2 {
  0% {
    top: -100x;
  }
  50%,
  100% {
    top: 100%;
  }
}

/* Efeito embaixo */
.login-box a span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #ddd);
  animation: btn-anim3 1s linear infinite;
}

/* Efeito embaixo 2 */
@keyframes btn-anim3 {
  0% {
    right: -100%;
  }
  50%,
  100% {
    right: 100%;
  }
}

/* Efeito na direita */
.login-box a span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #ddd);
  animation: btn-anim4 1s linear infinite;
  animation-delay: .75s
}

/* Efeito na direita 2*/
@keyframes btn-anim4 {
  0% {
    bottom: -100%;
  }
  50%,
  100% {
    bottom: 100%;
  }
}

/********************* FIM EFEITO NO BOTÃO ENTRAR *******************/
