/* BBE login page (body.bbe-login is set by bbe_login.js wherever the sign-in page is shown: / and /login) */
body.bbe-login { background: linear-gradient(160deg, #fff8f5 0%, #fdf3fb 45%, #f3f0ff 100%) !important; min-height: 100vh; }
body.bbe-login .page-content-wrapper, body.bbe-login main, body.bbe-login .page_content, body.bbe-login .container { background: transparent !important; }
.bbe-login-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bbe-rainbow-arc { position: absolute; left: 50%; bottom: -2vh; width: 118vw; max-width: 1450px; transform: translateX(-50%); height: 78vh; opacity: .32; }
.bbe-glow { position: absolute; left: 50%; top: 42%; width: 760px; height: 620px; transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); }
body.bbe-login .login-content.page-card, body.bbe-login .page-card { position: relative; z-index: 1; background: rgba(255,255,255,.92);
	border-radius: 22px; padding: 30px 30px 26px !important; box-shadow: 0 24px 60px rgba(122,94,168,.16), 0 2px 6px rgba(122,94,168,.08);
	border: 1px solid rgba(201,182,236,.45); backdrop-filter: blur(6px); }
body.bbe-login .login-content.page-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, #f5a3b8, #f7c8a0, #f6e7a1, #b8e3c8, #a9cdf0, #c9b6ec); }
body.bbe-login .page-card-head h4, body.bbe-login .page-card-head .page-card-title { color: #5b4a7a; }
body.bbe-login .btn-primary, body.bbe-login .form-login button[type="submit"], body.bbe-login .btn-login,
body.bbe-login .form-signin button.es-button[type="submit"], body.bbe-login .page-card-actions button:first-child {
	background: linear-gradient(90deg, #9b7fd1, #e58fb0) !important; border: 0 !important; color: #fff !important;
	box-shadow: 0 8px 20px rgba(155,127,209,.35); }
body.bbe-login .btn-primary:hover { filter: brightness(1.05); }
body.bbe-login input.form-control:focus { border-color: #c9b6ec !important; box-shadow: 0 0 0 3px rgba(201,182,236,.35) !important; }

.bbe-portal-links { position: relative; z-index: 1; margin: 22px auto 30px; max-width: 420px; text-align: center; }
.bbe-portal-title { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: #9a8fb0; margin-bottom: 10px; }
.bbe-portal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bbe-portal-btn { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; border-radius: 14px;
	background: rgba(255,255,255,.96); border: 1px solid rgba(201,182,236,.6); color: #3d3550 !important; box-shadow: 0 6px 18px rgba(122,94,168,.08); text-decoration: none !important;
	transition: transform .15s, box-shadow .15s; }
.bbe-portal-btn:hover, .bbe-portal-btn.active { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(122,94,168,.15); border-color: #c9b6ec; }
.bbe-portal-btn b { display: block; font-size: 14px; }
.bbe-portal-btn small { display: block; color: #8a8199; font-size: 11.5px; }
.bbe-portal-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #f5a3b8, #c9b6ec); }
.bbe-portal-promoter .bbe-portal-dot { background: linear-gradient(135deg, #a9cdf0, #b8e3c8); }
@media (max-width: 480px) { .bbe-portal-buttons { grid-template-columns: 1fr; } }

/* butterflies */
.bbe-bf { position: absolute; width: 64px; height: 48px; opacity: .9; filter: drop-shadow(0 4px 6px rgba(122,94,168,.18)); }
.bbe-bf-svg { width: 100%; height: 100%; overflow: visible; }
.bbe-bf-wing { transform-origin: 32px 24px; }
/* */ .bbe-bf-left { animation: bbe-flap-l .55s ease-in-out infinite alternate; }
.bbe-bf-right { animation: bbe-flap-r .55s ease-in-out infinite alternate; }
@keyframes bbe-flap-l { from { transform: scaleX(1); } to { transform: scaleX(.6) skewY(-4deg); } }
@keyframes bbe-flap-r { from { transform: scaleX(1); } to { transform: scaleX(.6) skewY(4deg); } }
.bbe-bf-1 { left: 8%; top: 70%; animation: bbe-fly-1 22s ease-in-out infinite; }
.bbe-bf-2 { left: 78%; top: 62%; width: 52px; height: 39px; animation: bbe-fly-2 26s ease-in-out infinite; }
.bbe-bf-3 { left: 18%; top: 22%; width: 44px; height: 33px; animation: bbe-fly-3 30s ease-in-out infinite; }
.bbe-bf-4 { left: 70%; top: 16%; width: 56px; height: 42px; animation: bbe-fly-4 24s ease-in-out infinite; }
@keyframes bbe-fly-1 { 0% { transform: translate(0,0) rotate(-8deg); } 25% { transform: translate(14vw,-22vh) rotate(10deg); }
	50% { transform: translate(26vw,-8vh) rotate(-4deg); } 75% { transform: translate(10vw,-30vh) rotate(12deg); } 100% { transform: translate(0,0) rotate(-8deg); } }
@keyframes bbe-fly-2 { 0% { transform: translate(0,0) rotate(6deg); } 33% { transform: translate(-16vw,-18vh) rotate(-10deg); }
	66% { transform: translate(-6vw,-34vh) rotate(8deg); } 100% { transform: translate(0,0) rotate(6deg); } }
@keyframes bbe-fly-3 { 0% { transform: translate(0,0); } 50% { transform: translate(12vw,16vh) rotate(14deg); } 100% { transform: translate(0,0); } }
@keyframes bbe-fly-4 { 0% { transform: translate(0,0); } 50% { transform: translate(-14vw,20vh) rotate(-12deg); } 100% { transform: translate(0,0); } }
@media (prefers-reduced-motion: reduce) { .bbe-bf, .bbe-bf-wing { animation: none !important; } }
@media (max-width: 640px) { .bbe-bf-3, .bbe-bf-4 { display: none; } .bbe-rainbow-arc { height: 40vh; } }
