/* Login Responsive Improvements */

/* Mejoras generales de espaciado */
@media (max-width: 1024px) {
  .login-card {
    max-width: 800px !important;
    width: 95% !important;
  }
}

/* Optimizaciones para tablets */
@media (max-width: 768px) {
  .login-card {
    margin: 0.5rem !important;
    min-height: auto !important;
  }
  
  .login-card > div {
    min-height: auto !important;
  }
  
  /* Panel izquierdo más compacto en tablets */
  .login-card .lg\:w-1\/2:first-child {
    padding: 2rem 1.5rem !important;
  }
  
  /* Formulario más ancho en tablets */
  .login-card .lg\:w-1\/2:last-child .max-w-xs {
    max-width: 400px !important;
  }
  
  /* Reducir elementos flotantes */
  .floating-circle {
    opacity: 0.3 !important;
  }
  
  .floating-circle:nth-child(n+5) {
    display: none;
  }
}

/* Optimizaciones para móviles */
@media (max-width: 640px) {
  body {
    padding: 0.5rem !important;
  }
  
  .login-card {
    margin: 0 !important;
    border-radius: 1rem !important;
    width: 100% !important;
    max-width: none !important;
  }
  
  /* Panel izquierdo más compacto */
  .login-card .lg\:w-1\/2:first-child {
    padding: 1.5rem 1rem !important;
    text-align: center;
  }
  
  .login-card .lg\:w-1\/2:first-child h1 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .login-card .lg\:w-1\/2:first-child p {
    font-size: 0.875rem !important;
  }
  
  /* Lista de características más compacta */
  .login-card .lg\:w-1\/2:first-child .space-y-3 {
    gap: 0.5rem !important;
  }
  
  .login-card .lg\:w-1\/2:first-child .space-y-3 span {
    font-size: 0.75rem !important;
  }
  
  /* Panel derecho optimizado */
  .login-card .lg\:w-1\/2:last-child {
    padding: 1.5rem 1rem !important;
  }
  
  .login-card .lg\:w-1\/2:last-child .max-w-xs {
    max-width: none !important;
  }
  
  /* Formulario más espacioso */
  .login-card form .space-y-4 {
    gap: 1rem !important;
  }
  
  /* Inputs más grandes para touch */
  .input-enhanced {
    padding: 0.875rem 2.5rem 0.875rem 2.5rem !important;
    font-size: 1rem !important;
  }
  
  /* Botón más grande */
  .btn-enhanced {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    min-height: 48px;
  }
  
  /* Ocultar elementos flotantes en móviles */
  .floating-elements {
    display: none;
  }
  
  .panel-decorative-circles {
    opacity: 0.3;
  }
  
  .panel-circle {
    display: none;
  }
  
  .panel-circle:nth-child(1),
  .panel-circle:nth-child(2) {
    display: block;
    opacity: 0.2;
  }
}

/* Optimizaciones para móviles muy pequeños */
@media (max-width: 480px) {
  .login-card .lg\:w-1\/2:first-child {
    padding: 1rem 0.75rem !important;
  }
  
  .login-card .lg\:w-1\/2:last-child {
    padding: 1rem 0.75rem !important;
  }
  
  /* Logo más pequeño */
  .logo-container {
    width: 3rem !important;
    height: 3rem !important;
  }
  
  .logo-icon {
    font-size: 1.25rem !important;
  }
  
  /* Título más compacto */
  .login-card .lg\:w-1\/2:first-child h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Ocultar características en móviles muy pequeños */
  .login-card .lg\:w-1\/2:first-child .space-y-3 {
    display: none;
  }
}

/* Mejoras de accesibilidad táctil */
@media (max-width: 768px) {
  /* Área táctil mínima de 44px */
  button, 
  input[type="submit"],
  .btn-enhanced {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Espaciado entre elementos interactivos */
  .login-card form > * + * {
    margin-top: 1rem;
  }
}

/* Optimización de mensajes */
@media (max-width: 640px) {
  .message-enhanced {
    margin: 1rem 0 !important;
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.5rem !important;
  }
}

/* Mejoras de rendimiento para animaciones en móviles */
@media (max-width: 768px) {
  .animated-bg {
    animation-duration: 12s !important;
  }
  
  .floating-circle {
    animation-duration: 8s !important;
  }
  
  /* Reducir blur en móviles para mejor rendimiento */
  .login-card {
    backdrop-filter: blur(10px) !important;
  }
  
  .input-enhanced {
    backdrop-filter: blur(5px) !important;
  }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .login-card {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .login-card .lg\:w-1\/2:first-child {
    padding: 1rem !important;
  }
  
  .login-card .lg\:w-1\/2:first-child h1 {
    font-size: 1.25rem !important;
  }
  
  .login-card .lg\:w-1\/2:first-child .space-y-3 {
    display: none;
  }
}