/* =====================================================================
   GB Pages – componente noi pentru paginile publice (redesign)
   RO: inlocuieste treptat home-sections.css. Se adauga doar blocurile de care are nevoie fiecare pagina mutata pe live.
       v1: breadcrumbs (Elements/GbCrumbs.ctp) + pagina de autentificare (gbl-, Users/login.ctp).
       Culorile vin din tema sectiunii (gb-themes.css).
   ===================================================================== */

/* ---------- Breadcrumbs (paginile de detalii) ---------- */
.gb-crumbs { background: #f3f5f7; border-bottom: 1px solid rgba(0,0,0,.08); }
.gb-crumbs .breadcrumb { --bs-breadcrumb-divider: '›'; margin: 0; padding: 12px 0; font-size: 15px; }
.gb-crumbs .breadcrumb-item + .breadcrumb-item::before { color: #8a96a3; }
.gb-crumbs a { color: #3b4655; text-decoration: none; transition: color .2s ease; }
.gb-crumbs a:hover, .gb-crumbs a:focus-visible { color: var(--blue-1, #188dcd); }
.gb-crumbs .breadcrumb-item.active { color: var(--dark-1, #0c1420); font-weight: 600; }

/* =====================================================================
   gbl- : pagina de autentificare (/login), v18
   RO: stanga casetele, dreapta panoul animat; fiecare caseta are culoarea ei (--gbl-c),
       panoul afiseaza stratul casetei active (gb-pages.js: initLoginPanel -> .is-on).
   ===================================================================== */
.gbl-section { padding: 0; }
.gbl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: calc(100vh - 146px); }   /* RO: inaltimea ecranului minus bara de sus si breadcrumbs */
.gbl-boxes { display: flex; flex-direction: column; justify-content: center; gap: 14px; width: 100%; max-width: 520px; justify-self: end; padding: 56px 48px 56px 24px; container: gblb / inline-size; }
.gbl-box { --gbl-c: #188dcd; position: relative; display: block; background: #fff; border: 1px solid rgba(12, 20, 32, .1); border-radius: 18px; padding: 14px 20px;
  color: var(--dark-1, #0c1420); text-decoration: none; box-shadow: 0 18px 40px -26px rgba(12, 20, 32, .35); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
/* RO: hover ca dalele Soluții Gestbal de pe prima pagina: bordura in culoarea casetei, fundal nuantat, umbra colorata */
.gbl-box:hover, .gbl-box:focus-within, .gbl-box.is-on { border-color: var(--gbl-c);
  background: linear-gradient(var(--gbl-tint), var(--gbl-tint)), #fff;
  box-shadow: 0 30px 40px -28px var(--gbl-c); }
.gbl-box.--link:hover, .gbl-box.--link:focus-visible { transform: translateX(6px); color: var(--dark-1, #0c1420); outline: none; }
/* RO: culori fixe (fara color-mix: unele browsere mai vechi nu il cunosc si atunci fundalul dispare) */
.gbl-box.--client    { --gbl-c: #188dcd; --gbl-dark: #11699a; --gbl-tint: rgba(24, 141, 205, .06); }
.gbl-box.--semnatura { --gbl-c: #e0731a; --gbl-dark: #a8540f; --gbl-tint: rgba(224, 115, 26, .06); }
.gbl-box.--business  { --gbl-c: #7d5cd6; --gbl-dark: #5a3fb3; --gbl-tint: rgba(125, 92, 214, .06); }
.gbl-box.--pontaj    { --gbl-c: #13979a; --gbl-dark: #0d6f71; --gbl-tint: rgba(19, 151, 154, .06); }
.gbl-box.--restinfo  { --gbl-c: #d6457a; --gbl-dark: #a52f5b; --gbl-tint: rgba(214, 69, 122, .06); }
/* RO: v23 – caseta mai compacta: fara linie / padding sub titlu */
.gbl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gbl-head h2 { font-size: 20px; font-weight: 600; margin: 0; }
.gbl-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; font-size: 22px; line-height: 1;
  background: transparent; border: 1.5px solid var(--gbl-c); color: var(--gbl-c); transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.gbl-ico .bi { font-size: inherit; color: inherit; }
.gbl-box .gbl-ico { font-size: 22px; }   /* RO: peste ".gbl-box span { font-size: inherit }" */
.gbl-box:hover .gbl-ico, .gbl-box.is-on .gbl-ico, .gbl-box:focus-within .gbl-ico { background: var(--gbl-c); color: #fff; transform: scale(1.04); }
.gbl-box label { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: #3b4655; }
.gbl-box .form-group { margin-bottom: 10px !important; }
.gbl-input { position: relative; }
/* RO: .invalid-feedback sta in .gbl-input, imediat dupa input, ca regula Bootstrap .was-validated input:invalid ~ .invalid-feedback
       sa functioneze (main.js pune .was-validated); de aceea iconita e fixata pe mijlocul campului (36px), nu top 50% */
.gbl-input .invalid-feedback { font-size: 14px; }
.gbl-input > .bi { position: absolute; left: 14px; top: 18px; transform: translateY(-50%); color: #8a97a8; font-size: 16px; pointer-events: none; }
.gbl-input .form-control { height: 36px; font-size: 16px; padding-left: 40px; border-radius: 10px; border: 1px solid #d6dde6; background: #f8fafc; }
/* RO: bordura neutra; la focus doar mai inchisa (tot neutra) */
.gbl-input .form-control:focus { background: #fff; border-color: #8a97a8; box-shadow: 0 0 0 3px rgba(12, 20, 32, .07) !important; }
.gbl-btn { --gbl-btn-bg: var(--gbl-c); --gbl-btn-hover: var(--gbl-dark);
  height: 38px; border-radius: 10px; background: var(--gbl-btn-bg); border: 0; color: #fff; font-weight: 600; font-size: 16px; margin-top: 4px; transition: background-color .2s ease; }
/* RO: la hover / focus / apasat mai inchis; peste custom.css (.btn:hover: forma + transition all) si orice stare Bootstrap */
.gbl-box .gbl-btn:hover, .gbl-box .gbl-btn:focus, .gbl-box .gbl-btn:focus-visible, .gbl-box .gbl-btn:active, .gbl-box .gbl-btn.active {
  background: var(--gbl-btn-hover) !important; background-color: var(--gbl-btn-hover) !important; border-color: transparent !important; color: #fff !important;
  border-radius: 10px; transition: background-color .2s ease; }
/* RO: pointer-events: none - main.js (form.needs-bs-validation button:submit) foloseste evt.target; un click pe iconita
       din buton nu gasea formularul (eroare JS, autentificarea nu pornea) */
.gbl-box .gbl-btn .bi { color: inherit !important; pointer-events: none; }
.gbl-alt { margin-top: 10px; text-align: center; font-size: 15px; color: #566273; }
.gbl-alt a { font-size: inherit; font-weight: 600; color: var(--gbl-c); text-decoration: none; }
.gbl-alt a:hover { text-decoration: underline; }
/* RO: mesajele flash (Session->flash) in caseta clientului: compacte, deasupra campurilor
       (#sectionLogin ca sa castige peste #flashMessage din custom.css: margin-bottom 32px, padding 12px 32px) */
#sectionLogin .gbl-box .alert { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 15px; line-height: 1.4; text-align: center; }
.gbl-box .alert, .gbl-box .alert * { font-size: 15px; }
/* RO: v23 – toate casetele-link au aceeasi inaltime; descrierea max. 2 randuri; loc in dreapta pentru sageata */
.gbl-box.--link { display: flex; align-items: center; gap: 14px; padding: 16px 56px 16px 20px; height: 92px; }
.gbl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gbl-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.gbl-txt b { font-size: 20px; font-weight: 600; }
.gbl-txt small { font-size: 14px; color: #566273; }
/* RO: v23 – sageata din dreapta ramane mereu; la hover descrierea (small) e inlocuita de indiciu (.gbl-hint) pe acelasi loc,
       deci caseta nu isi schimba inaltimea */
.gbl-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.gbl-go > .bi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gbl-c); font-size: 14px; color: var(--gbl-c);
  transition: background-color .25s ease, color .25s ease; }
.gbl-box.--link:hover .gbl-go > .bi, .gbl-box.--link:focus-visible .gbl-go > .bi { background: var(--gbl-c); color: #fff; }
.gbl-sub { position: relative; display: block; }
.gbl-sub small { transition: opacity .2s ease; }
.gbl-hint { position: absolute; left: 0; top: 0; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--gbl-c); white-space: nowrap;
  opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .25s ease; }
.gbl-hint .bi { color: inherit; }
.gbl-box.--link:hover .gbl-sub small, .gbl-box.--link:focus-visible .gbl-sub small { opacity: 0; }
.gbl-box.--link:hover .gbl-hint, .gbl-box.--link:focus-visible .gbl-hint { opacity: 1; transform: none; }
.gbl-box span { font-size: inherit; }
.gbl-box.--link, .gbl-box.--link:hover, .gbl-box.--link *, .gbl-box.--link:hover * { text-decoration: none; }

/* panoul */
.gbl-panel { position: relative; min-height: 640px; overflow: hidden; isolation: isolate; }
.gbl-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px; padding: 48px; opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s; color: #fff; }
.gbl-layer.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease; z-index: 1; }
.gbl-layer.--client    { background: radial-gradient(120% 90% at 85% 10%, #2bb3f5 0, transparent 55%), linear-gradient(150deg, #0b2440, #0f5a8a); }
.gbl-layer.--semnatura { background: radial-gradient(120% 90% at 85% 10%, #ffb36b 0, transparent 55%), linear-gradient(150deg, #3b1d06, #b4560f); }
.gbl-layer.--business  { background: radial-gradient(120% 90% at 85% 10%, #b9a5f5 0, transparent 55%), linear-gradient(150deg, #1d1440, #5a3fb3); }
.gbl-layer.--restinfo  { background: radial-gradient(120% 90% at 85% 10%, #ff9cc2 0, transparent 55%), linear-gradient(150deg, #3d0c20, #a52f5b); }
.gbl-layer.--pontaj    { background: radial-gradient(120% 90% at 85% 10%, #6fe0e2 0, transparent 55%), linear-gradient(150deg, #052f30, #0f7c7f); }
.gbl-stage { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / .8; flex: none; container-type: inline-size; transform: translateY(14px) scale(.97); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.gbl-layer.is-on .gbl-stage { transform: none; opacity: 1; transition-delay: .08s; }
.gbl-cap { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 580px; }
.gbl-cap b { font-size: 26px; font-weight: 600; }
.gbl-cap span { font-size: 16px; opacity: .8; }
.gbl-layer, .gbl-layer * { color: #fff; }

/* elemente comune */
.gbl-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 30px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); animation: gblFloat 6s ease-in-out infinite; animation-delay: var(--fl, 0s); }
.gbl-shot { position: absolute; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .55); animation: gblFloat 7s ease-in-out infinite; animation-delay: var(--fl, 0s); }
.gbl-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
@keyframes gblFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* client: lacat + orbita */
.gbl-ring { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .28); animation: gblPulse 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes gblPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.05); opacity: .45; } }
.gbl-lock { position: absolute; left: 50%; top: 50%; width: 26cqw; height: 26cqw; margin: -13cqw 0 0 -13cqw; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: 12cqw; box-shadow: 0 0 0 2.4cqw rgba(255, 255, 255, .06), 0 20px 50px -10px rgba(0, 0, 0, .4); }
.gbl-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: gblSpin 24s linear infinite; }
.gbl-orbit > span { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(31cqw) rotate(calc(-1 * var(--a))); }
.gbl-orbit i { display: grid; place-items: center; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; border-radius: 3cqw; background: #fff; font-size: 5cqw; font-style: normal;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); animation: gblSpin 24s linear infinite reverse; }
.gbl-orbit i, .gbl-orbit i * { color: #188dcd; }
@keyframes gblSpin { to { transform: rotate(360deg); } }

/* semnatura: document + cheie + camion */
.gbl-doc { position: absolute; left: 22cqw; top: 12cqw; width: 46cqw; padding: 5cqw 5cqw 7cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); animation: gblFloat 7s ease-in-out infinite; }
.gbl-doc, .gbl-doc * { color: #3b1d06; }
.gbl-doc-h { display: flex; align-items: center; gap: 2cqw; font-size: 4.2cqw; font-weight: 700; margin-bottom: 4cqw; }
.gbl-doc-h .bi { color: #e0731a; }
.gbl-doc > i { display: block; height: 2.2cqw; border-radius: 2cqw; background: #f1e4d6; margin-top: 2.6cqw; }
.gbl-stamp { position: absolute; right: -6cqw; bottom: -4cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 2cqw 4cqw; border-radius: 3cqw; background: #1f9d5c; font-size: 3.6cqw; font-weight: 700;
  transform: rotate(-8deg) scale(0); animation: gblStamp 4s ease-in-out infinite; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.gbl-stamp, .gbl-stamp * { color: #fff; }
@keyframes gblStamp { 0%, 35% { transform: rotate(-8deg) scale(0); } 45% { transform: rotate(-8deg) scale(1.15); } 52%, 90% { transform: rotate(-8deg) scale(1); } 100% { transform: rotate(-8deg) scale(0); } }
.gbl-key { position: absolute; left: 10cqw; top: 40cqw; width: 16cqw; height: 16cqw; display: grid; place-items: center; border-radius: 50%; background: #ffb36b; font-size: 8cqw;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); animation: gblKey 4s ease-in-out infinite; }
.gbl-key, .gbl-key * { color: #3b1d06; }
@keyframes gblKey { 0% { transform: translate(-12cqw, 10cqw) rotate(0); } 30%, 40% { transform: translate(0, 0) rotate(-35deg); } 55%, 100% { transform: translate(0, 0) rotate(-35deg) scale(.9); } }
.gbl-road { position: absolute; left: 0; right: 0; bottom: 4cqw; height: 0; border-top: 2px dashed rgba(255, 255, 255, .35); }
.gbl-truck { position: absolute; top: -6cqw; left: 0; font-size: 7cqw; animation: gblDrive 7s linear infinite; }
@keyframes gblDrive { from { transform: translateX(-12cqw); } to { transform: translateX(100cqw); } }

/* business: bare */
.gbl-bars { position: absolute; left: 6cqw; bottom: 2cqw; width: 42cqw; height: 22cqw; display: flex; align-items: flex-end; gap: 2cqw; }
.gbl-bars i { flex: 1; height: var(--h); border-radius: 1.4cqw 1.4cqw 0 0; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .35)); transform-origin: bottom;
  animation: gblBar 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes gblBar { 0% { transform: scaleY(.15); } 35%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }

/* pontaj: telefon + card cu scanare */
.gbl-phone { position: absolute; left: 50%; top: 0; width: 34cqw; margin-left: -6cqw; padding: 1.4cqw; border-radius: 5cqw; background: #0d1117;
  transform: perspective(120cqw) rotateY(-14deg) rotateZ(5deg); box-shadow: 2cqw 6cqw 10cqw -3cqw rgba(0, 0, 0, .55), inset 0 0 0 .4cqw #2a313c; }
.gbl-phone img { display: block; width: 100%; aspect-ratio: 540 / 1170; object-fit: cover; object-position: top; border-radius: 3.8cqw; }
.gbl-scan { position: absolute; left: 8px; right: 8px; top: 8px; height: 3px; border-radius: 3px; background: #6fe0e2; box-shadow: 0 0 12px 2px #6fe0e2; animation: gblScan 2.4s ease-in-out infinite; }
@keyframes gblScan { 0%, 100% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateY(calc(23cqw - 16px)); opacity: 1; } 60% { opacity: 0; } }

/* RO: desktop mic (992–1299): coloana din stanga fixa, titluri mai mici */
/* rest-info: grafic linie + diagrama inel */
.gbl-card { position: absolute; padding: 3.4cqw 3.8cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .55); animation: gblFloat 7s ease-in-out infinite; animation-delay: var(--fl, 0s); }
.gbl-card, .gbl-card * { color: #3d0c20; }
.gbl-card-h { display: flex; align-items: center; gap: 1.6cqw; font-size: 3.4cqw; font-weight: 700; margin-bottom: 2.4cqw; }
.gbl-card-h .bi { color: #d6457a; }
.gbl-line { display: block; width: 100%; height: 24cqw; overflow: visible; }
.gbl-line .--area { fill: rgba(214, 69, 122, .14); }
.gbl-line .--stroke { fill: none; stroke: #d6457a; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: gblDraw 4s ease-in-out infinite; }
@keyframes gblDraw { 0% { stroke-dashoffset: 400; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -400; } }
.gbl-donut { position: relative; width: 22cqw; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: conic-gradient(#d6457a 0 38%, #f29bbb 0 62%, #7d5cd6 0 80%, #f2d1de 0 100%); animation: gblSpin 18s linear infinite; }
.gbl-donut span { position: absolute; inset: 22%; border-radius: 50%; background: #fff; }

@media (min-width: 992px) and (max-width: 1299.98px) {
  .gbl { grid-template-columns: 480px minmax(0, 1fr); }
  .gbl-boxes { padding: 48px 32px 48px 24px; }
  .gbl-head h2, .gbl-txt b { font-size: 18px; }
  .gbl-txt small { font-size: 13px; }
}
@media (max-width: 991.98px) {
  .gbl { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .gbl-boxes { justify-self: center; max-width: 442px; padding: 32px 16px 40px; }
  .gbl-panel { display: none; }   /* RO: pe telefon / tableta fara grafica din dreapta */
  .gbl-head h2, .gbl-txt b { font-size: 18px; }
  .gbl-ico, .gbl-box .gbl-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 19px; }
}
@media (max-width: 575.98px) {
  .gbl-box.--link { padding: 14px 52px 14px 16px; gap: 12px; height: 84px; }
  .gbl-txt small { font-size: 13px; }
}
@media (max-width: 447.98px) {
  .gbl-boxes { max-width: 412px; }
}
@media (prefers-reduced-motion: reduce) {
  .gbl-card, .gbl-line .--stroke, .gbl-donut, .gbl-chip, .gbl-shot, .gbl-ring, .gbl-orbit, .gbl-orbit i, .gbl-doc, .gbl-key, .gbl-truck, .gbl-bars i, .gbl-scan { animation: none; }
  .gbl-stamp { animation: none; transform: rotate(-8deg); }
  .gbl-line .--stroke { stroke-dashoffset: 0; }
}
