@import url(https://fonts.googleapis.com/css?family=Roboto:300);
@font-face {
  font-family: 'headerFont';
  src: url('Jamesoon-Regular.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
}
.form {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto 50px;
  text-align: center;
  padding: clamp(20px, 3vh, 45px);
}
.input-container {
  position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}
.icon {
  width: 63px;
  height: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1f1f1f;
  margin: 0 0 15px;
}

.icon img {
  width: 20px;
  height: 20px;
}

.form input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #3b3b3b;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
}
.form button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: #ff3300;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
}
.form button:hover,.form button:active,.form button:focus {
  background: #e62e00;
}
.form .message {
  margin: 15px 0 0;
  color: #b3b3b3;
  font-size: 12px;
}
.form .message a {
  color: #e62e00;
  text-decoration: none;
}
.form .register-form {
  display: none;
}
.container {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0 auto;
}
.container:before, .container:after {
  content: "";
  display: block;
  clear: both;
}
.container .info {
  margin: 50px auto;
  text-align: center;
}
.container .info h1 {
  margin: 0 0 15px;
  padding: 0;
  font-size: 36px;
  font-weight: 300;
  color: #1a1a1a;
}
.container .info span {
  color: #4d4d4d;
  font-size: 12px;
}
.container .info span a {
  color: #000000;
  text-decoration: none;
}
.container .info span .fa {
  color: #EF3B3A;
}
body {
  background-image: url('https://wipsites.com.br/imagens/banners/segmentos/bg-barbearia.jpg');
  background-size: cover;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;      
}

.logo {
  width: 700px;
  height: 700px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  margin-top: 0;
  top: min(10vh, 10px); /* Adjusted to move logo higher */
  max-height: 70vh;
  object-fit: contain;
}

.header {
  font-family: 'headerFont';
  color: #ff3300;
  font-size: 45px;
  font-weight: 300;
  margin: 0 0 -50px;
  text-align: center;
}

.error-message {
  color: red; /* Cor vermelha para a mensagem de erro */
  font-size: 12px;
  position: absolute;
  display: block;
  margin-top: 60px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #ff3300; /* cor laranja */
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Add this at the end of your CSS file */
@keyframes slideFromLeft {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Apply animation to all elements */
  .container, 
  .login-page,
  .form,
  .input-container,
  .message,
  button,
  input {
    animation: slideFromLeft 2s ease-out;
  }

/* Desktop screens */
@media screen and (min-width: 1024px) {
  .container {
      max-height: 100vh;
  }
  
  .form {
      margin-top: max(45vh, 400px);
  }
}

/* Tablets */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .logo {
      width: 45vw;
      top: 0;
  }
  
  .form {
      margin-top: 40vh;
  }
}

/* Mobile devices */
@media screen and (max-width: 767px) {
  body {
      overflow-y: auto;
      background-color: linear-gradient(180deg, #383838, #000000);
  }
  
  .logo {
      width: 100vw;
      position: relative;
      top: 10;
  }
  
  .login-page {
      padding: 20px;
      height: auto;
  }
  
  .form {
      margin-top: 20px;
      position: static;
  }
  
  .input-container {
      flex-direction: row;
      margin-bottom: 10px;
  }
}

/* Height-based adjustments */
@media screen and (max-height: 700px) and (min-width: 1024px) {
  .logo {
      width: 40vw;
      top: -2vh;
  }
  
  .form {
      margin-top: 35vh;
  }
}