/* =========================================================
   LUX EMPIRE — LIVE FORM VALIDATION
   SAVE AT: assets/css/form-validation.css
   Link this alongside auth-forms.css / tenant-register-modal.css —
   used by tenant, landlord, and driver registration alike.
   ========================================================= */

.field-invalid{
    border-color:#ff3b3b !important;
    box-shadow:0 0 0 1px rgba(255,59,59,0.4);
}

.field-error-msg{
    color:#ff8080;
    font-size:0.8rem;
    margin-top:6px;
    line-height:1.4;
}

/* =========================================================
   SHAKE — plays once when a field newly becomes invalid
   ========================================================= */

@keyframes luxFieldShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

.lux-field-shake{
    animation: luxFieldShake 0.4s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .lux-field-shake{
        animation: none;
    }
}
