/* Ajuste universal para box-sizing */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--white, #fff) 0%, var(--off-white, #f9f9f9) 100%);
  font-family: 'Work Sans', Arial, sans-serif;
  margin: 0;
}

main {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Contenedor principal del registro */
.register-container {
  width: 100%;
  max-width: 460px;
  margin: 0;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px 0 rgba(34, 139, 34, 0.12), 0 1px 4px 0 rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
  font-family: 'Work Sans', Arial, sans-serif;
  animation: zoomIn 1.2s cubic-bezier(.4,0,.2,1);
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.register-container h2 {
  text-align: center;
  color: #388e3c;
  margin-bottom: 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-content: center;
}
.register-container h2 i {
  font-size: 1em;
}

.input-group {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  background: #f6fef7;
  border-radius: 8px;
  border: 1.5px solid #a5d6a7;
  margin-bottom: 1rem;
  padding: 0.1rem 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group:focus-within {
  border-color: #388e3c;
  box-shadow: 0 0 6px #a5d6a7;
}
.input-icon {
  color: #4CAF50;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  min-width: 1rem;
  text-align: center;
}
.input-group input,
.input-group select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 0.7rem 0.2rem;
  width: 100%;
  font-family: 'Work Sans', Arial, sans-serif;
  color: #333;
}
.input-group input::placeholder {
  color: #a5d6a7;
  opacity: 1;
  font-weight: 400;
}
.input-group select {
  color: #333;
  font-weight: 500;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 1.6rem auto 0 auto;
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(76,175,80,0.08);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.18s;
  font-family: 'Work Sans', Arial, sans-serif;
  letter-spacing: 0.3px;
  background: var(--primary-green, #4CAF50);
  color: #fff;
}
.btn-primary:hover {
  background: var(--dark-green, #388E3C);
  color: #fff;
  box-shadow: 0 6px 18px rgba(76,175,80,0.18);
  transform: translateY(-2px) scale(1.04);
}
.btn:active {
  animation: btnPop 0.18s cubic-bezier(.4,0,.2,1);
}
@keyframes btnPop {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.register-container p {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.register-container p a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.register-container p a:hover {
  color: #388e3c;
    text-decoration: underline;
}

/* Mensajes de alerta para registro */
.alert {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem auto;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(34, 139, 34, 0.05);
}
.alert-danger {
  background: #ffebee;
  color: #c62828;
  border: 1.5px solid #e57373;
}
.alert-warning {
  background: #fffde7;
  color: #f9a825;
  border: 1.5px solid #ffe082;
}
.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1.5px solid #90caf9;
}
.alert-success {
  background: #e8f5e9;
  color: #388e3c;
  border: 1.5px solid #a5d6a7;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .register-container {
    margin: 15px auto;
    padding: 1.5rem 1rem 1.2rem 1rem;
    max-width: 90%;
  }
  
  .register-container h2 {
    font-size: 1.2rem;
    gap: 0.2rem;
    margin-bottom: 1.6rem;
  }
  
  .register-container h2 i {
    font-size: 0.9em;
  }
  
  .input-group {
    max-width: 100%;
    padding: 0.1rem 0.6rem;
    margin-bottom: 0.8rem;
  }
  
  .input-group input,
  .input-group select {
    font-size: 0.9rem;
    padding: 0.6rem 0.2rem;
  }
  
  .input-icon {
    font-size: 0.8rem;
    margin-right: 0.4rem;
  }
  
  .btn {
    font-size: 1rem;
    padding: 0.8rem 0;
    max-width: 100%;
    margin-top: 1.2rem;
  }
  
  .register-label {
    font-size: 0.85rem;
    max-width: 100%;
  }
  
  .alert {
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.7rem 0.8rem;
  }
  
  .register-container p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .register-container {
    padding: 1.2rem 0.8rem 1rem 0.8rem;
  }
  
  .register-container h2 {
    font-size: 1.1rem;
  }
}

/* Animación para el contenedor al hacer hover (opcional, sutil) */
.register-container:hover {
  box-shadow: 0 6px 24px 0 rgba(76,175,80,0.18), 0 2px 8px 0 rgba(0,0,0,0.13);
  transition: box-shadow 0.3s;
}

.register-label {
  display: block;
  margin-bottom: 0.2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 320px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  font-family: 'Work Sans', Arial, sans-serif;
}

.btn i {
  margin-left: 0.8rem;
}