/* Animaciones globales */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ⭐ FONDO BASE - Las olas se renderizan en canvas */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #e8f5e9 0%, #f5fdf7 50%, #e0f2e9 100%);
  background-attachment: fixed;
}

/* Canvas para las olas */
.wave-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Patrón de puntos decorativo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(71, 184, 6, 0.05) 2%, transparent 0%),
    radial-gradient(circle at 75px 75px, rgba(92, 214, 10, 0.04) 2%, transparent 0%);
  background-size: 100px 100px;
  background-position: 0 0, 50px 50px;
  z-index: 0;
  pointer-events: none;
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(71, 184, 6, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: scaleIn 0.4s ease-out;
  transition: all 0.3s ease;
  border: 2px solid rgba(71, 184, 6, 0.15);
  position: relative;
  z-index: 1;
}

.form-container:hover {
  box-shadow: 
    0 12px 48px rgba(71, 184, 6, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

h1 {
  background: linear-gradient(135deg, #47b806 0%, #5cd60a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.5s ease-out;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease-out;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  animation: slideInFromLeft 0.5s ease-out;
  background-color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus {
  border-color: #47b806;
  box-shadow: 0 0 0 4px rgba(71, 184, 6, 0.12);
  outline: none;
  transform: translateY(-2px);
  background-color: #ffffff;
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #47b806 0%, #5cd60a 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(71, 184, 6, 0.3);
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:hover {
  background: linear-gradient(135deg, #3a9605 0%, #47b806 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(71, 184, 6, 0.4);
}

button:active {
  transform: translateY(0);
}

p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  animation: fadeIn 0.7s ease-out;
}

a {
  color: #47b806;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #47b806, #5cd60a);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: #3a9605;
}

.error-message {
  color: #d93025;
  font-weight: bold;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease-out;
  padding: 10px;
  background: rgba(217, 48, 37, 0.08);
  border-radius: 8px;
}
