/* Login.module.css */
/* Base styles - dark theme by default */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.show {
  opacity: 1;
  visibility: visible;
}

.hide {
  opacity: 0;
  visibility: hidden;
}

/* Login container - Dark theme by default */
.loginContainer {
  width: 90%;
  max-width: 900px;
  height: auto;
  max-height: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: slideIn 0.4s ease forwards;
  background: #080808;
  color: #FFFFFF;
  position: relative;
  transition: all 0.5s ease;
}

/* Theme variations */
:global(.light-theme) .loginContainer {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #1b1b24;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Background effects */
.backgroundEffects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Audio waves */
.audioWaves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.animationActive .audioWaves {
  opacity: 0.1;
}

.wave {
  position: absolute;
  background: linear-gradient(90deg, #006aff, transparent);
  width: 250%;
  height: 300px;
  bottom: -200px;
  left: -75%;
  opacity: 0;
  border-radius: 40%;
  animation: loginWave 15s infinite linear;
  transform-origin: center bottom;
}

:global(.light-theme) .wave {
  background: linear-gradient(90deg, #006aff, transparent);
}

@keyframes loginWave {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.animationActive .wave {
  opacity: 0.1;
}

/* Particles container */
.particlesContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease-in;
}

.animationActive .particlesContainer {
  opacity: 0.5;
}

.particle {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  background-color: #4a9bff;
  border-radius: 50%;
  top: var(--y, 50%);
  left: var(--x, 50%);
  opacity: 0.6;
  filter: blur(1px);
  animation: loginFloat var(--speed, 8s) infinite ease-in-out;
  box-shadow: 0 0 10px rgba(74, 155, 255, 0.6);
}

@keyframes loginFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) translateX(20px);
    opacity: 0;
  }
}

.gradientOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom, rgba(74, 155, 255, 0.05) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Logo container */
.logoContainer {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 10;
}

.logoImage {
  object-fit: contain;
  border-radius: 15px;
  position: relative;
  z-index: 11;
}

:global(.light-theme) .logoImage {
  filter: brightness(1.1);
}

.logoGlow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: #006aff;
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.animationActive .logoGlow {
  opacity: 0.4;
  animation: loginGlowPulse 3s infinite alternate ease-in-out;
}

@keyframes loginGlowPulse {
  0% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.3); }
}

/* Login Split Layout */
.loginSplit {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Image side styling */
.loginImage {
  position: relative;
  width: 45%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bgImage {
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.imageCover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10%;
  background: linear-gradient(to bottom, #0000001e, #004bb3);
  z-index: 2;
  text-align: center;
}

:global(.light-theme) .imageCover {
  background: linear-gradient(to bottom, #0000001e, #004bb3);
}

.welcomeText {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1vw 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

:global(.light-theme) .welcomeText {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcomeSubtext {
  color: #ffffff;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  line-height: 1.5;
  max-width: 80%;
}

:global(.light-theme) .welcomeSubtext {
  color: #ffffff;
}

/* Notes decoration */
.notesDecoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.musicNote {
  position: absolute;
  bottom: -20px;
  left: var(--position, 50%);
  color: #006aff;
  font-size: var(--size, 20px);
  opacity: var(--opacity, 0.3);
  animation: loginFloatNote var(--duration, 7s) infinite ease-in-out;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 0 5px rgba(74, 155, 255, 0.6));
}

@keyframes loginFloatNote {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--opacity, 0.3);
  }
  90% {
    opacity: var(--opacity, 0.3);
  }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

/* Form side styling */
.loginContent {
  width: 55%;
  padding: 5%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #006aff transparent;
  position: relative;
  z-index: 3;
}

.loginContent::-webkit-scrollbar {
  width: 6px;
}

.loginContent::-webkit-scrollbar-thumb {
  background-color: #006aff;
  border-radius: 6px;
}

.loginContent::-webkit-scrollbar-track {
  background: transparent;
}

.loginHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8%;
  padding-bottom: 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

:global(.light-theme) .loginHeader {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.loginHeader h2 {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
}

:global(.light-theme) .loginHeader h2 {
  color: #1b1b24;
}

/* Buttons and interactive elements */
.closeButton {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.closeButton:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.errorMessage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background-color: rgba(255, 77, 106, 0.1);
  border-left: 3px solid #ff4d6a;
  border-radius: 4px;
  color: #ff4d6a;
  font-size: 14px;
}

:global(.light-theme) .errorMessage {
  background-color: rgba(255, 77, 106, 0.05);
}

/* Form elements */
.loginForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inputGroup {
  margin-bottom: 5px;
}

.inputGroup label {
  display: block;
  color: #FFFFFF;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

:global(.light-theme) .inputGroup label {
  color: #1b1b24;
}

.inputWithIcon {
  position: relative;
  display: flex;
  align-items: center;
}

.inputIcon {
  position: absolute;
  left: 12px;
  color: #B3B3B3;
  pointer-events: none;
}

:global(.light-theme) .inputIcon {
  color: #777777;
}

.inputWithIcon input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 12px 12px 40px;
  color: #FFFFFF;
  font-size: 16px;
  transition: all 0.3s ease;
}

:global(.light-theme) .inputWithIcon input {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1b1b24;
}

.inputWithIcon input:focus {
  outline: none;
  border-color: #006aff;
  box-shadow: 0 0 0 2px rgba(74, 155, 255, 0.2);
}

.inputWithIcon input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.3);
}

:global(.light-theme) .inputWithIcon input:hover:not(:focus) {
  border-color: rgba(0, 0, 0, 0.2);
}

.inputWithIcon input::placeholder {
  color: #B3B3B3;
  opacity: 0.7;
}

:global(.light-theme) .inputWithIcon input::placeholder {
  color: #777777;
  opacity: 0.7;
}

.togglePassword {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #B3B3B3;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

:global(.light-theme) .togglePassword {
  color: #777777;
}

.togglePassword:hover {
  color: #FFFFFF;
}

:global(.light-theme) .togglePassword:hover {
  color: #1b1b24;
}

.togglePassword:focus {
  outline: 2px solid rgba(74, 155, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Login options */
.loginOptions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

/* Checkbox styling */
.rememberMe {
  display: flex;
  align-items: center;
}

.rememberMe input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

:global(.light-theme) .rememberMe input[type="checkbox"] {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.rememberMe input[type="checkbox"]:checked {
  background-color: #006aff;
  border-color: #006aff;
}

.rememberMe input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rememberMe input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(74, 155, 255, 0.5);
}

.rememberMe label {
  color: #B3B3B3;
  font-size: 14px;
  cursor: pointer;
}

:global(.light-theme) .rememberMe label {
  color: #555555;
}

.forgotPassword {
  background: none;
  border: none;
  color: #006aff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.forgotPassword:hover {
  text-decoration: underline;
  color: #0055cc;
}

.forgotPassword:focus {
  outline: 2px solid rgba(74, 155, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Primary action button - continuando */
.loginButton {
  width: 100%;
  background-color: #006aff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.loginButton:hover:not(:disabled) {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 106, 255, 0.5);
}

:global(.light-theme) .loginButton:hover:not(:disabled) {
  box-shadow: 0 8px 15px rgba(0, 106, 255, 0.3);
}

.loginButton:active:not(:disabled) {
  transform: translateY(0);
}

.loginButton:focus {
  outline: 2px solid rgba(74, 155, 255, 0.5);
  outline-offset: 2px;
}

.loginButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loginButton:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.loginButton:hover:before {
  animation: loginButtonGlow 1.5s infinite;
}

@keyframes loginButtonGlow {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  position: relative;
  animation: spinner-rotate 1.5s linear infinite;
}

.spinnerBlade {
  position: absolute;
  top: 11px;
  left: 0;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background-color: white;
  transform-origin: 12px 1px;
}

.spinnerBlade:nth-child(1) { transform: rotate(0deg); opacity: 0.9; }
.spinnerBlade:nth-child(2) { transform: rotate(30deg); opacity: 0.8; }
.spinnerBlade:nth-child(3) { transform: rotate(60deg); opacity: 0.7; }
.spinnerBlade:nth-child(4) { transform: rotate(90deg); opacity: 0.6; }
.spinnerBlade:nth-child(5) { transform: rotate(120deg); opacity: 0.5; }
.spinnerBlade:nth-child(6) { transform: rotate(150deg); opacity: 0.4; }
.spinnerBlade:nth-child(7) { transform: rotate(180deg); opacity: 0.3; }
.spinnerBlade:nth-child(8) { transform: rotate(210deg); opacity: 0.2; }
.spinnerBlade:nth-child(9) { transform: rotate(240deg); opacity: 0.3; }
.spinnerBlade:nth-child(10) { transform: rotate(270deg); opacity: 0.4; }
.spinnerBlade:nth-child(11) { transform: rotate(300deg); opacity: 0.5; }
.spinnerBlade:nth-child(12) { transform: rotate(330deg); opacity: 0.6; }

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Divider and social login */
.divider {
  position: relative;
  margin: 5% 0;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

:global(.light-theme) .divider::before {
  background-color: rgba(0, 0, 0, 0.1);
}

.divider span {
  position: relative;
  background-color: #006aff;
  padding: 0 16px;
  color: #ffffff;
  font-size: 14px;
  border-radius: 8px;
}

:global(.light-theme) .divider span {
  background-color: #ffffff;
  color: #777777;
}

.socialLogin {
  display: flex;
  gap: 16px;
  margin-bottom: 5%;
}

.socialButton {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

:global(.light-theme) .socialButton {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1b1b24;
}

.socialButton:hover {
  background-color: #2a2a36;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

:global(.light-theme) .socialButton:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

.socialButton:active {
  transform: translateY(0);
}

.socialButton:focus {
  outline: 2px solid rgba(74, 155, 255, 0.5);
  outline-offset: 2px;
}

.googleButton:hover {
  background: #DB4437;
  color: white;
  border-color: #DB4437;
}

.facebookButton:hover {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

/* Sign up prompt */
.signupPrompt {
  margin: 5% 0 0;
  text-align: center;
  color: #B3B3B3;
  font-size: 14px;
}

:global(.light-theme) .signupPrompt {
  color: #555555;
}

.signupLink {
  background: none;
  border: none;
  color: #006aff;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.signupLink:hover {
  text-decoration: underline;
  color: #0055cc;
}

.signupLink:focus {
  outline: 2px solid rgba(74, 155, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Login border glow effect */
.loginContainer:before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, #006aff, transparent, #006aff);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.animationActive .loginContainer:before {
  opacity: 0.5;
  animation: loginRotateBorder 10s linear infinite;
}

@keyframes loginRotateBorder {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 200%;
  }
}

/* Shimmer effects */
.loginContainer:after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.03), 
    transparent
  );
  z-index: 3;
  pointer-events: none;
  animation: loginShimmer 10s infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.animationActive.loginContainer:after {
  opacity: 1;
}

@keyframes loginShimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(200%); }
}

/* Responsive styles - Optimizaciones para móviles */
@media (max-width: 900px) {
  .loginContainer {
    width: 95%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
  }
  
  .loginSplit {
    flex-direction: column;
  }
  
  .loginImage {
    width: 100%;
    height: 150px; /* Reducción de altura para móviles */
  }
  
  .loginContent {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px; /* Padding consistente */
  }
  
  .welcomeText {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  
  .welcomeSubtext {
    font-size: clamp(0.875rem, 3vw, 1rem);
  }
  
  .logoContainer {
    width: 60px;
    height: 60px;
  }
  
  .logoImage {
    width: 60px;
    height: 60px;
  }
  
  /* Mejoras táctiles para móviles */
  .togglePassword {
    padding: 8px; /* Área táctil más grande */
    font-size: 20px; /* Icono más grande */
  }
  
  .closeButton {
    padding: 8px;
    top: 10px;
    right: 10px;
  }
  
  .inputWithIcon input {
    padding: 14px 14px 14px 40px; /* Campos de entrada más altos */
  }
}

@media (max-width: 768px) {
  /* Optimizaciones específicas para la dimensión solicitada */
  .loginOptions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .rememberMe {
    margin-bottom: 0;
  }
  
/* Continuación de Login.module.css */

.forgotPassword {
    align-self: flex-start;
    margin-left: 26px; /* Alinear con el checkbox */
    font-size: 15px; /* Texto más grande para táctil */
  }
  
  .loginButton {
    padding: 16px; /* Botón más alto para mejor área táctil */
    font-size: 16px;
    margin-top: 10px;
  }
  
  .socialLogin {
    flex-direction: column; /* Botones sociales apilados */
    gap: 12px;
  }
  
  .socialButton {
    padding: 14px; /* Botones más altos */
    font-size: 16px;
  }
  
  /* Ajustes a los espaciados y el ritmo visual */
  .loginForm {
    gap: 16px;
  }
  
  .divider {
    margin: 20px 0;
  }
  
  .inputGroup {
    margin-bottom: 0;
  }
  
  .inputGroup label {
    font-size: 15px;
    margin-bottom: 6px;
  }
  
  /* Facilitar la visualización de los errores */
  .errorMessage {
    padding: 15px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .loginContainer {
    max-height: 100vh;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .overlay {
    padding: 0;
  }
  
  .loginHeader {
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  
  .loginImage {
    height: 130px; /* Aún más reducido para pantallas muy pequeñas */
  }
  
  .welcomeText {
    font-size: 1.25rem;
  }
  
  .welcomeSubtext {
    font-size: 0.9rem;
    max-width: 95%;
  }
  
  .notesDecoration {
    display: none; /* Eliminar decoraciones en móviles para mejorar rendimiento */
  }
  
  .closeButton {
    top: 10px;
    right: 10px;
    font-size: 1.75rem;
  }
  
  .logoContainer {
    margin-top: 20px;
    width: 50px;
    height: 50px;
  }
  
  .logoImage {
    width: 50px;
    height: 50px;
  }
  
  /* Mejorar la experiencia táctil en pantallas muy pequeñas */
  .rememberMe input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
  
  .rememberMe input[type="checkbox"]:checked::after {
    top: 4px;
    left: 8px;
    width: 5px;
    height: 10px;
  }
  
  .rememberMe label {
    font-size: 15px;
  }
}

/* Small mobile devices */
@media (max-width: 380px) {
  .logoContainer {
    width: 45px;
    height: 45px;
  }
  
  .logoImage {
    width: 45px;
    height: 45px;
  }
  
  .welcomeText {
    font-size: 1.1rem;
    margin-top: 5px;
  }
  
  .welcomeSubtext {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }
  
  .loginForm {
    gap: 12px;
  }
  
  .inputWithIcon input {
    font-size: 15px;
    padding: 12px 12px 12px 36px;
  }
  
  .inputIcon {
    font-size: 0.9rem;
  }
  
  .loginContent {
    padding: 15px 12px;
  }
  
  /* Optimizar espacios */
  .loginHeader {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .loginHeader h2 {
    font-size: 1.3rem;
  }
  
  /* Simplificar interacciones */
  .particlesContainer {
    display: none; /* Eliminar partículas en dispositivos muy pequeños */
  }
  
  .audioWaves {
    display: none; /* Eliminar ondas en dispositivos muy pequeños */
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .loginContainer {
    height: 98vh;
    max-height: none;
  }
  
  .loginSplit {
    flex-direction: row;
  }
  
  .loginImage {
    width: 35%;
    height: auto;
  }
  
  .loginContent {
    width: 65%;
  }
  
  .welcomeText {
    font-size: 1.2rem;
  }
  
  .welcomeSubtext {
    font-size: 0.8rem;
  }
  
  .loginHeader h2 {
    font-size: 1.2rem;
  }
  
  .logoContainer {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  
  .logoImage {
    width: 40px;
    height: 40px;
  }
  
  .loginForm {
    gap: 10px;
  }
  
  /* Elementos optimizados para pantalla horizontal */
  .loginOptions {
    flex-direction: row;
    margin: 5px 0;
  }
  
  .socialLogin {
    flex-direction: row;
  }
  
  /* Optimizar altura de elementos */
  .loginButton, 
  .socialButton,
  .inputWithIcon input {
    padding: 10px;
    min-height: 42px;
  }
}

/* Soporte para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .loginContainer {
    animation: none;
  }
  
  .overlay,
  .loginButton,
  .socialButton,
  .closeButton,
  .togglePassword,
  .inputWithIcon input,
  .rememberMe input[type="checkbox"] {
    transition: none;
  }
  
  .spinner {
    animation-duration: 3s;
  }
  
  .loginButton:hover:not(:disabled),
  .socialButton:hover {
    transform: none;
  }
  
  .wave, .particle, .musicNote, .logoGlow, 
  .loginContainer:before, .loginContainer:after {
    animation: none;
    display: none;
  }
}