/*
 * bbip-login.css — BB Labs Investor Portal v1.5
 * WOW-factor investor access screen. Full-bleed background photo,
 * glass morphism card, cinematic depth layers, animated accents.
 */

/* ── Background layers ─────────────────────────────────────────────────────── */
.bbip-bg-layer {
	position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

/* Photo layer - full bleed, slightly zoomed for depth */
.bbip-bg-photo {
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	transform: scale(1.05);
	filter: brightness(0.7) saturate(1.1);
	z-index: 0;
}

/* Rich gradient over the photo */
.bbip-bg-gradient {
	background:
		radial-gradient(ellipse 120% 80% at 60% 30%, rgba(79,46,209,.35) 0%, transparent 60%),
		radial-gradient(ellipse 80% 60% at 20% 80%, rgba(14,165,233,.18) 0%, transparent 55%),
		linear-gradient(160deg, rgba(5,8,24,.7) 0%, rgba(11,13,18,.6) 50%, rgba(6,4,20,.8) 100%);
	z-index: 1;
}

/* Subtle grid texture */
.bbip-bg-grid {
	background-image:
		linear-gradient(rgba(79,110,247,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(79,110,247,.05) 1px, transparent 1px);
	background-size: 64px 64px;
	z-index: 2;
}

/* Cinematic vignette */
.bbip-bg-vignette {
	background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.75) 100%);
	z-index: 3;
}

/* ── Login stage ────────────────────────────────────────────────────────────── */
.bbip-login-stage {
	position: relative; z-index: 10;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	min-height: 100vh; padding: 40px 20px; gap: 28px;
}

/* ── Login card — full glassmorphism ─────────────────────────────────────────── */
.bbip-login-card {
	width: 100%; max-width: 460px;
	background: rgba(8,12,28,.82);
	border: 1px solid rgba(79,110,247,.22);
	border-radius: 20px;
	padding: 44px 40px 40px;
	backdrop-filter: blur(28px) saturate(160%);
	-webkit-backdrop-filter: blur(28px) saturate(160%);
	box-shadow:
		0 0 0 1px rgba(79,110,247,.08),
		0 40px 100px rgba(0,0,0,.65),
		0 0 60px rgba(79,46,209,.12),
		inset 0 1px 0 rgba(255,255,255,.06);
	position: relative;
	overflow: hidden;
}

/* Top shimmer accent */
.bbip-login-card::before {
	content: '';
	position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(124,58,237,.6), rgba(79,110,247,.6), transparent);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.bbip-login-header {
	display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}

.bbip-login-logo { flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(79,110,247,.5)); }

.bbip-login-branding { display: flex; flex-direction: column; }

.bbip-login-org {
	font-size: 12px; font-weight: 800; color: #818cf8;
	letter-spacing: .12em; text-transform: uppercase;
}

.bbip-login-portal-label {
	font-size: 10px; color: rgba(226,228,237,.4);
	letter-spacing: .1em; text-transform: uppercase; margin-top: 2px;
}

/* ── Funnel badge ───────────────────────────────────────────────────────────── */
.bbip-funnel-badge {
	display: inline-block; padding: 5px 14px; border-radius: 20px;
	font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	margin-bottom: 20px;
}

.bbip-funnel-badge--bb {
	background: rgba(79,110,247,.12); color: #818cf8;
	border: 1px solid rgba(79,110,247,.25);
	box-shadow: 0 0 16px rgba(79,110,247,.15);
}

.bbip-funnel-badge--lumo {
	background: rgba(14,165,233,.12); color: #38bdf8;
	border: 1px solid rgba(14,165,233,.25);
	box-shadow: 0 0 16px rgba(14,165,233,.15);
}

/* ── Headline ───────────────────────────────────────────────────────────────── */
.bbip-login-title {
	font-size: 24px; font-weight: 800; color: var(--bbip-text);
	margin: 0 0 10px; line-height: 1.15; letter-spacing: -.01em;
}

.bbip-login-subtitle {
	font-size: 14px; color: rgba(226,228,237,.5);
	line-height: 1.65; margin: 0 0 24px;
}

/* ── Rule divider ───────────────────────────────────────────────────────────── */
.bbip-rule {
	display: flex; align-items: center; gap: 12px; margin: 20px 0;
}

.bbip-rule-line { flex: 1; height: 1px; background: rgba(79,110,247,.15); }
.bbip-rule-sigil { font-size: 10px; color: rgba(79,110,247,.4); }

/* ── Form ───────────────────────────────────────────────────────────────────── */
.bbip-login-form { display: flex; flex-direction: column; gap: 16px; }

.bbip-field-group { position: relative; }

.bbip-input-shell {
	display: flex; align-items: center;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(79,110,247,.18);
	border-radius: 10px; overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bbip-input-shell:focus-within {
	border-color: rgba(79,110,247,.55);
	box-shadow: 0 0 0 3px rgba(79,110,247,.12), 0 0 20px rgba(79,110,247,.08);
}

.bbip-input-icon {
	display: flex; align-items: center;
	padding: 0 14px; color: rgba(226,228,237,.3);
	flex-shrink: 0;
}

.bbip-password-field {
	flex: 1; background: transparent; border: none; outline: none;
	color: var(--bbip-text); font-size: 15px; padding: 14px 0;
}

.bbip-password-field::placeholder { color: rgba(226,228,237,.25); }

.bbip-toggle-visibility {
	background: transparent; border: none; cursor: pointer;
	padding: 0 14px; color: rgba(226,228,237,.3);
	display: flex; align-items: center; transition: color 160ms ease;
}

.bbip-toggle-visibility:hover { color: rgba(226,228,237,.7); }
.bbip-eye-closed { display: none; }
.bbip-input-shell.bbip-pass-visible .bbip-eye-open  { display: none; }
.bbip-input-shell.bbip-pass-visible .bbip-eye-closed{ display: block; }

/* ── Error banner ───────────────────────────────────────────────────────────── */
.bbip-error-banner {
	display: flex; align-items: center; gap: 8px;
	background: rgba(239,68,68,.08);
	border: 1px solid rgba(239,68,68,.22);
	border-radius: 8px; padding: 11px 14px;
	font-size: 13px; color: #fca5a5;
}

.bbip-error-banner[hidden] { display: none; }

/* ── Submit button ──────────────────────────────────────────────────────────── */
.bbip-btn-enter {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; position: relative; overflow: hidden;
	background: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
	color: #fff; border: none; border-radius: 10px;
	padding: 15px 24px; font-size: 15px; font-weight: 700;
	letter-spacing: .02em; cursor: pointer;
	transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
	box-shadow: 0 8px 32px rgba(79,110,247,.35), 0 2px 8px rgba(0,0,0,.4);
}

.bbip-btn-enter::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
}

.bbip-btn-enter:hover:not(:disabled) {
	opacity: .92; transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(79,110,247,.45), 0 4px 12px rgba(0,0,0,.5);
}

.bbip-btn-enter:active { transform: translateY(0); }
.bbip-btn-enter:disabled { opacity: .55; cursor: default; transform: none; }

.bbip-btn-loader {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
	border-radius: 50%; animation: bbip-spin .65s linear infinite; display: none;
}

.bbip-btn-enter.bbip-loading .bbip-btn-loader { display: block; }
.bbip-btn-enter.bbip-loading .bbip-btn-label,
.bbip-btn-enter.bbip-loading .bbip-btn-arrow { opacity: 0; }

@keyframes bbip-spin { to { transform: rotate(360deg); } }

/* ── Trust line ─────────────────────────────────────────────────────────────── */
.bbip-access-notice {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px; color: rgba(226,228,237,.4); margin: 4px 0 0;
}

.bbip-access-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--bbip-ok); flex-shrink: 0;
	box-shadow: 0 0 6px rgba(34,197,94,.6);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.bbip-portal-footer {
	font-size: 12px; color: rgba(226,228,237,.3); text-align: center;
}

.bbip-portal-footer a { color: rgba(226,228,237,.3); }
.bbip-portal-footer a:hover { color: rgba(226,228,237,.6); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.bbip-login-card { padding: 32px 22px 28px; }
	.bbip-login-title { font-size: 20px; }
}
