/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #433D8B;
  margin: 0;
  padding: 0;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: fadeIn 0.8s ease-in-out;
}

header {
  width: 100%; /* Ocupar el ancho completo */
  background-color: #17153B;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;  /* Posicionar arriba */
  top: 0;
  left: 0;
  animation: slideDown 0.5s ease-out;
}

.logo {
  max-width: 150px;
  height: auto;
}

main {
  margin-top: 100px;  /* Agregar margen superior para compensar el header */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: fadeInUp 1.2s ease-in;
}

.container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
  animation: zoomIn 1.5s ease-out;
}

h1 {
  margin-bottom: 20px;
  color: #2f196b;
  animation: bounceIn 1.5s ease-in-out;
  font-size: 23px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
  animation: slideInRight 1.2s ease-in-out;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #2E236C;
  animation: fadeIn 1.2s ease-in;
}

input {
  width: 90%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  animation: slideUp 1.5s ease-in;
}

button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #2E236C;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  animation: pulse 1.8s ease-in-out;
}

button:hover {
  background-color: #433D8B;
}

#message {
  margin-top: 15px;
  color: #E94560;
  animation: shake 1s ease-in-out;
}

/* Keyframes for animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

@keyframes slideInRight {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}
