﻿/* ── Field label ─────────────────────────────────────────────────
   Bold label above the input. */
.field-label {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    display: block;
}

/* ── Required asterisk ───────────────────────────────────────────
   Red asterisk next to required field labels. */
.field-required-asterisk {
    color: #c0392b;
    font-weight: bold;
    margin-right: 2px;
}

/* ── Helper / hint text ──────────────────────────────────────────
   Italic muted text below the label, used for instructions. */
.field-hint {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: italic;
    color: #999999;
    height: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

/* ── Field error ──────────────────────────────────────────────────
   Red error message below an invalid field. */
.field-error {
    display: block;
    margin-top: 2px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #c0392b;
}

/* ── Error state ───────────────────────────────────────────────
   Generic red error color. Apply to any element that needs to
   indicate an invalid/error state — text, counters, icons, etc. */
.field-error-text {
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
}

/* ── Input error border ────────────────────────────────────────
   Red border on a MudTextField wrapper when the field is invalid.
   Targets MudBlazor's inner fieldset, which renders the visible
   outlined border. */
.field-input-error .mud-input-outlined fieldset {
    border-color: #c0392b !important;
    border-width: 2px;
}