@keyframes waveAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(270deg, #a9d6ff, #004e92, #a9d6ff);
  background-size: 600% 600%;
  animation: waveAnimation 20s ease infinite;
  color: #003366;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1rem;
}

.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  width: 320px;
  max-width: 100%;
  text-align: center;
}

.logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
  user-select: none;
  pointer-events: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h2 {
  color: #004e92;
  margin-bottom: 1rem;
  font-weight: 700;
}

label {
  font-weight: 600;
  color: #004e92;
  text-align: left;
}

input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border: 2px solid #004e92;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 6px #0077ccaa;
}

button {
  margin-top: 0.5rem;
  background-color: #004e92;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
  background-color: #0077cc;
}

button:disabled {
  background-color: #8fbce6;
  cursor: not-allowed;
}

#messageRecuperar {
  font-weight: 600;
  min-height: 1.2rem;
  text-align: center;
  margin: 8px 0 0 0;
  color: #b00020; /* Default error color */
}

.info-text {
  font-size: 0.9rem;
  color: #004e92;
  margin-top: 1rem;
}

.info-text a {
  text-decoration: none;
  color: #009aa5;
  font-weight: bold;
}

.info-text a:hover {
  text-decoration: underline;
}

select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border: 2px solid #004e92;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: white;
  color: #003366;
  appearance: none;
}

select:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 6px #0077ccaa;
}

select:disabled {
  background-color: #e0e0e0;
  color: #777;
  cursor: not-allowed;
}


/* Responsive */
@media (max-width: 480px) {
  body {
    background: white;
    animation: none;
    padding: 1rem;
    height: 100vh;
  }

  .container {
    width: 100%;
    max-width: 360px;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
    background: none;
  }

  .logo {
    margin: 0 auto 1rem auto;
    display: block;
    max-width: 100px;
  }

  button {
    font-size: 1rem;
    padding: 0.6rem;
  }

  label {
    font-size: 0.9rem;
  }
}
