/* Pages d'authentification de l'espace client (connexion, mot de passe oublié) : panneau gauche + formulaire. */
	:root {
		--sidebar-bg: #18181b;
		--sidebar-accent: #ffcd00;
		--muted: #6b7280;
		--line: #e5e7eb;
	}
	body { background-color: #fff; overflow-x: hidden; font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
	.login-page { display: flex; min-height: 100vh; }

	/* ---------- Left brand panel ---------- */
	.login-aside {
		flex: 0 0 50%;
		min-width: 0;
		position: relative;
		background: #111113;
		color: #fff;
		padding: 3rem;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 2.5rem;
		overflow: hidden;
		isolation: isolate;
	}
	.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
	.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); background: var(--sidebar-accent); animation: drift 18s ease-in-out infinite alternate; }
	.aurora span:nth-child(1) { width: 480px; height: 480px; top: -160px; right: -120px; opacity: 0.4; }
	.aurora span:nth-child(2) { width: 380px; height: 380px; bottom: -140px; left: -100px; opacity: 0.28; animation-duration: 22s; animation-delay: -6s; }
	.aurora span:nth-child(3) { width: 260px; height: 260px; top: 45%; left: 40%; opacity: 0.12; animation-duration: 26s; animation-delay: -12s; }
	@keyframes drift {
		0%   { transform: translate(0, 0) scale(1); }
		50%  { transform: translate(-40px, 30px) scale(1.1); }
		100% { transform: translate(30px, -20px) scale(0.95); }
	}
	.login-aside::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background-image:
			linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
			linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
		background-size: 44px 44px;
		-webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
				mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
	}

	.login-aside-badge {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		font-size: 0.7rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--sidebar-accent);
		background: rgba(255,205,0,0.1);
		border: 1px solid rgba(255,205,0,0.25);
		border-radius: 999px;
		padding: 0.4rem 0.9rem;
		margin-bottom: 1.5rem;
	}
	.login-aside h1 {
		font-size: clamp(1.8rem, 2.6vw, 2.5rem);
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: -0.02em;
		max-width: 520px;
		margin-bottom: 0;
	}
	.login-aside h1 em { font-style: normal; color: var(--sidebar-accent); }
	.login-aside-text { max-width: 460px; margin-top: 0.85rem; margin-bottom: 0; color: #a1a1aa; font-size: 0.95rem; line-height: 1.5; }

	.preview-stack { position: relative; width: 100%; max-width: 600px; margin-inline: auto; }
	.preview-laptop {
		display: block;
		width: 100%;
		max-height: 52vh;
		object-fit: contain;
		filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
		animation: float 9s ease-in-out infinite;
	}
	.glass {
		position: absolute;
		background: rgba(24, 24, 27, 0.78);
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 1rem;
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
		padding: 1rem 1.1rem;
		animation: float 7s ease-in-out infinite;
	}
	.glass-label { font-size: 0.75rem; color: #a1a1aa; margin-bottom: 0.2rem; }
	.glass-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
	.glass-pay {
		margin-top: 0.75rem;
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		font-size: 0.78rem;
		font-weight: 600;
		color: #18181b;
		background: var(--sidebar-accent);
		border-radius: 0.5rem;
		padding: 0.4rem 0.75rem;
	}
	.glass-main { top: 34%; left: -24px; width: 210px; }
	.glass-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
	.glass-row small { display: block; color: #a1a1aa; font-size: 0.75rem; }
	.glass-icon {
		flex-shrink: 0;
		width: 34px;
		height: 34px;
		border-radius: 0.6rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 1rem;
	}
	.glass-icon.ok { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
	.glass-icon.info { background: rgba(255, 205, 0, 0.15); color: var(--sidebar-accent); }
	.glass-quote { top: 4%; right: -12px; width: 250px; animation-delay: -2.5s; }
	.glass-ticket { bottom: 6%; right: 4%; width: 270px; animation-delay: -5s; }
	@keyframes float {
		0%, 100% { transform: translateY(0); }
		50%      { transform: translateY(-10px); }
	}

	/* ---------- Right form panel ---------- */
	.login-main {
		flex: 0 0 50%;
		min-width: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 2.5rem 1.5rem;
		background: #fff;
		position: relative;
	}
	.login-form-wrap { width: 100%; max-width: 400px; animation: fadeUp 0.6s ease both; }
	@keyframes fadeUp {
		from { opacity: 0; transform: translateY(16px); }
		to   { opacity: 1; transform: translateY(0); }
	}
	.login-form-wrap img.login-logo-img { height: 52px; width: auto; margin-bottom: 2.5rem; }
	.login-form-wrap h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: #18181b; margin-bottom: 0.35rem; }
	.login-form-wrap .subtitle { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }

	.login-form-wrap .alert-danger { border-radius: 0.75rem; font-size: 0.85rem; }
	.login-form-wrap .alert-success { border-radius: 0.75rem; font-size: 0.85rem; background: #e8f6ec; border-color: #bfe3c9; color: #166534; }

	.form-label { font-size: 0.85rem; font-weight: 600; color: #18181b; margin-bottom: 0.45rem; }
	.input-icon { position: relative; }
	.input-icon > i {
		position: absolute;
		left: 1rem;
		top: 50%;
		transform: translateY(-50%);
		color: #9ca3af;
		font-size: 1rem;
		pointer-events: none;
		transition: color 0.15s ease;
	}
	.input-icon:focus-within > i { color: #18181b; }
	.login-form-wrap .form-control {
		height: 50px;
		border-radius: 0.75rem;
		border: 1px solid var(--line);
		background: #f9fafb;
		font-size: 0.92rem;
		padding: 0 1rem 0 2.75rem;
		transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	}
	.login-form-wrap .form-control:hover { border-color: #d1d5db; }
	.login-form-wrap .form-control:focus {
		background: #fff;
		border-color: var(--sidebar-accent);
		box-shadow: 0 0 0 4px rgba(255,205,0,0.2);
	}
	.password-field .form-control { padding-right: 3rem; }
	.password-toggle {
		position: absolute;
		right: 0.5rem;
		top: 50%;
		transform: translateY(-50%);
		width: 36px;
		height: 36px;
		border-radius: 0.5rem;
		background: none;
		border: none;
		color: #9ca3af;
		font-size: 1.05rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.password-toggle:hover { color: #18181b; background: #f3f4f6; }

	.form-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; }
	.form-check-label { font-size: 0.85rem; color: #4b5563; }
	.form-check-input:checked { background-color: #18181b; border-color: #18181b; }
	.form-check-input:focus { box-shadow: 0 0 0 0.2rem rgba(255,205,0,0.3); border-color: var(--sidebar-accent); }
	.forgot-link { font-size: 0.85rem; color: #18181b; font-weight: 500; text-decoration: none; }
	.forgot-link:hover,
	.forgot-link:focus { color: #18181b; text-decoration: underline; }

	.btn-accent {
		background: var(--sidebar-accent);
		color: #18181b;
		font-weight: 600;
		border: none;
		border-radius: 0.75rem;
		padding: 0 1.1rem;
		font-size: 0.95rem;
		transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
	}
	.btn-accent:hover { background: #f5c400; color: #18181b; box-shadow: 0 8px 20px rgba(255,205,0,0.35); transform: translateY(-1px); }
	.btn-accent:active { transform: translateY(0); }
	.btn-accent .bi-arrow-right { transition: transform 0.15s ease; }
	.btn-accent:hover .bi-arrow-right { transform: translateX(3px); }
	.btn-accent.is-loading { pointer-events: none; opacity: 0.85; }
	.login-form-wrap .btn-accent { width: 100%; height: 50px; }

	.login-extra { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }

	.login-help { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1.75rem; }
	.login-help a { color: #18181b; font-weight: 600; text-decoration: none; }
	.login-help a:hover { text-decoration: underline; }

	.login-divider { height: 1px; background: var(--line); margin: 2rem 0 1.5rem; }
	.social-links { display: flex; justify-content: center; gap: 0.6rem; }
	.social-links a {
		width: 40px;
		height: 40px;
		border-radius: 0.7rem;
		background: #f4f6f9;
		border: 1px solid var(--line);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: #6b7280;
		font-size: 1.05rem;
		transition: all 0.15s ease;
	}
	.social-links a:hover { background: var(--sidebar-accent); border-color: var(--sidebar-accent); color: #18181b; transform: translateY(-2px); }

	.login-form-wrap .modal-content { border: none; border-radius: 1rem; }
	.login-form-wrap .modal-body p { font-size: 0.88rem; color: #4b5563; line-height: 1.6; }
	.modal-footer .btn-accent { width: auto; height: 42px; }

	.captcha-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
	.captcha-row .form-control { height: 44px; }

	/* ---------- Large screens: the brand panel scales with the viewport ----------
	   Up to 1700px wide everything keeps its size; beyond, each size grows proportionally (1 "px" = 100vw / 1700), but never more than the height allows so the page does not scroll. */
	@media (min-width: 1700px) {
		.login-aside { --px: min(0.0588vw, 0.105vh); padding: calc(var(--px) * 48); gap: calc(var(--px) * 40); }
		.aurora span:nth-child(1) { width: calc(var(--px) * 480); height: calc(var(--px) * 480); top: calc(var(--px) * -160); right: calc(var(--px) * -120); }
		.aurora span:nth-child(2) { width: calc(var(--px) * 380); height: calc(var(--px) * 380); bottom: calc(var(--px) * -140); left: calc(var(--px) * -100); }
		.aurora span:nth-child(3) { width: calc(var(--px) * 260); height: calc(var(--px) * 260); }
		.login-aside::before { background-size: calc(var(--px) * 44) calc(var(--px) * 44); }
		.login-aside-badge { font-size: calc(var(--px) * 11.2); gap: calc(var(--px) * 8); padding: calc(var(--px) * 6.4) calc(var(--px) * 14.4); margin-bottom: calc(var(--px) * 24); }
		.login-aside h1 { font-size: calc(var(--px) * 40); max-width: calc(var(--px) * 520); }
		.login-aside-text { font-size: calc(var(--px) * 15.2); max-width: calc(var(--px) * 460); margin-top: calc(var(--px) * 13.6); }
		.preview-stack { max-width: calc(var(--px) * 600); }
		.glass { border-radius: calc(var(--px) * 16); padding: calc(var(--px) * 16) calc(var(--px) * 17.6); }
		.glass-label { font-size: calc(var(--px) * 12); margin-bottom: calc(var(--px) * 3.2); }
		.glass-value { font-size: calc(var(--px) * 24); }
		.glass-pay { margin-top: calc(var(--px) * 12); gap: calc(var(--px) * 6.4); font-size: calc(var(--px) * 12.5); padding: calc(var(--px) * 6.4) calc(var(--px) * 12); border-radius: calc(var(--px) * 8); }
		.glass-main { left: calc(var(--px) * -24); width: calc(var(--px) * 210); }
		.glass-row { gap: calc(var(--px) * 12); font-size: calc(var(--px) * 13.6); }
		.glass-row small { font-size: calc(var(--px) * 12); }
		.glass-icon { border-radius: calc(var(--px) * 9.6); width: calc(var(--px) * 34); height: calc(var(--px) * 34); font-size: calc(var(--px) * 16); }
		.glass-quote { right: calc(var(--px) * -12); width: calc(var(--px) * 250); }
		.glass-ticket { width: calc(var(--px) * 270); }
	}
	@media (max-width: 1199.98px) { .glass { display: none; } }
	@media (max-width: 991.98px) {
		.login-aside { display: none; }
		.login-main { flex-basis: 100%; }
		.login-main {
			background: radial-gradient(120% 320px at 50% 0, rgba(255,205,0,0.16), rgba(255,205,0,0) 100%), #fff;
			align-items: flex-start;
			padding-top: 3.5rem;
		}
	}
	@media (max-width: 340px) { .form-options { flex-direction: column; align-items: flex-start; gap: 0.6rem; } }
	@media (prefers-reduced-motion: reduce) { .aurora span, .glass, .preview-laptop, .login-form-wrap { animation: none; } }

	/* ---------- Pages d'authentification secondaires (mot de passe oublié) ---------- */
	.auth-msg { margin-bottom: 1.25rem; }
	.auth-msg .text-danger,
	.auth-msg .warning {
		display: block;
		border-radius: 0.75rem;
		padding: 0.75rem 1rem;
		font-size: 0.85rem;
		line-height: 1.5;
	}
	.auth-msg .text-danger { background: #fdeceb; color: #b3261e !important; }
	.auth-msg .warning { background: #fff7d1; color: #5c4a00; }
	.auth-back { display: flex; justify-content: center; margin-top: 1.25rem; }
	.auth-back a { display: inline-flex; align-items: center; gap: 0.4rem; }
	.auth-help {
		margin-top: 1.75rem;
		padding-top: 1.5rem;
		border-top: 1px solid var(--line);
		font-size: 0.82rem;
		line-height: 1.6;
		color: var(--muted);
	}
	.captcha-row .captcha-refresh {
		background: none; border: 1px solid var(--line); border-radius: 0.6rem; width: 44px; height: 44px;
		color: #6b7280; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease;
	}
	.captcha-row .captcha-refresh:hover { border-color: var(--sidebar-accent); color: #18181b; }
	.auth-steps { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
	.auth-steps li { display: flex; align-items: center; gap: 0.65rem; color: #374151; font-size: 0.75rem; line-height: 1.4; }
	.auth-step-icon {
		flex-shrink: 0;
		width: 26px;
		height: 26px;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: #fff7d1;
		color: #8a6d00;
		font-size: 0.82rem;
	}
	.auth-tip { margin: 0; font-size: 0.72rem; color: #9ca3af; text-align: center; }

