/* Généré par build.sh — ne pas modifier : éditer src/hero-part.css et src/form-part.css */
/* LogAbax : scène du panneau (reprise de keycloak-theme/hero-part.css, elle-même issue de mailcow-theme et du module ERP logabaxlogin) */
@font-face {
	font-family: "LogAbax Inter";
	src: url("inter-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
:root {
	--lgbx-navy-950: #050f26;
	--lgbx-navy-900: #081a3e;
	--lgbx-navy-800: #0b2457;
	--lgbx-navy-600: #1d4fa8;
	--lgbx-turq: #1bb8d8;
	--lgbx-turq-l: #5fd6ec;
	--lgbx-ink: #0b1d3f;
	--lgbx-muted: #64708a;
	--lgbx-line: #dbe2ee;
	--lgbx-field: #f5f7fb;
	--lgbx-font: "LogAbax Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Panneau immersif ---------- */
.lgbx-hero {
	position: relative;
	flex: 1 1 58%;
	min-height: 100vh;
	box-sizing: border-box;
	padding: 44px 56px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(120% 90% at 85% 40%, #12407e 0%, rgba(18, 64, 126, 0) 60%),
		linear-gradient(160deg, var(--lgbx-navy-950) 0%, var(--lgbx-navy-900) 45%, var(--lgbx-navy-800) 100%);
	isolation: isolate;
}
.lgbx-hero::after {	/* voile de lisibilité sous le texte */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(5, 15, 38, .82) 0%, rgba(5, 15, 38, .45) 38%, rgba(5, 15, 38, 0) 65%);
}
.lgbx-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: .55;
	z-index: 0;
	will-change: transform;
}
.lgbx-glow-1 {
	width: 46vw; height: 46vw;
	right: -12vw; top: -14vw;
	background: radial-gradient(circle, rgba(27, 184, 216, .55), rgba(27, 184, 216, 0) 70%);
	animation: lgbx-drift-1 22s ease-in-out infinite alternate;
}
.lgbx-glow-2 {
	width: 38vw; height: 38vw;
	left: 10vw; bottom: -20vw;
	background: radial-gradient(circle, rgba(29, 79, 168, .7), rgba(29, 79, 168, 0) 70%);
	animation: lgbx-drift-2 26s ease-in-out infinite alternate;
}
.lgbx-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 65% 50%, #000 0%, transparent 75%);
}

/* Scène en rotation */
.lgbx-scene {
	--s: clamp(560px, 96vh, 1000px);
	--px: 0px;
	--py: 0px;
	position: absolute;
	z-index: 0;
	width: var(--s);
	height: var(--s);
	left: 70%;
	top: 52%;
	transform: translate(-50%, -50%) translate3d(var(--px), var(--py), 0);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.lgbx-orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lgbx-r { transform-box: view-box; transform-origin: 0 0; animation: lgbx-spin linear infinite; }
.lgbx-r-a    { animation-duration: 140s; }
.lgbx-r-text { animation-duration: 110s; animation-direction: reverse; }
.lgbx-r-b    { animation-duration: 48s; }
.lgbx-r-c    { animation-duration: 30s; animation-direction: reverse; }
.lgbx-r-d    { animation-duration: 9s; }
.lgbx-r-tri  { animation-duration: 60s; }

.lgbx-ring-dots  { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 1 13; stroke-linecap: round; }
.lgbx-ring-text  { fill: rgba(255, 255, 255, .22); font: 600 17px var(--lgbx-font); letter-spacing: 6px; }
.lgbx-ring-dash  { fill: none; stroke: rgba(27, 184, 216, .45); stroke-width: 1.5; stroke-dasharray: 260 50 40 50 120 40; }
.lgbx-ring-thin  { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.lgbx-ring-sweep { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 320 600; }
.lgbx-tri-mark   { fill: var(--lgbx-turq); filter: drop-shadow(0 0 6px rgba(27, 184, 216, .9)); }
.lgbx-dim        { opacity: .5; }
.lgbx-node       { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.lgbx-tri-outline { fill: none; stroke: rgba(95, 214, 236, .35); stroke-width: 1.5; stroke-linejoin: round; }
.lgbx-core { transform-box: view-box; transform-origin: 0 0; animation: lgbx-breathe 6s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(27, 184, 216, .75)); }
.lgbx-core-glow { animation: lgbx-pulse 6s ease-in-out infinite; transform-origin: 0 0; }

/* Satellites (étiquettes qui tournent en restant droites) */
.lgbx-sat-ring {
	position: absolute;
	inset: var(--i);
	animation: lgbx-spin var(--t) linear infinite;
	animation-delay: var(--delay);
}
.lgbx-sat-ring.lgbx-rev { animation-direction: reverse; }
.lgbx-sat { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.lgbx-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 11px;
	border-radius: 999px;
	white-space: nowrap;
	font: 500 13px/1 var(--lgbx-font);
	color: #e8f7fb;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: lgbx-spin var(--t) linear infinite reverse;
	animation-delay: var(--delay);
}
.lgbx-rev .lgbx-chip { animation-direction: normal; }
.lgbx-chip i {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--lgbx-turq);
	box-shadow: 0 0 0 3px rgba(27, 184, 216, .2), 0 0 10px rgba(27, 184, 216, .9);
}

/* Texte du panneau */
.lgbx-hero-top, .lgbx-hero-text, .lgbx-hero-foot { position: relative; z-index: 2; }
.lgbx-logo-white { height: 30px; width: auto; display: block; }
.lgbx-hero-text { max-width: 470px; }
.lgbx-kicker {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 18px;
	font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--lgbx-turq-l);
}
.lgbx-kicker span { width: 28px; height: 2px; background: var(--lgbx-turq); border-radius: 2px; }
.lgbx-hero h2 {
	margin: 0 0 18px;
	font-size: clamp(34px, 3.6vw, 52px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #fff;
	text-shadow: none;
}
.lgbx-rotator { display: inline-grid; vertical-align: top; overflow: hidden; padding-bottom: .08em; }
.lgbx-rotator > span {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(70%);
	transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
	background: linear-gradient(90deg, var(--lgbx-turq-l), #9be9f7 60%, #ffffff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lgbx-rotator > span.is-in  { opacity: 1; transform: none; }
.lgbx-rotator > span.is-out { opacity: 0; transform: translateY(-70%); }
.lgbx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lgbx-lead { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(225, 235, 250, .78); max-width: 400px; }
.lgbx-hero-foot { font-size: 12px; color: rgba(225, 235, 250, .45); letter-spacing: .02em; }

/* ---------- Animations ---------- */
@keyframes lgbx-spin { to { transform: rotate(360deg); } }
@keyframes lgbx-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes lgbx-pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes lgbx-drift-1 { to { transform: translate(-8vw, 10vh) scale(1.1); } }
@keyframes lgbx-drift-2 { to { transform: translate(10vw, -8vh) scale(.92); } }
@keyframes lgbx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* LogAbax : colonne formulaire des pages de connexion GitLab (forge.logabax.fr).
 * Tout est limité à body.lgbx (classe posée par forge-login.js) : sans le script, la page native reste intacte. */

/* ---------- Mise en page : panneau à gauche, colonne à droite ---------- */
body.lgbx {
	flex-direction: row !important;
	min-height: 100vh;
	margin: 0;
	background: #fff;
	font-family: var(--lgbx-font);
	-webkit-font-smoothing: antialiased;
	color: var(--lgbx-ink);
	overflow-x: hidden;
}
body.lgbx .lgbx-col {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 42%;
	min-width: 420px;
	min-height: 100vh;
	box-sizing: border-box;
	padding: 40px 24px 28px;
	background: #fff;
}
body.lgbx .lgbx-col > .gl-grow { flex: 1 1 auto; display: flex; width: 100%; }
body.lgbx .lgbx-col .container {
	width: 100%;
	max-width: 380px;
	padding: 0;
	margin: auto;
	animation: lgbx-rise .8s cubic-bezier(.2, .8, .2, 1) both;
}
body.lgbx .lgbx-col main.content { padding: 0; margin: 0; }
body.lgbx .lgbx-col .bar { width: 100% !important; margin: 0 !important; display: flex; flex-direction: column; }

/* Pied GitLab (Explorer, Aide, À propos de GitLab…) et en-tête natif (logo + titre) masqués */
body.lgbx .lgbx-col .footer-container,
body.lgbx .lgbx-col > .gl-w-full.gl-self-end { display: none; }
body.lgbx .lgbx-native-head { display: none !important; }

/* ---------- En-tête du formulaire ---------- */
.lgbx-formhead { margin-bottom: 28px; }
.lgbx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 14px;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: rgba(27, 184, 216, .1);
	color: #0f7f99;
	font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.lgbx-lock { width: 10px; height: 8px; position: relative; top: 2px; border-radius: 2px; background: currentColor; }
.lgbx-lock::before {
	content: ""; position: absolute; left: 2px; top: -5px;
	width: 6px; height: 6px; box-sizing: border-box;
	border: 1.6px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0;
}
.lgbx-formhead h1 {
	margin: 0 0 8px;
	font-family: var(--lgbx-font);
	font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em;
	color: var(--lgbx-ink);
}
.lgbx-sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lgbx-muted); }

/* ---------- Bouton SSO LogAbax : en premier et mis en avant ---------- */
body.lgbx .js-oauth-login { order: -2; margin: 0 0 6px !important; text-align: left !important; }
body.lgbx .js-oauth-login .btn,
body.lgbx .lgbx-col .btn-confirm {
	min-height: 52px;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--lgbx-navy-800) 0%, var(--lgbx-navy-600) 100%) !important;
	color: #fff !important;
	font: 600 15px var(--lgbx-font) !important;
	box-shadow: 0 14px 30px -14px rgba(11, 36, 87, .8) !important;
	transition: transform .15s, box-shadow .2s, filter .2s;
}
body.lgbx .js-oauth-login .btn:hover,
body.lgbx .lgbx-col .btn-confirm:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.lgbx .js-oauth-login .btn:focus-visible,
body.lgbx .lgbx-col .btn-confirm:focus-visible { outline: 3px solid rgba(27, 184, 216, .45); outline-offset: 2px; }
body.lgbx .js-oauth-login .btn .gl-button-text { color: #fff !important; }
body.lgbx .js-oauth-login .btn img.gl-button-icon { display: none; }	/* icône OpenID générique */
body.lgbx .js-oauth-login .gl-form-checkbox,
body.lgbx .js-oauth-login .custom-control { margin-top: 10px; text-align: left; font-size: 14px; color: var(--lgbx-muted); }

/* Séparateur « ou avec un compte local » */
body.lgbx [data-testid="divider"] {
	order: -1;
	margin: 22px 0 18px;
	font-size: 13px; color: var(--lgbx-muted);
}
body.lgbx [data-testid="divider"] hr { border-color: var(--lgbx-line) !important; }

/* ---------- Formulaire local (comptes GitLab locaux, dont root en secours) ---------- */
body.lgbx .lgbx-col label,
body.lgbx .lgbx-col legend { font-size: 13px; font-weight: 600; color: var(--lgbx-ink); }
body.lgbx .lgbx-col input.form-control,
body.lgbx .lgbx-col input.gl-form-input {
	min-height: 52px;
	box-sizing: border-box;
	border: 1.5px solid var(--lgbx-line) !important;
	border-radius: 12px !important;
	background: var(--lgbx-field) !important;
	box-shadow: none !important;
	font: 15px var(--lgbx-font);
	color: var(--lgbx-ink);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
body.lgbx .lgbx-col input.form-control:hover,
body.lgbx .lgbx-col input.gl-form-input:hover { border-color: #c3cde0 !important; }
body.lgbx .lgbx-col input.form-control:focus,
body.lgbx .lgbx-col input.gl-form-input:focus {
	border-color: var(--lgbx-turq) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(27, 184, 216, .15) !important;
	outline: none;
}
/* Le bouton du formulaire local reste secondaire : contour marine */
body.lgbx .js-non-oauth-login .btn-confirm {
	background: #fff !important;
	color: var(--lgbx-navy-800) !important;
	border: 1.5px solid var(--lgbx-navy-800) !important;
	box-shadow: none !important;
}
body.lgbx .js-non-oauth-login .btn-confirm .gl-button-text { color: var(--lgbx-navy-800) !important; }
body.lgbx .lgbx-col a { color: var(--lgbx-navy-600); }
body.lgbx .lgbx-col a:hover { color: #1593c2; }

/* Mention en bas de colonne */
.lgbx-legal { margin-top: auto; padding-top: 24px; font-size: 12px; color: #8a94a8; letter-spacing: .02em; }

/* ---------- Petits écrans : panneau masqué, colonne pleine largeur ---------- */
@media (max-width: 900px) {
	body.lgbx .lgbx-hero { display: none; }
	body.lgbx .lgbx-col { flex: 1 1 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.lgbx-r, .lgbx-core, .lgbx-core-glow, .lgbx-glow, .lgbx-sat-ring, .lgbx-chip, body.lgbx .lgbx-col .container { animation: none !important; }
	.lgbx-rotator > span { transition: none; }
	.lgbx-scene { transition: none; }
}

/* Boutons secondaires (Passkey…) alignés sur les champs */
body.lgbx .js-non-oauth-login .btn-default {
	min-height: 44px;
	border-radius: 12px !important;
	border-color: var(--lgbx-line) !important;
	font-family: var(--lgbx-font);
	color: var(--lgbx-ink);
}
