/* Login Enhanced Styles */

/* Configuración de Tailwind personalizada */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS personalizadas */
:root {
  --primary-emerald: #059669;
  --primary-green: #16a34a;
  --primary-teal: #0d9488;
}

/* Fondo animado con gradiente y formas más dinámico */
.animated-bg {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 25%, #a7f3d0 50%, #6ee7b7 75%, #34d399 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  z-index: 1;
}

/* Elementos flotantes del fondo más visibles */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
  animation: floatUpDown 6s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 8%;
  top: 75%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.floating-circle:nth-child(2) {
  width: 120px;
  height: 120px;
  left: 85%;
  top: 15%;
  animation-delay: 1s;
  animation-duration: 12s;
}

.floating-circle:nth-child(3) {
  width: 60px;
  height: 60px;
  left: 75%;
  top: 65%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.floating-circle:nth-child(4) {
  width: 140px;
  height: 140px;
  left: 3%;
  top: 25%;
  animation-delay: 3s;
  animation-duration: 15s;
}

.floating-circle:nth-child(5) {
  width: 70px;
  height: 70px;
  left: 45%;
  top: 8%;
  animation-delay: 4s;
  animation-duration: 9s;
}

.floating-circle:nth-child(6) {
  width: 90px;
  height: 90px;
  left: 20%;
  top: 65%;
  animation-delay: 5s;
  animation-duration: 11s;
}

/* Solo círculos flotantes - eliminadas las formas cuadradas */
.floating-circle:nth-child(7) {
  width: 110px;
  height: 110px;
  left: 60%;
  top: 30%;
  animation-delay: 7s;
  animation-duration: 13s;
}

.floating-circle:nth-child(8) {
  width: 55px;
  height: 55px;
  left: 35%;
  top: 85%;
  animation-delay: 8s;
  animation-duration: 10s;
}

/* Círculos decorativos del panel izquierdo */
.panel-decorative-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.panel-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: panelCircleMove 15s linear infinite;
}

.panel-circle-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.panel-circle-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 80%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.panel-circle-3 {
  width: 40px;
  height: 40px;
  top: 30%;
  left: 70%;
  animation-delay: 8s;
  animation-duration: 16s;
}

.panel-circle-4 {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 20%;
  animation-delay: 12s;
  animation-duration: 22s;
}

.panel-circle-5 {
  width: 50px;
  height: 50px;
  top: 45%;
  left: 5%;
  animation-delay: 16s;
  animation-duration: 14s;
}

/* Animaciones */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-30px) translateX(10px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-40px) translateX(-5px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-20px) translateX(-10px);
    opacity: 0.6;
  }
}

@keyframes panelCircleMove {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(100px, -50px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50px, -100px) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translate(-100px, 50px) scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Clases de animación simplificadas */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-pulse-custom {
  animation: pulse 2s infinite;
}

/* Efectos del login card más compacto */
.login-card {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
  max-width: 900px !important;
  width: 90% !important;
}

.login-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Efectos de input mejorados con iconos visibles */
.input-enhanced {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 14px;
  position: relative;
}

.input-enhanced:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Iconos de input más visibles */
.input-icon {
  color: #6b7280 !important;
  font-size: 16px !important;
  z-index: 5;
  position: relative;
}

.input-icon:hover {
  color: #059669 !important;
}

/* Botón sin movimiento */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-enhanced:hover::before {
  left: 100%;
}

.btn-enhanced:hover {
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Logo animado */
.logo-container {
  position: relative;
  overflow: hidden;
}

.logo-icon {
  transition: all 0.3s ease;
}

.logo-container:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .login-card {
    margin: 1rem;
    backdrop-filter: blur(15px);
  }
  
  .particle {
    display: none;
  }
}

/* Efectos de carga */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mensajes mejorados */
.message-enhanced {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 0.3s ease-out;
}

/* Efectos de texto */
.text-gradient {
  background: linear-gradient(135deg, #059669, #16a34a, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sombras personalizadas */
.shadow-enhanced {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shadow-enhanced-hover:hover {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}