/* ========================================
   PASSWORD STRENGTH INDICATOR STYLES
   ======================================== */

.password-strength-container {
  margin-top: 12px;
  padding: 12px;
  background: hsl(210, 20%, 98%);
  border: 1px solid #e5e7eb;
}

.strength-meter {
  height: 6px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar.weak {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.strength-bar.medium {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.strength-bar.strong {
  background: linear-gradient(90deg, #10b981, #059669);
}

.strength-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.strength-label.weak {
  color: #dc2626;
}

.strength-label.medium {
  color: #d97706;
}

.strength-label.strong {
  color: #059669;
}

.requirements-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.requirement-item.passed {
  color: #10b981;
}

.requirement-item.failed {
  color: #6b7280;
}

.requirement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.requirement-item.passed .requirement-icon {
  background: #10b981;
  color: white;
}

.requirement-text {
  flex: 1;
}

/* ========================================
   FORM ERROR HIGHLIGHTING
   ======================================== */

.form-group input.error,
.form-group input.invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

.form-group input.success,
.form-group input.valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
}

.form-error {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #dc2626;
  display: none;
}

.form-error.show {
  display: block;
}

.form-success {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #059669;
  display: none;
}

.form-success.show {
  display: block;
}
