/* Laravel bridge for the sign-in screens (loaded after login.css, login-stack.css and login-split.css): server-rendered form states, and the OTP boxes used by the two-step page. */

/* Server-side validation message under a field (Velox fills [data-error]) */
.lg-f .lg-err, .lg-f [data-error] { display: block; margin-top: 6px; font-size: 12.5px; color: var(--red, #d64848); }
.lg-f [data-error]:empty { display: none; }

/* Session error banner (e.g. SSO failure) */
.lg-sso-error { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px; background: #fff1f0; color: #b42318; font-size: 13px; }

/* OTP: four boxes */
.lg-code.four { grid-template-columns: repeat(4, 1fr); }
.lg-code input { width: 100%; height: 54px; text-align: center; font-size: 22px; font-weight: 600; border: 1px solid var(--border); border-radius: var(--r-md, 9px); background: var(--surface); color: var(--text); }
.lg-code input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.lg-code input.is-invalid { border-color: var(--red, #d64848); }
.lg-cell .lg-err, .lg-cell [data-error] { display: none; }
.lg-inline { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; }
.lg-inline:hover { text-decoration: underline; }

/* the brand above every screen except sign-in (which has its own brand head inside the card) */
.lg-cardbrand { width: min(340px, 100%); margin: 0 auto 22px; justify-content: flex-start; } body.lg-signin .lg-cardbrand { display: none; }
body.lg-flow .lg-main { flex-direction: column; }
.lg-f .wz-label.req::after { content: " *"; color: #c0392b; }
.lf-logo .brand-name { color: var(--primary-ink, var(--text, #101828)); font-size: 16px; }

/* brand row: the mark is 30px whatever the older sign-in rules say; an uploaded logo shows as itself (no tile), the full logo larger and without the name */
body.lg-flow .lf-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
body.lg-flow .lf-logo .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; flex: none; }
body.lg-flow .lf-logo .brand-mark.has-logo { width: auto; height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; }
body.lg-flow .lf-logo .brand-mark.has-logo img { display: block; width: auto; height: 32px; max-width: 180px; object-fit: contain; padding: 0; }
body.lg-flow .lf-logo.full .brand-mark.has-logo img { height: 60px; max-width: 300px; }
body.lg-flow .lg-brandhead { text-align: left; }
.er-brand .brand-mark.has-logo { width: auto; height: auto; background: none; border: 0; } .er-brand .brand-mark.has-logo img { display: block; height: 32px; width: auto; max-width: 200px; object-fit: contain; }
body.lg-flow.lg-signin .lg-cardbrand { display: none; }
