#inicio {
  background-color: black;
}

html,
body {
  margin: 0px;
  padding: 0px;
  height: 100%;
}

#login {
  background-image: url("./img/fundo_login.png"); /* Substitua pelo caminho correto */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  margin: 0px;
  font-family: sans-serif;
}

form {
  position: relative;
  width: 100%;
  height: 100%;
}

label {
  position: absolute;
  font-weight: bold;
  color: white;
}

#label_usuario {
  right: 550px;
  top: 330px;
}

#label_senha {
  right: 550px;
  top: 380px;
}

input[type="text"],
input[type="password"] {
  position: absolute;
  width: 300px;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #7beb99; /* verde claro */
  border-radius: 12px;
  background-color: transparent;
  color: white;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

/* Quando o campo estiver focado */
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #9fffaf;
}

input[type="submit"] {
  position: absolute;
  font-size: 20px;
  right: 350px;
  top: 413px;
  padding: 7px;
}

#input_usuario {
  right: 245px;
  top: 313px;
}

#input_senha {
  right: 245px;
  top: 363px;
}

@media (max-width: 767px) {

  #login {
  background-position: 83% center; /* 0% é totalmente à esquerda, 50% é normal */
}


  form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    gap: 15px;
  }

  label,
  input[type="text"],
  input[type="password"],
  input[type="submit"] {
    position: static; /* remove o absolute */
    width: 80%;       /* ocupa grande parte da tela */
    max-width: 300px; /* limite de tamanho */
    text-align: left; /* label alinha à esquerda */
  }

  input[type="submit"] {
    text-align: center;
  }

}

