/* Supplier Portal: the entrance screens (login and code) in the identity of the FAMA entrance page: a dark brand panel on the
   left (mesh, orbs, solar grid), the card on the right, amber call to action. Same tokens as app/templates/index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }
:root {
  --fama-amber: #e5a829; --fama-amber-l: #f5c842; --fama-navy: #091328; --fama-navy-2: #0d1d3e; --fama-slate: #1e293b; --fama-indigo: #4f46e5;
}
.fl-root { display: flex; min-height: 100vh; }

/* left panel */
.fl-left { flex: 0 0 56%; position: relative; overflow: hidden; background: var(--fama-navy); display: flex; flex-direction: column; justify-content: space-between; padding: 2.75rem 3.25rem; }
.fl-left::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 5%, rgba(229,168,41,.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 85%, rgba(79,70,229,.20) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 55% 45%, rgba(16,185,129,.12) 0%, transparent 50%),
    linear-gradient(155deg, #091328 0%, #0e1f42 55%, #091820 100%);
  animation: meshPulse 20s ease-in-out infinite alternate;
}
@keyframes meshPulse { 0% { opacity: 1; filter: hue-rotate(0deg); } 50% { opacity: .92; filter: hue-rotate(8deg); } 100% { opacity: 1; filter: hue-rotate(-5deg); } }
.fl-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .14; pointer-events: none; animation: orbDrift 22s ease-in-out infinite; z-index: 0; }
.fl-orb--amber { width: 380px; height: 380px; background: var(--fama-amber); top: -60px; left: -80px; animation-duration: 24s; }
.fl-orb--indigo { width: 300px; height: 300px; background: var(--fama-indigo); top: 35%; right: -70px; animation-delay: -8s; animation-duration: 19s; }
.fl-orb--green { width: 240px; height: 240px; background: #10b981; bottom: 8%; left: 22%; animation-delay: -14s; animation-duration: 26s; }
@keyframes orbDrift { 0%,100% { transform: translate(0,0); } 33% { transform: translate(24px,-36px); } 66% { transform: translate(-18px,28px); } }
.fl-solar-grid { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(560px, 82%); opacity: .045; pointer-events: none; z-index: 0; }
.fl-top, .fl-hero, .fl-bottom { position: relative; z-index: 2; }
.fl-fama-logo-left { height: 44px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(229,168,41,.35)); }
.fl-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
.fl-badge { display: inline-flex; align-items: center; gap: .45rem; background: rgba(229,168,41,.12); border: 1px solid rgba(229,168,41,.3); color: var(--fama-amber-l); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 20px; width: fit-content; margin-bottom: 1.25rem; }
.fl-badge i { font-size: .65rem; }
.fl-headline { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.18; letter-spacing: -.03em; max-width: 500px; }
.fl-headline em { font-style: normal; background: linear-gradient(90deg, var(--fama-amber) 0%, var(--fama-amber-l) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.fl-sub { margin-top: 1rem; font-size: .92rem; color: rgba(255,255,255,.52); max-width: 420px; line-height: 1.6; }
.fl-pillars { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fl-pillar { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: .9rem 1rem; backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .15s; cursor: default; }
.fl-pillar:hover { background: rgba(255,255,255,.09); border-color: rgba(229,168,41,.3); transform: translateY(-1px); }
.fl-pillar-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.fl-pillar-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; }
.fl-pillar-icon--a { background: rgba(79,70,229,.30); color: #a5b4fc; }
.fl-pillar-icon--b { background: rgba(16,185,129,.25); color: #6ee7b7; }
.fl-pillar-icon--c { background: rgba(229,168,41,.25); color: var(--fama-amber-l); }
.fl-pillar-icon--d { background: rgba(239,68,68,.20); color: #fca5a5; }
.fl-pillar-name { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: -.01em; }
.fl-pillar-desc { font-size: .72rem; color: rgba(255,255,255,.42); line-height: 1.5; }
.fl-bottom { display: flex; align-items: center; gap: .65rem; }
.fl-powered-label { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.25); white-space: nowrap; }
.fl-faro-logo { height: 18px; width: auto; opacity: .32; filter: grayscale(1) brightness(2); transition: opacity .2s; }
.fl-faro-logo:hover { opacity: .55; }

/* right panel */
.fl-right { flex: 1; display: flex; align-items: center; justify-content: center; background: #f1f5f9; padding: 2rem 1.5rem; }
.fl-card { width: 100%; max-width: 400px; }
.fl-fama-logo-right { height: 34px; width: auto; display: block; margin-bottom: 2.4rem; }
.fl-card-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fama-amber); margin-bottom: .5rem; }
.fl-card-title { font-size: 1.65rem; font-weight: 800; color: var(--fama-navy); letter-spacing: -.03em; line-height: 1.2; }
.fl-card-sub { margin-top: .45rem; font-size: .86rem; color: #64748b; line-height: 1.55; }
.fl-alert { margin-top: 1.25rem; padding: .7rem 1rem; border-radius: 8px; font-size: .84rem; display: flex; align-items: flex-start; gap: .5rem; }
.fl-alert--errors { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.fl-alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.fl-alert--success { background: #fefce8; border: 1px solid #fde68a; color: #92400e; }
.fl-form { margin-top: 1.6rem; }
.fl-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: .4rem; }
.fl-input { width: 100%; padding: .85rem 1rem; border: 1.5px solid #cbd5e1; border-radius: 11px; font-size: 1.05rem; color: var(--fama-slate); background: #fff; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.fl-input:focus { outline: none; border-color: var(--fama-amber); box-shadow: 0 0 0 3px rgba(229,168,41,.22); }
.fl-input--code { letter-spacing: .5em; text-align: center; font-size: 1.6rem; font-weight: 700; }
.fl-hint { font-size: .76rem; color: #94a3b8; margin-top: .4rem; }
.fl-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin-top: 1.25rem; padding: .9rem 1.5rem; background: linear-gradient(135deg, var(--fama-amber) 0%, #c98a10 100%); color: #fff; font-size: .95rem; font-weight: 700; border: none; border-radius: 11px; text-decoration: none; cursor: pointer; letter-spacing: -.01em; box-shadow: 0 4px 18px rgba(229,168,41,.45); transition: opacity .18s, transform .12s, box-shadow .18s; font-family: inherit; }
.fl-btn:hover { opacity: .93; transform: translateY(-2px); box-shadow: 0 7px 24px rgba(229,168,41,.5); }
.fl-btn:active { transform: translateY(0); }
.fl-btn--ghost { margin-top: .6rem; padding: .7rem 1.5rem; background: #fff; color: #475569; border: 1.5px solid #e2e8f0; box-shadow: none; font-size: .88rem; font-weight: 600; }
.fl-btn--ghost:hover { opacity: 1; transform: none; background: #f8fafc; border-color: #cbd5e1; box-shadow: none; }
.fl-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; font-size: .75rem; color: #94a3b8; }
.fl-links { margin-top: 1.4rem; text-align: center; font-size: .8rem; }
.fl-links a { color: #64748b; text-decoration: none; font-weight: 600; }
.fl-links a:hover { color: var(--fama-indigo); text-decoration: underline; }
/* the way back to the FAMA: a small link fixed in the bottom right corner of the page, away from the card */
.fl-back { position: fixed; right: 1.5rem; bottom: 1.1rem; margin: 0; padding: 0; border: 0; text-align: right; font-size: .75rem; }
.fl-back a { display: inline-flex; align-items: center; gap: .4rem; color: #64748b; font-weight: 600; text-decoration: none; }
.fl-back a:hover, .fl-back a:focus { color: var(--fama-indigo); text-decoration: underline; outline: none; }
.fl-back a i { font-size: .65rem; }
@media (max-width: 880px) { .fl-left { display: none; } .fl-right { background: #fff; } }
