/* ==========================================================================
   Form Validation Styles (Added in Phase 1: Security)
   ========================================================================== */

/* Field with validation error */
.field-error {
  border-color: #ef4444 !important;
  background-color: #fee2e2;
}

.field-error:focus {
  outline-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Validation error message */
.validation-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  animation: slideDown 0.2s ease-out;
}

.validation-error::before {
  content: '⚠';
  font-size: 14px;
  flex-shrink: 0;
}

/* Field with successful validation */
.field-success {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
}

.field-success:focus {
  outline-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Success indicator */
.validation-success {
  color: #059669;
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.validation-success::before {
  content: '✓';
  font-size: 14px;
  font-weight: bold;
}

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

