/*
 * Login: panou lateral închis cu compoziție geometrică animată (bandă la 8°, dreptunghi tăiat la 135°, triunghiuri scalene,
 * linie-ax cu pana roșie, pipeline-ul de etape care se umple) + formularul pe alb. Mișcarea e lentă și se oprește la
 * prefers-reduced-motion, conform manualului de brand.
 */

/* ---- layout: două coloane pe desktop ---- */
@media (min-width: 960px) {
    .fi-simple-layout { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); min-height: 100vh; padding: 0; }
    .fi-simple-layout > .fi-simple-main-ctn { grid-column: 2; display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
    .fi-simple-layout > .fi-simple-layout-header { grid-column: 2; }
    .al-lg { display: flex; }
}
.al-lg { grid-column: 1; position: relative; overflow: hidden; background: var(--al-ink); color: #fff; min-height: 100vh; flex-direction: column; }
@media (max-width: 959.98px) { .al-lg { display: none; } }
.fi-simple-main { max-width: 26rem; width: 100%; }

/* ---- scena ---- */
.al-lg-scene { position: absolute; inset: 0; pointer-events: none; }
.al-lg-band { position: absolute; left: -20%; top: 58%; width: 140%; height: 22%; background: #262626; transform: rotate(-8deg); animation: al-band 36s ease-in-out infinite alternate; }
.al-lg-cut { position: absolute; right: -6%; top: -4%; width: 42%; height: 30%; background: #2b2b2b; clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%, 0 78%); animation: al-float 22s ease-in-out infinite alternate; }
.al-lg-tri { position: absolute; width: 0; height: 0; border-style: solid; opacity: 0.9; }
.al-lg-tri-a { left: 62%; top: 70%; border-width: 0 0 150px 90px; border-color: transparent transparent #303030 transparent; animation: al-float 28s ease-in-out infinite alternate-reverse; }
.al-lg-tri-b { left: 12%; top: 8%; border-width: 70px 0 0 40px; border-color: #2b2b2b transparent transparent transparent; animation: al-float 31s ease-in-out infinite alternate; }
.al-lg-axis { position: absolute; left: 56%; top: 41%; width: 30%; height: 1.5px; background: #fff; transform-origin: left center; animation: al-draw 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.al-lg-wedge { position: absolute; right: -2px; top: -13px; width: 30px; height: 11px; background: var(--al-accent); clip-path: polygon(0 100%, 10.5% 0, 89.5% 0, 100% 100%); animation: al-wedge 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s both; }
.al-lg-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px); background-size: 4rem 4rem; mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); }

@keyframes al-band { from { transform: rotate(-8deg) translateX(-2.5%); } to { transform: rotate(-8deg) translateX(2.5%); } }
@keyframes al-float { from { transform: translateY(-10px); } to { transform: translateY(14px); } }
@keyframes al-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes al-wedge { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- conținut ---- */
.al-lg-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; flex: 1; padding: 3rem 3.25rem; gap: 2.5rem; }
.al-lg-logo { height: 1.9rem; width: auto; align-self: flex-start; animation: al-fade 0.8s ease-out both; }
.al-lg-copy { max-width: 24rem; }
.al-lg-kicker { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #999; margin-bottom: 1.1rem; animation: al-fade 0.8s ease-out 0.2s both; }
.al-lg-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.015em; color: #fff; margin: 0 0 1.2rem; animation: al-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
.al-lg-sub { font-size: 0.9375rem; line-height: 1.6; color: #bfbfbf; margin: 0; animation: al-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both; }

@keyframes al-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes al-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---- pipeline animat: etapele se umplu pe rând, în buclă ---- */
.al-lg-pipeline { display: flex; flex-direction: column; gap: 1.25rem; max-width: 30rem; }
.al-lg-steps { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.35rem; }
.al-lg-step { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.al-lg-step-box { display: block; height: 6px; background: #3d3d3d; animation: al-fill 9s linear infinite; animation-delay: calc(var(--i) * 0.55s); }
.al-lg-step:last-child .al-lg-step-box { animation-name: al-fill-last; }
.al-lg-step-label { font-size: 0.48rem; line-height: 1.15; letter-spacing: 0.03em; text-transform: uppercase; color: #737373; white-space: nowrap; overflow: hidden; }
@keyframes al-fill { 0%, 8% { background: #3d3d3d; } 12%, 70% { background: #fff; } 78%, 100% { background: #3d3d3d; } }
@keyframes al-fill-last { 0%, 8% { background: #3d3d3d; } 12%, 70% { background: var(--success-500, #2f7a4c); } 78%, 100% { background: #3d3d3d; } }

.al-lg-score { border-top: 1px solid #3d3d3d; padding-top: 1rem; }
.al-lg-score-row { display: flex; align-items: center; gap: 0.75rem; }
.al-lg-tier { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: #fff; color: var(--al-ink); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.al-lg-score-n { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; }
.al-lg-score-l { font-size: 0.6875rem; color: #999; letter-spacing: 0.04em; }
.al-lg-bar { height: 4px; background: #3d3d3d; margin-top: 0.75rem; overflow: hidden; }
.al-lg-bar > span { display: block; height: 100%; width: 88%; background: #fff; transform-origin: left; animation: al-draw 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both; }

.al-lg-foot { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: #737373; }

/* ---- cardul de login ---- */
.fi-simple-main { border-top-color: var(--al-ink); }
.al-login-intro .al-kicker { color: var(--al-ink); }

@media (prefers-reduced-motion: reduce) {
    .al-lg *, .al-lg *::before, .al-lg *::after { animation: none !important; }
    .al-lg-step-box { background: #fff; }
    .al-lg-step:last-child .al-lg-step-box { background: var(--success-500, #2f7a4c); }
}
