* {
  box-sizing: border-box;
}

:root {
  --color-muted: rgb(255 255 255 / 38%);
}

body {
  display: grid;
  place-items: center;
  margin: 0;
  height: 100vh;
  background-image: url("../img/fondo.jpg");

}

@media (width >= 420px) {
  body {
    padding: 0;
  }

  .login {
    width: 60%;
  }
}

.login {
  position: fixed;
  z-index: 3;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 90%;
  padding: 70px 30px 40px;
  border-radius: 22px;
  background: rgba(67, 70, 109, 0.5);
  backdrop-filter: blur(20px);
  text-align: center;
}

@media (width >= 420px) {
  .login {
    width: 380px;
  }
}

.avatar > img {
  width: 150px;
  height: 70px;
  object-fit: cover;

}

.login > h2 {
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 4px;
}

.login > h3 {
  color: var(--color-muted);
  margin: 0 0 30px;
  font-weight: 500;
  font-size: 16px;
}

.login-form {
  display: grid;
  gap: 16px;
  place-items: center;
  width: 100%;
  margin: 0;
}

.textbox {
  width: 100%;
  position: relative;
}

.textbox span {
  position: absolute;
  top: 50%;
  left: 16px;
  translate: 0 -50%;
  color: var(--color-muted);
}

.login-form input,
.login-form button {
  width: 100%;
  height: 60px;
  outline: none;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  border-radius: 8px;
}

.login-form input {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  font-size: 18px;
  padding: 0 20px 0 50px;
  color: inherit;
}

.login-form input::placeholder {
  color: var(--color-muted);
}

.login-form input:focus {
  border-color: #071bb8;
}

.login-form input:focus ~ span {
  color: #1711bf;
}

.login-form button {
  cursor: pointer;
  background: #061797;
  color: #f9f9f9;
  border: 0;
  font-weight: 600;
  letter-spacing: 2px;
}

.login-form a {
  color: #e6c76c;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
}
.error-message {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ff4d4d;
  background-color: #ffcccc;
  color: #b30000;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

