/**
 * VNC Validate — Validation UI Styles
 * ใช้ร่วมกับ vnc-validate.js
 */

/* ── Error message ── */
.v-err {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d63031;
  margin-top: 0.2rem;
  padding-left: 0.15rem;
  line-height: 1.3;
  animation: vErrIn 0.2s ease-out;
}

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

/* ── Invalid field ── */
input.v-invalid,
select.v-invalid,
textarea.v-invalid {
  border-color: #d63031 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1) !important;
}

/* ── Valid field ── */
input.v-valid,
select.v-valid,
textarea.v-valid {
  border-color: #00b894 !important;
}
