/* Sign-in and sign-up pages: a brand panel beside the form. */
.bbe { display: flex; flex-wrap: wrap; min-height: 100vh; overflow-x: clip; background: #fff; font-family: 'Open Sans', sans-serif; color: #525f7f; }
.bbe a { color: #4c5fd5; }
.bbe a:hover { color: #3346b8; }

.bbe-brand {
  position: relative;
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  margin: 16px;
  padding: 44px 52px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #141831 0%, #2a2f66 60%, #5e4fc4 100%);
}
.bbe-brand::before,
.bbe-brand::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.bbe-brand::before { width: 420px; height: 420px; right: -140px; top: -120px; background: rgba(255, 2, 108, 0.28); animation: bbe-drift 16s ease-in-out infinite alternate; }
.bbe-brand::after { width: 380px; height: 380px; left: -120px; bottom: -140px; background: rgba(17, 167, 196, 0.26); animation: bbe-drift 20s ease-in-out infinite alternate-reverse; }
@keyframes bbe-drift { to { transform: translate(40px, 30px) scale(1.12); } }
.bbe-brand > * { position: relative; z-index: 1; }

.bbe-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-size: 18px; font-weight: 700; text-decoration: none; }
.bbe-logo-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.bbe-logo-icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
/* A field people never see or fill. Clipped, so it can't widen the page. */
.bbe-offscreen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.bbe-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); font-size: 12.5px; font-weight: 700; }
.bbe-pill i { color: #7df0b8; }
.bbe-brand h1 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 800; color: #fff; }
.bbe-brand h1 em { font-style: normal; background: linear-gradient(100deg, #ff7ab8, #ffb27f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bbe-lead { margin: 0 0 24px; max-width: 520px; font-size: 15px; line-height: 1.7; color: #d9dcf5; }

.bbe-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #fff; }
.bbe-steps li { display: flex; align-items: center; gap: 12px; }
.bbe-steps li > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.15); font-weight: 700; font-size: 13px; }

.bbe-trust { margin: 0; font-size: 12px; color: #aab2d6; }

.bbe-form-side { position: relative; flex: 1 1 520px; display: flex; align-items: center; justify-content: center; padding: 72px 32px 48px; }
/* The way back to the marketing site, in the top right corner. */
.bbe-back { position: absolute; top: 24px; right: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #67748e; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.bbe-back:hover, .bbe-back:focus-visible { background: #f1f3f9; color: #32325d; }
.bbe-back i { font-size: 12px; transition: transform 0.15s ease; }
.bbe-back:hover i { transform: translateX(-3px); }
.bbe-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.bbe-form h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: #32325d; }
/* Says plainly, above the heading, that this is a free trial and how long it lasts. */
.bbe-trial-tag { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #eef0fb; color: #4c51bf; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }
.bbe-trial-tag i { font-size: 12px; }
.bbe-trial-note { margin: -6px 0 0; text-align: center; }
.bbe-form .bbe-sub { margin: 0; font-size: 14px; line-height: 1.5; }
.bbe-form form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.bbe-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bbe-field label { margin: 0; font-size: 13px; font-weight: 600; color: #32325d; }
.bbe-field .form-control, .bbe-input { min-height: 46px; border: 1px solid #d6dae3; border-radius: 0.5rem; padding: 0 14px; font-size: 14px; color: #32325d; box-shadow: none; }
.bbe-field .form-control:focus, .bbe-input:focus { border-color: #5e72e4; box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.15); outline: 0; }
.bbe-help { font-size: 12px; color: #67748e; line-height: 1.45; }
.bbe-error { font-size: 12px; color: #c0263d; }

.bbe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin: 0; border: 0; border-radius: 0.5rem; background: #221c35; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.bbe-btn:hover { background: #2f2850; box-shadow: 0 8px 18px -8px rgba(34, 28, 53, 0.6); }
.bbe-btn:active { transform: scale(0.99); }
.bbe-btn:disabled { opacity: 0.7; cursor: default; }
.bbe-btn.is-outline { background: #fff; color: #32325d !important; border: 1px solid #d6dae3; }
.bbe-btn.is-outline:hover { background: #f7f8fc; box-shadow: none; }

.bbe-or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #67748e; }
.bbe-or::before, .bbe-or::after { content: ''; flex: 1; height: 1px; background: #e3e6ee; }
.bbe-legal { margin: 0; font-size: 12px; color: #8a94ad; }

@media (max-width: 1099px) {
  /* Small screens: only the logo and name, on the page's own white. */
  .bbe { flex-direction: column; flex-wrap: nowrap; }
  .bbe-brand { flex: 0 0 auto; margin: 0; padding: 24px 20px 8px; border-radius: 0; overflow: visible; background: none; color: #32325d; }
  .bbe-brand::before, .bbe-brand::after, .bbe-brand > div, .bbe-brand > span { display: none; }
  .bbe-logo { color: #32325d !important; }
  .bbe-logo-icon { box-shadow: 0 0 0 1px #e3e6ee, 0 6px 14px -8px rgba(34, 28, 53, 0.35); }
  /* The form sits in the middle of what is left under the logo. */
  .bbe-form-side { flex: 1 1 auto; padding: 24px 20px 72px; align-items: center; }
  /* On a phone it shares the logo row, on the right. */
  .bbe-back { top: -44px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbe-brand::before, .bbe-brand::after { animation: none; }
}

/* Sign-in: points that sort into territories on a map and then form the logo, with product moments below. */
/* The map's own shape (about 16:10), so it fills the panel's width; centred and capped on very wide panels. */
.bbe-map { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 10; margin: 0 auto 36px; }
.bbe-map.is-compact { margin-bottom: 56px; }  /* trial page: room between the map's text line and the heading */
.bbe-map canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.bbe-map-line { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 11.5px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.02em; color: #9fb0ff; pointer-events: none; }
.bbe-map-line i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2.5px; }
.bbe-moments { position: relative; height: 132px; margin-top: 8px; }
.bbe-moment { position: absolute; left: 0; top: 0; width: 100%; max-width: 360px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.bbe-moment.is-on { opacity: 1; transform: none; }
.bbe-moment.is-was { opacity: 0.32; transform: translateY(66px) scale(0.94); }
.bbe-moment i { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--c); color: #fff; font-size: 15px; }
.bbe-moment b { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.bbe-moment span { display: block; font-size: 12px; color: #c9cff2; }
@media (max-width: 1099px) { .bbe-map, .bbe-moments { display: none; } }
@media (prefers-reduced-motion: reduce) { .bbe-moment { transition: none; } }

/* Password box with a show/hide button at its right edge. */
.bbe-password { position: relative; }
.bbe-password input { padding-right: 46px !important; }
.bbe-password-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: grid; place-items: center; border: 0; background: none; color: #8a94ad; cursor: pointer; border-radius: 0 0.5rem 0.5rem 0; }
.bbe-password-toggle:hover, .bbe-password-toggle:focus-visible { color: #32325d; }
.bbe-password-toggle:focus-visible { outline: 2px solid #5e72e4; outline-offset: -2px; }
/* A failed sign-in or other form-wide message, shown where it cannot be missed. */
.bbe-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 0.5rem; background: #fdecef; border: 1px solid #f6c5cd; color: #8f1d30; font-size: 13.5px; line-height: 1.45; }
.bbe-alert i { margin-top: 2px; }
.bbe-alert a { color: #8f1d30; font-weight: 700; text-decoration: underline; }
.bbe-alert.is-ok { background: #e8f8ef; border-color: #bfe8d1; color: #17603c; }
/* Short pages in the sign-in family: check your inbox, reset password. */
.bbe-note { display: flex; flex-direction: column; gap: 14px; }
.bbe-note-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #eef0fb; color: #4c51bf; font-size: 18px; }
.bbe-note p { margin: 0; font-size: 14px; line-height: 1.6; }
.bbe-note strong { color: #32325d; overflow-wrap: anywhere; }
/* The next steps on those pages, as buttons side by side (stacked when there is no room). */
.bbe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.bbe-actions > * { flex: 1 1 170px; margin: 0; }
.bbe-actions form { display: flex; }

/* "Check your inbox": the page is waiting, and says so */
.bbe-waiting { display: inline-flex; align-items: center; gap: 10px; align-self: center; padding: 8px 16px; border-radius: 999px; background: #eef0fd; color: #3b4cc0; font-size: 14px; font-weight: 600; }
.bbe-waiting-dot { width: 10px; height: 10px; border-radius: 50%; background: #5e72e4; animation: bbe-waiting 1.6s ease-in-out infinite; }
@keyframes bbe-waiting { 0%, 100% { box-shadow: 0 0 0 0 rgba(94, 114, 228, 0.45); } 60% { box-shadow: 0 0 0 8px rgba(94, 114, 228, 0); } }
.bbe-actions.is-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.bbe-actions.is-inline > .bbe-btn { flex: 1 1 160px; }
@media (prefers-reduced-motion: reduce) { .bbe-waiting-dot { animation: none; } }

/* Sign in as one card on a quiet page: brand left, form right */
.bbe-stage { box-sizing: border-box; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #eef0f5; }
.bbe.is-card { width: 100%; max-width: 1240px; min-height: 0; border-radius: 22px; overflow: hidden; border: 1px solid #e3e1eb; box-shadow: 0 10px 30px rgba(34, 28, 53, 0.08); }
.bbe.is-card .bbe-brand { min-height: 640px; }
.bbe.is-card .bbe-form-side { padding: 64px 40px 48px; }
.bbe-signin h2 { font-size: 30px; font-weight: 800; }
.bbe-ways { display: flex; flex-direction: column; gap: 10px; }
.bbe-ways form { margin: 0; }
.bbe-ways:empty, .bbe-ways:not(:has(.bbe-btn)) { display: none; }
.bbe-ways:not(:has(.bbe-btn)) + .bbe-or { display: none; }
.bbe-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #67748e; }
.bbe-or::before, .bbe-or::after { content: ""; flex: 1; height: 1px; background: #e3e6ee; }
.bbe-forgot { margin-top: 6px; text-align: right; font-size: 13px; }
.bbe-link { align-self: center; border: 0; background: none; padding: 4px 8px; font-size: 14px; font-weight: 600; color: #4c5fd5; text-decoration: underline; cursor: pointer; }
.bbe-link:hover { color: #3346b8; }
.bbe-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid #e3e6ee; font-size: 14px; }
.bbe-foot:not(:has(a)) { display: none; }
@media (max-width: 1099px) { .bbe-stage { padding: 0; } .bbe.is-card { border-radius: 0; border: 0; box-shadow: none; } .bbe.is-card .bbe-brand { min-height: 0; } }

/* Team sign-in: the team's name in the brand gradient, on its own line */
.bbe-team-title { font-size: 18px !important; font-weight: 600 !important; color: #525f7f !important; }
.bbe-team-name { display: block; font-size: 34px; line-height: 1.3; padding-bottom: 0.1em; font-weight: 800; letter-spacing: -0.01em; background: linear-gradient(100deg, #e31c79, #fb6340); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
/* The trial form, condensed so the whole card fits on one screen: name and company share a row */
.bbe-trial-form { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 12px !important; }
.bbe-trial-form > * { grid-column: 1 / -1; }
.bbe-trial-form > .bbe-field.is-full_name, .bbe-trial-form > .bbe-field.is-company_name { grid-column: auto; }
.bbe-trial-form .bbe-field { gap: 4px; }
.bbe-trial-form .bbe-field .form-control { min-height: 42px; }
.bbe.is-card .bbe-form { gap: 14px; }
.bbe.is-card .bbe-form-side { padding: 52px 40px 28px; }
@media (max-width: 575px) { .bbe-trial-form { grid-template-columns: minmax(0, 1fr); } }
@media (max-height: 820px) { .bbe-stage { padding: 16px; align-items: flex-start; } .bbe.is-card .bbe-brand { min-height: 560px; } }

/* The trial form, dressed up: accent in the title, icons in the boxes, a glowing start button */
.bbe-trial-title { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -0.01em; }
/* The "today" pink-to-orange from the panel beside it, deepened so it holds up on white */
.bbe-trial-title em { font-style: normal; background: linear-gradient(100deg, #e31c79, #fb6340); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bbe-btn.is-google { box-shadow: 0 1px 2px rgba(34, 28, 53, 0.06); transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease; }
.bbe-btn.is-google:hover { border-color: #b9c0d6; box-shadow: 0 6px 16px -8px rgba(34, 28, 53, 0.35); transform: translateY(-1px); }
.bbe-icon-field { position: relative; }
.bbe-icon-field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; font-size: 13px; color: #a3abc2; pointer-events: none; transition: color 0.15s ease; }
.bbe-icon-field:focus-within > i { color: #5e72e4; }
.bbe-icon-field .form-control { padding-left: 38px !important; background: #fbfcfe; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.bbe-icon-field .form-control:focus { background: #fff; }
.bbe-btn.is-go { min-height: 50px; font-size: 15px; background: linear-gradient(120deg, #221c35, #3b2a6e 60%, #5e72e4); background-size: 160% 100%; box-shadow: 0 10px 24px -10px rgba(94, 114, 228, 0.7); transition: background-position 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.bbe-btn.is-go:hover:not(:disabled) { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(94, 114, 228, 0.85); }
.bbe-go-arrow { font-size: 12px; transition: transform 0.2s ease; }
.bbe-btn.is-go:hover .bbe-go-arrow { transform: translateX(4px); }
.bbe-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12px; color: #67748e; }
.bbe-perks i { margin-right: 6px; font-size: 10px; color: #2dce89; }
@media (prefers-reduced-motion: reduce) { .bbe-btn.is-go, .bbe-btn.is-google, .bbe-go-arrow { transition: none; } }

/* Sign in, dressed to match the trial form */
.bbe-signin form { gap: 14px; }
.bbe-signin .bbe-field .form-control { min-height: 46px; }
.bbe-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bbe-label-row a { font-size: 12.5px; font-weight: 600; }
.bbe-sso-icon { color: #5e72e4; }
.bbe-link { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: background 0.15s ease; }
.bbe-link:hover { background: #eef0fd; }
.bbe-link i { font-size: 12px; }
.bbe-foot { font-size: 13.5px; }
.bbe-foot a { font-weight: 600; }
/* Gradient text is clipped to its own box, so leave room for letters that hang below the line (y, g, p) */
.bbe-trial-title em { display: inline-block; line-height: 1.3; padding-bottom: 0.08em; vertical-align: bottom; }
/* The Sign in button has no glow */
.bbe-signin .bbe-btn.is-go, .bbe-signin .bbe-btn.is-go:hover:not(:disabled) { box-shadow: none; }

/* The brand panel never stacks on top of the form. Wide screens: side by side, sharing the card.
   Under 1,100 px: the form only, with the logo above it (the rules for small screens, earlier in this file). */
@media (min-width: 1100px) {
  .bbe.is-card { flex-wrap: nowrap; }
  .bbe.is-card .bbe-brand, .bbe.is-card .bbe-form-side { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 1099px) {
  .bbe-stage { padding: 0; align-items: stretch; background: #fff; }
  .bbe.is-card { max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .bbe.is-card .bbe-brand { min-height: 0; }
  .bbe.is-card .bbe-form-side { padding: 24px 20px 56px; }
}

/* A tick box with its sentence beside it, such as agreeing to the terms on the invitation sign-up page. */
.bbe-check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; color: #525f7f; cursor: pointer; }
.bbe-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; -webkit-appearance: checkbox; appearance: auto; accent-color: #4c5fd5; cursor: pointer; }
.bbe-signin > form:has(> .bbe-link) { align-items: center; }
