/* Variables definidas en clases */
.containerVariable {
  --primary-bg: #1b1b24;
  --card-bg: rgba(27, 27, 36, 0.8);
  --primary-text: #ffffff;
  --secondary-text: #b3b3b3;
  --accent-color: #006aff;
  --accent-hover: #7b76e0;
  --hover-bg: #2a2a36;
  --active-indicator: #1ED760;
  --transition-normal: all 0.3s ease;
  --transition-bounce: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(138, 133, 255, 0.5);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.7);
  --error-color: #ff4d6a;
  --success-color: #1ED760;
  --input-bg: rgba(255, 255, 255, 0.05);
}

/* Variables para tema claro */
.containerVariable.light {
  --primary-bg: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.9);
  --primary-text: #1b1b24;
  --secondary-text: #555555;
  --accent-color: #7369df;
  --accent-hover: #5f51d3;
  --hover-bg: #f0f0f7;
  --border-light: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(115, 105, 223, 0.5);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.1);
  --input-bg: rgba(0, 0, 0, 0.03);
}

/* Contenedor principal */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container.light {
  background: linear-gradient(135deg, #f0f2f5 0%, #e0e3ea 100%);
}

/* Tarjeta de recuperación */
.recuperarCard {
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 73, 141, 0.089);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  animation: fadeIn 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recuperarCard.light {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Contenedor del logo */
.logoContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  filter: drop-shadow(0 0 10px #006aff);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Título */
.title {
  color: var(--primary-text);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.title.light {
  color: var(--primary-text);
}

.title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #006aff;
  border-radius: 3px;
}

.title.light::after {
  background-color: #006aff;
}

/* Descripción */
.description {
  color: #b3b3b3;
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.description.light {
  color: #555555;
}

/* Formularios */
.formContainer {
  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;
}

.inputGroup.light label {
  color: #1b1b24;
}

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

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

.inputIcon.light {
  color: #555555;
}

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

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

.inputWithIcon input:focus {
  outline: none;
  border-color: #006aff;
}

.inputWithIcon.light input:focus {
  border-color: #006aff;
  box-shadow: 0 0 0 2px rgba(105, 152, 223, 0.5);
}

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

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

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

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

/* Botón para mostrar/ocultar contraseña */
.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;
}

.togglePassword.light {
  color: #555555;
}

.togglePassword:hover {
  color: #ffffff;
}

.togglePassword.light:hover {
  color: #1b1b24;
}

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

.togglePassword.light:focus {
  outline: 2px solid rgba(105, 146, 223, 0.5);
}

/* Botón principal */
.recuperarButton {
  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: 52px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 10px;
}

.recuperarButton.light {
  background-color: #006aff;
}

.recuperarButton:hover:not(:disabled) {
  background-color: #005ee2;
  transform: translateY(-2px);
}

.recuperarButton.light:hover:not(:disabled) {
  background-color: #005ee2;
}

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

.recuperarButton.light:focus {
  outline: 2px solid rgba(105, 146, 223, 0.5);
}

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

/* Mensajes de error y éxito */
.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;
  animation: slideIn 0.3s ease;
}

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

.successMessage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background-color: rgba(30, 215, 96, 0.1);
  border-left: 3px solid #1ED760;
  border-radius: 4px;
  color: #1ED760;
  font-size: 14px;
  animation: slideIn 0.3s ease;
}

.successMessage.light {
  background-color: rgba(30, 215, 96, 0.05);
}

/* Enlaces */
.linksContainer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.backLink {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b3b3b3;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  padding: 8px;
  border-radius: 4px;
}

.backLink.light {
  color: #555555;
}

.backLink:hover {
  color: #006aff;
}

.backLink.light:hover {
  color: #006aff;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Spinner de carga */
.spinner {
  width: 24px;
  height: 24px;
  position: relative;
  animation: spinner-rotate 1.5s linear infinite;
  will-change: transform;
}

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

.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; }

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

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

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

/* Media queries */
@media (max-width: 600px) {
  .recuperarCard {
    padding: 30px 20px;
  }
  
  .title {
    font-size: 24px;
  }
  
  .logo {
    width: 100px;
    height: 100px;
  }

  .inputWithIcon input {
    padding: 12px 10px 12px 36px;
    font-size: 15px;
  }

  .recuperarButton {
    padding: 12px;
    min-height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .recuperarCard {
    padding: 25px 15px;
  }
  
  .title {
    font-size: 22px;
  }
  
  .description {
    font-size: 14px;
  }
  
  .inputGroup label {
    font-size: 13px;
  }
  
  .inputWithIcon input {
    padding: 10px 10px 10px 34px;
    font-size: 14px;
  }
  
  .recuperarButton {
    font-size: 14px;
    padding: 10px;
    min-height: 44px;
  }
  
  .errorMessage, .successMessage {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Soporte para preferencia de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .recuperarCard,
  .errorMessage,
  .successMessage {
    animation: none;
  }
  
  .recuperarButton,
  .spinner {
    transition: none;
    animation-duration: 10s;
  }
  
  .recuperarButton:hover:not(:disabled) {
    transform: none;
  }
}