body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('background.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
}

.logo {
  width: 100%;
  max-width: 700px;
    align-items: center;
  height: auto;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  max-width: 300px;
  margin-top: -120px; /* 👈 sobe os campos */
}

input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box; /* 👈 aqui também */
}


input::placeholder {
  color: #888;
}

button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box; /* 👈 garante que padding não ultrapasse a largura */
  border: none;
  border-radius: 8px;
  background-color: #00a8e8;
  color: white;
  font-size: 18px;
  cursor: pointer;
}



button:hover {
  background-color: #007bb5;
}

.error-msg {
  color: red;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .logo {
    max-width: 300px;
    margin-bottom: 16px;
  }

  form {
    width: 90%;
    margin-top: -80px; /* Menos exagerado pra telas pequenas */
  }

  input, button {
    font-size: 16px;
    padding: 10px;
  }

  button {
    width: 100%;
  }
}

.logo {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* Estilo padrão para o formulário */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  max-width: 300px;
  margin-top: -100px;
}

/* Responsivo para celular */
@media (max-width: 768px) {
  .logo {
    width: 150vw; /* aumenta em ~30% */
    max-width: none;
    margin-bottom: 30px;
    margin-left: -10vw; /* centraliza melhor */
  }

  form {
    margin-top: -40px;
  }
}

/* Responsivo para desktop maior */
@media (min-width: 1024px) {
  .logo {
    max-width: 600px;
    margin-bottom: 60px;
    margin-left: -40px;      /* traz um pouco pra esquerda */
  }

  form {
    margin-top: -100px;
  }
}
