@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f5f5;
  font-family: "Roboto", sans-serif;
}

.container {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  animation-name: slide-down;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}
@keyframes slide-down {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.container2 {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  animation: shake 0.5s;
}
@keyframes shake {
  0% { transform: translateX(0); }
  10%, 90% { transform: translateX(-10px); }
  20%, 80% { transform: translateX(10px); }
  30%, 50%, 70% { transform: translateX(-10px); }
  40%, 60% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

h1 {
  font-weight: 400;
  text-align: center;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
}

.input-field {
  position: relative;
  margin-bottom: 20px;
  display: inline-block;
}

input {
  width: 100%;
  padding: 12px;
  border: none;
  border-bottom: 2px solid #ddd;
  font-size: 16px;
  outline: none;
}

label {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: all 0.2s ease-in-out;
}

input:focus + label,
input:not(:placeholder-shown) + label {
  top: 0%;
  font-size: 14px;
  color: #222;
  transform: translateY(-50%);
}

button {
  margin-top: 30px;
  padding: 12px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background-color: #333;
}

input:focus {
  border-bottom: 2px solid #222;
}

input:not(:placeholder-shown) {
  border-bottom: 2px solid #222;
}

input:focus + label {
  color: #222;
  top: -10px;
}

input:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 14px;
}



  .show-password {
	position: absolute;
	background-image: url('img/logo/ojos-cruzados.png');
	background-repeat: no-repeat;
	background-size: 24px 24px;
	display: inline-block;
	height: 24px;
	width: 24px;
	cursor: pointer;

	transform: translateX(-150%);

  }
  
  .show-password.visible {
	background-image: url('img/logo/ver.png');
  }
  #show-password {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY(-50%);
  }
  .login-header {
	display: flex;
	flex-direction: column;
	align-items: center;
  }
  
  .login-header img {
	max-width: 150px;
    margin: 20px;
   border-radius: 50%;
  }
  .login-error {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .login-error {
	background-color: #fcada9;
	color: rgb(255, 0, 0);
	padding: 10px;
	border-radius: 10px;
	text-align: center;
	width: 100%;
  }
  
  

  