/**
 * Reset Password Pages Specific Styles
 * Complementa login.css con estilos específicos para password strength y match indicators
 * @version 1.0.0
 */

/* ====================================
   IMPORT FONTS
   ==================================== */
@import url('fonts.css');
 
/* ====================================
   INFO BOX (para instrucciones destacadas)
   ==================================== */

.info-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.info-box p {
  margin: 0;
  color: #1e40af;
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 500;
}

.info-box strong {
  color: #1e3a8a;
  font-weight: 700;
}

.info-box::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  float: left;
  margin-right: 0.75rem;
  font-size: 1.25rem;
  color: #3b82f6;
  line-height: 1.6;
}

/* ====================================
   FORM HELP TEXT (minimalista y elegante)
   ==================================== */

.form-help {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
  line-height: 1.4;
  padding-left: 0.125rem;
}

/* ====================================
   PASSWORD STRENGTH METER
   ==================================== */

.password-strength {
  margin-top: 0.5rem;
}

#password-strength-wrapper {
  height: 4px;
  background: rgba(209, 213, 219, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

#password-strength-wrapper .bar {
  height: 100%;
  width: 0%;
  background: #ef4444;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

#pw-strength-text {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* ====================================
   PASSWORD MATCH INDICATOR
   ==================================== */

.pw-match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
  transition: all 0.3s ease;
}

.pw-match i {
  font-size: 1rem;
}

.pw-match.ok {
  color: #16a34a;
}

.pw-match.bad {
  color: #ef4444;
}

.pw-match span {
  font-weight: 500;
}

/* ====================================
   PASSWORD REQUIREMENTS LIST
   ==================================== */

.requirements-list {
  margin: 0.5rem 0;
  padding: 1rem;
  background: rgba(243, 244, 246, 0.5);
  border-radius: 0.5rem;
  border: 1px solid rgba(209, 213, 219, 0.5);
}

.requirements-list h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--apple-dark, #1d1d1f);
  margin-bottom: 0.75rem;
}

.requirements-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

.requirements-list li i {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.requirements-list li.valid {
  color: #16a34a;
}

.requirements-list li.valid i {
  color: #16a34a;
}

.requirements-list li.valid i::before {
  content: '\f058';
  font-weight: 900;
}

/* ====================================
   INFO BOX (para instrucciones)
   ==================================== */

.info-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
  border-left: 3px solid #3b82f6;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.info-box p {
  margin: 0;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
}

.info-box strong {
  color: #1f2937;
  font-weight: 600;
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */

@media (max-width: 640px) {
  .requirements-list {
    padding: 0.75rem;
    margin: 0.75rem 0;
  }

  .requirements-list h3 {
    font-size: 0.8125rem;
  }

  .requirements-list li {
    font-size: 0.8125rem;
  }

  .info-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .info-box p {
    font-size: 0.8125rem;
  }

  #pw-strength-text {
    font-size: 0.6875rem;
  }

  .pw-match {
    font-size: 0.8125rem;
  }
}

/* ====================================
   DARK MODE SUPPORT
   ==================================== */

@media (prefers-color-scheme: dark) {
  .requirements-list {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(75, 85, 99, 0.5);
  }

  .requirements-list h3 {
    color: #f9fafb;
  }

  .requirements-list li {
    color: #d1d5db;
  }

  .requirements-list li i {
    color: #9ca3af;
  }

  .info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-left-color: #60a5fa;
  }

  .info-box p {
    color: #d1d5db;
  }

  .info-box strong {
    color: #f9fafb;
  }

  #password-strength-wrapper {
    background: rgba(55, 65, 81, 0.5);
  }

  #pw-strength-text {
    color: #9ca3af;
  }
}

/* ====================================
   HIGH CONTRAST MODE
   ==================================== */

@media (prefers-contrast: high) {
  .requirements-list {
    border-width: 2px;
  }

  .info-box {
    border-left-width: 4px;
  }

  #password-strength-wrapper .bar {
    box-shadow: 0 0 0 1px currentColor;
  }
}

/* ====================================
   REDUCED MOTION
   ==================================== */

@media (prefers-reduced-motion: reduce) {
  #password-strength-wrapper .bar {
    transition: none;
  }

  .pw-match {
    transition: none;
  }

  #pw-strength-text {
    transition: none;
  }
}
