/* Input validation styles */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.input-error {
  color: #ff3860;
  font-size: 12px;
  margin-top: 5px;
  animation: fadeIn 0.3s ease-in-out;
}

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

.form-control.error {
  border-color: #ff3860;
  box-shadow: 0 0 0 1px #ff3860;
}

.form-control.valid {
  border-color: #2e8b57;
  box-shadow: 0 0 0 1px #2e8b57;
}

/* Password strength meter */
.password-strength-meter {
  margin-top: 10px;
}

.strength-bar {
  height: 5px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill[data-strength="1"] {
  width: 20%;
  background-color: #ff3860;
}

.strength-fill[data-strength="2"] {
  width: 40%;
  background-color: #ff3860;
}

.strength-fill[data-strength="3"] {
  width: 60%;
  background-color: #ffa700;
}

.strength-fill[data-strength="4"] {
  width: 80%;
  background-color: #ffa700;
}

.strength-fill[data-strength="5"] {
  width: 100%;
  background-color: #2e8b57;
}

.strength-label {
  font-size: 12px;
  margin-top: 5px;
  text-align: right;
}

/* Password requirements */
.password-requirements {
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  font-size: 12px;
}

.password-requirements p {
  margin-bottom: 5px;
  font-weight: 600;
}

.password-requirements ul {
  list-style: none;
  padding-left: 5px;
  margin: 0;
}

.password-requirements li {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
}

.password-requirements li i {
  margin-right: 5px;
}

.password-requirements li i.fa-times-circle {
  color: #ff3860;
}

.password-requirements li i.fa-check-circle {
  color: #2e8b57;
}

/* Password match indicator */
.passwords-match-indicator {
  margin-top: 5px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.match-icon,
.mismatch-icon {
  display: none;
  margin-right: 5px;
}

.match-icon {
  color: #2e8b57;
}

.mismatch-icon {
  color: #ff3860;
}

.match-text {
  font-size: 12px;
}

/* Checkbox validation */
.checkbox-group {
  position: relative;
}

.checkbox-group .input-error {
  margin-left: 25px;
}

/* Styled checkboxes */
.styled-checkbox {
  position: absolute;
  opacity: 0;
}

.styled-checkbox + label {
  position: relative;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.styled-checkbox + label p {
  margin: 0;
  padding-left: 30px;
}

.styled-checkbox + label:before {
  content: "";
  margin-right: 10px;
  display: inline-block;
  vertical-align: text-top;
  width: 20px;
  height: 20px;
  background: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.styled-checkbox:hover + label:before {
  border-color: #6134b7;
}

.styled-checkbox:focus + label:before {
  box-shadow: 0 0 0 3px rgba(91, 75, 154, 0.2);
}

.styled-checkbox:checked + label:before {
  background: #6134b7;
  border-color: #6134b7;
}

.styled-checkbox:checked + label:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  background: white;
  width: 2px;
  height: 2px;
  box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white,
    4px -6px 0 white, 4px -8px 0 white;
  transform: translateY(-65%) rotate(45deg);
}

/* Progress steps validation */
.progress-step.completed .step-number {
  background-color: #2e8b57;
  color: white;
}

.progress-step.error .step-number {
  background-color: #ff3860;
  color: white;
}

/* Form step transitions */
.register-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.register-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .password-requirements {
    font-size: 11px;
  }

  .password-requirements li {
    margin-bottom: 2px;
  }

  .strength-label,
  .input-error,
  .match-text {
    font-size: 11px;
  }
}
