/* Change Password Specific Styles */

/* OAuth user alert */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.alert p {
  margin-bottom: 0;
  line-height: 1.5;
}

/* .password-show-hide .icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
} */

.password-show-hide:hover .icon {
  opacity: 1;
}

.input-icon {
  position: relative;
}

.input-icon .form-control {
    font-size: var(--font-small);
    min-height: 40px;
    background-color: var(--color-white);
    border-color: var(--color-white);
    padding-right: 35px;
    border-radius: 8px;
    resize: none;
}

.input-icon input:focus,
.input-icon textarea:focus {
    box-shadow: none;
    border-color: var(--color-primary);
}
.input-icon .icon {
    position: absolute;
    left: 8px;
    top: 11px;
}
.password-show-hide .icon {
    left: auto;
    right: 8px;
    cursor: pointer;
}

/* Form validation feedback - only apply on user interaction */
.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
  border-color: #198754;
}

/* Default gray border for untouched inputs */
.form-control {
  border-color: #e0e0e0 !important;
}

/* Show validation colors only after user has interacted */
.form-control.touched:invalid {
  border-color: #dc3545 !important;
}

.form-control.touched:valid {
  border-color: #198754 !important;
}

/* Password strength indicator (optional enhancement) */
.password-strength {
  margin-top: 5px;
  font-size: 0.875rem;
}

.password-strength.weak {
  color: #dc3545;
}

.password-strength.medium {
  color: #ffc107;
}

.password-strength.strong {
  color: #198754;
}

.form-wrap{
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}
.form-wrap label {
    font-size: var(--font-small);
    line-height: normal;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--h-color);
}
.form-wrap label span{
    font-size: var(--font-xs);
    line-height: normal;
    color: var(--text-color);
}
.input-icon {
    position: relative;
}
.input-icon input,
.input-icon textarea {
    font-size: var(--font-small);
    min-height: 40px;
    background-color: var(--color-white);
    border-color: var(--color-white);
    padding-right: 35px;
    padding-left: 12px;
    border-radius: 8px;
    resize: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .password-show-hide {
    right: 10px;
  }
  
  .input-icon .form-control {
    padding-right: 40px;
  }
}