body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: #1e1e2f;
  font-family: Arial, sans-serif;
  padding: 20px;
}

form {
  margin-top: -130px;
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  padding: 60px 20px 20px 20px;
  background: #2c2f48;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 8px;
  box-sizing: border-box;
}

.mensagem {
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  z-index: 1;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.sucesso {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.erro {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

label {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 16px;
  color: white;
}

input[type="email"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  padding: 10px;
  font-size: 16px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 90px;
}

button:hover {
  background-color: #0056b3;
}

.voltar {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  margin-bottom: 40px;

}

.voltar a {
  color: gray;
  /*color: #007BFF;*/
  text-decoration: none;

}

.voltar a:hover {
  text-decoration: underline;

}

    @media (max-width: 384px) {
      form {
        padding: 15px;
      }
      input, button {
        font-size: 14px;
      }

    .voltar {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;

}
}

 @media (max-width: 360px) {
      body {
        padding: 5px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 20px;
      }

      form {
        padding: 1.2rem;
        margin: 0 auto;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        height: auto;
        min-height: auto;
      }
      input, button {
        font-size: 14px;
        padding: 0.6rem;
      }

      button {
        width: 100%;
        margin-top: 1rem;
      }

    .voltar {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;

}
}
