html,
body {
  font-size: 62.5%;
  margin: 0;
  padding: 0;
}

button,
input {
  border: none;
  outline: none;
}

body {
  background-image: url("./res/sc.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: Arial, sans-serif;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
  margin-top: 50vh;
  transform: translateY(-50%);
  border-radius: 1rem;
}

.logo {
  max-width: 15rem;
  margin-bottom: 2rem;
}

.container h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.container input[type="text"],
.container input[type="password"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: .3rem;
  box-sizing: border-box;
}

.container input[type="text"],
.container input[type="password"] {
  border: .1rem solid transparent;
}

.container input[type="text"]:focus,
.container input[type="password"]:focus {
  border: .1rem solid #0051a9e8;
}

.container input[type="submit"] {
  width: 100%;
  padding: 1rem;
  background-color: #0051a9e8;
  color: white;
  border: none;
  border-radius: .3rem;
  cursor: pointer;
  font-size: 1.6rem;
  transition: .5s;
}

.container input[type="submit"]:hover {
  opacity: 0.8;
}

#login-message {
  position: fixed;
  top: 10%;
  left: 50%;
  font-size: 1.6rem;
  transform: translate(-50%, -50%);
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: .5rem;
  max-width: 30rem;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#login-message.show {
  opacity: 1;
}
#message{
  font-size: 14px;
}

@media screen and (max-width: 600px) {
  .container {
    width: 90%;
    max-width: 40rem;
  }
}

@media screen and (max-width: 1024px) {
  body {
    height: 50vh;
  }
  .container {
    width: 60%;
    max-width: 20rem;
  }
  .logo {
    max-width: 10rem;
  }
}

@media screen and (min-width: 1024px) {
  body {
    height: 50vh;
  }
}

