html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.login{
  position: relative;
  border: 2px solid black;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-image: url("https://images.pexels.com/photos/5087536/pexels-photo-5087536.jpeg?auto=compress&cs=tinysrgb&h=800");
  color: white;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0px 0px 20px rgba(0,0,0.85);
}

.login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  border-radius: 20px;
}

.login * {
  position: relative;
  z-index: 1;
}

form{
 backdrop-filter: brightness(85%);
 box-sizing: border-box;
 padding:40px;
 max-width: 400px;
 width: 90%;
 display: flex;
 flex-direction: column;
 gap: 5px;
 margin: auto;
}

h1{
 font-family: 'Times New Roman', Times, serif;
 font-size: 50px;
 font-weight: bold;
 text-align: center;
 color: ghostwhite;
}

label{
  text-transform: uppercase;
  text-shadow:  rgba(0,0,0,0.85);
  font-style: bold;
}

input{
  padding: 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
}

#message, #welcome {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-size: 40px;
  color: lightgrey;
  text-align: center;
  margin: 10px;
  
}
  
button{
  margin-top: 10px;
  padding: 10px;
  border-radius: 20px;
  font-size: 25px;
  font-weight: bold;
  color: white;
  text-align: center;
  background-color: darkgrey;
}

button:hover{
  background-color: navajowhite;
  cursor: pointer;
}

@media (min-width: 600px) and (max-width: 1024px) {
  .login{
    flex-direction: column;
    padding: 20px;
  }
  form {
    padding: 30px;
    margin: 0 auto;
    max-width: 90%;
  }
  
  h1{
    font-size: 36px;
  }
}
