/* Shared presentation for the V2 public landing and account entry pages. */
.bd-v2 {
  --bd-blue: #0a376b;
  --bd-ink: #102846;
  --bd-accent: #2269bb;
  --bd-line: #dce8f3;
  --bd-surface: #f4f8fd;
}

.bd-v2 .auth-layout {
  min-height: calc(100dvh - 5rem);
  background: radial-gradient(ellipse at 70% 10%, #e4f1ff 0%, transparent 55%), var(--bd-surface);
}

.bd-v2 .auth-visual {
  background: linear-gradient(150deg, #041f3d 0%, #0d467d 65%, #15766e 100%);
  color: white;
}

.bd-v2 .auth-card {
  max-width: 36rem;
  border: 1px solid var(--bd-line);
  box-shadow: 0 20px 60px #0a376b18;
  animation: bd-arrive .45s ease-out both;
}

.bd-v2 .auth-card h2 { color: var(--bd-ink); }
.bd-v2 .auth-card .form-control { min-height: 3.15rem; border-color: #aabed4; }
.bd-v2 .auth-card .form-control:focus {
  border-color: var(--bd-accent);
  box-shadow: 0 0 0 .22rem #2269bb26;
}

.bd-v2 .auth-card .bd-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  min-height: 3rem;
  background: white;
  color: var(--bd-ink);
  border: 1px solid #aabed4;
}

.bd-v2 .auth-card .bd-social-button:hover {
  background: #f2f7fd;
  border-color: var(--bd-accent);
}

.bd-v2 .bd-provider-mark {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  border-radius: .4rem;
  background: #edf4ff;
  color: #164b92;
  font-weight: 800;
}

.bd-v2 .bd-auth-options {
  margin: .7rem 0 1rem;
  border: 1px solid var(--bd-line);
  border-radius: .8rem;
  padding: .7rem .85rem;
}

.bd-v2 .bd-auth-options summary { cursor: pointer; color: var(--bd-blue); font-weight: 700; }
.bd-v2 .bd-auth-options [data-social-providers] { margin-top: .7rem; }
.bd-v2 .auth-card [hidden] { display: none !important; }
.bd-v2 .auth-card .module-note { margin: 1rem 0 .5rem; color: #47617c; }
.bd-v2 .auth-card .text-btn { min-height: 2.75rem; }
.bd-v2 .module-catalogue-header img { box-shadow: 0 12px 32px #0a376b22; }
.bd-v2 .module-catalogue-controls .form-select { width: min(100%, 24rem); }
.bd-v2 .module-catalogue-header {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--bd-line);
  border-radius: 1.4rem;
  background: radial-gradient(ellipse at top right, #deedff, transparent 68%), #f5f9ff;
}
.bd-v2 .module-catalogue-header h2 {
  color: var(--bd-ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -.035em;
}
.bd-v2 .bd-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  border-color: #b7cce3;
}
.bd-v2 .bd-filter-toggle span { transition: transform .25s ease; }
.bd-v2 .bd-filter-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.bd-v2 .module-catalogue-controls {
  padding: .8rem 1rem;
  border: 1px solid var(--bd-line);
  border-radius: .8rem;
  background: var(--bd-surface);
}

.bd-v2 .module-product {
  min-width: 0;
  border: 1px solid var(--bd-line);
  background: white;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation: bd-arrive .34s ease-out both;
}

.bd-v2 .module-product-cover img { transition: transform .25s ease; }
.bd-v2 .module-product .btn { max-width: 100%; white-space: normal; }
.bd-v2 .module-product:nth-child(4n + 2) { animation-delay: .05s; }
.bd-v2 .module-product:nth-child(4n + 3) { animation-delay: .10s; }
.bd-v2 .module-product:nth-child(4n + 4) { animation-delay: .15s; }
.bd-v2 .module-product:focus-within { border-color: var(--bd-accent); box-shadow: 0 8px 22px #0a376b16; }
.bd-v2 .card, .bd-v2 .pro-card { transition: transform .22s ease, box-shadow .22s ease; }

.bd-v2 .bd-dashboard-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
}
.bd-v2 .bd-dashboard-tools .btn { min-height: 2.75rem; }
.bd-v2 .bd-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
.bd-v2 .bd-dashboard-grid .private-launch-card { min-width: 0; overflow-wrap: anywhere; }
.bd-v2 .bd-shortcuts {
  --bs-offcanvas-width: min(100vw, 26rem);
  --bs-offcanvas-bg: #f4f8fd;
  --bs-offcanvas-color: var(--bd-ink);
}
.bd-v2 .bd-shortcuts .list-group-item {
  min-height: 3rem;
  padding: .85rem 1rem;
  color: var(--bd-ink);
}
.bd-v2 .bd-shortcuts .list-group-item:focus-visible { outline: 2px solid var(--bd-accent); outline-offset: -3px; }
.bd-v2 #private-app-shell .dashboard-heading {
  padding: clamp(1.1rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  border: 1px solid var(--bd-line);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at top right, #d9edff, transparent 70%), #f6faff;
}
.bd-v2 .bd-dashboard-intro { color: #385572; max-width: 58ch; }
.bd-v2 .bd-dashboard-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: .8rem;
  margin-bottom: 2rem;
}
.bd-v2 .bd-dashboard-quick a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-height: 4.5rem;
  padding: .75rem;
  border: 1px solid var(--bd-line);
  border-radius: 1rem;
  color: var(--bd-ink);
  background: white;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bd-v2 .bd-dashboard-quick a:is(:hover,:focus-visible) {
  border-color: var(--bd-accent);
  box-shadow: 0 8px 22px #0a376b15;
}
.bd-v2 .bd-dashboard-quick small { display: block; color: #47617c; }
.bd-v2 .bd-quick-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .65rem;
  background: #e8f3ff;
  color: var(--bd-blue);
}
.bd-v2 .bd-dashboard-group { margin-block: 1.5rem 2rem; }
.bd-v2 .bd-dashboard-group h2 { color: var(--bd-ink); font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.bd-v2 .bd-dashboard-group-note { color: #47617c; }
.bd-v2 .bd-dashboard-admin:not(:has(.private-launch-card:not([hidden]))) { display: none; }

@media (min-width: 576px) {
  .bd-v2 .bd-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .bd-v2 .bd-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  .bd-v2 .module-product:hover, .bd-v2 .pro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 30px #0a376b20;
  }
  .bd-v2 .module-product:hover img { transform: scale(1.035); }
}

@keyframes bd-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
  .bd-v2 .auth-box { padding-inline: .75rem; }
  .bd-v2 .auth-card { padding: 1.15rem; border-radius: 1.1rem; }
  .bd-v2 .module-product .btn { width: 100%; min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-v2 .bd-dashboard-quick a { transition: none; }
  .bd-v2 .auth-card, .bd-v2 .module-product { animation: none; }
  .bd-v2 .bd-filter-toggle span { transition: none; }
  .bd-v2 .module-product, .bd-v2 .module-product-cover img, .bd-v2 .card, .bd-v2 .pro-card { transition: none; transform: none; }
  .bd-v2 .module-product:hover, .bd-v2 .pro-card:hover, .bd-v2 .module-product:hover img { transform: none; }
}

.bd-account-welcome{display:flex;align-items:center;gap:1rem;margin:1.3rem 0}.bd-account-avatar{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,#087ee4,#07578d);color:#fff;font-size:1.15rem;font-weight:800;box-shadow:0 5px 16px #087ee42b}.bd-account-welcome #user-email{margin:0 0 .2rem;font-size:1.2rem;font-weight:750;overflow-wrap:anywhere}.bd-account-profile-link{font-size:.875rem;text-decoration:underline;text-underline-offset:3px}

/* Account identity remains separate from the fixed top action row. */
.bd-account-welcome-row{width:100%;margin-top:1.2rem;min-width:0}
.bd-account-welcome-row .bd-account-welcome{margin:0;min-width:0}
.bd-account-welcome-row .bd-account-welcome>div{min-width:0}
.bd-dashboard-heading .bd-account-welcome #user-email{font-size:clamp(15px,1.5vw,18px);line-height:1.4}
@media(max-width:560px){.bd-account-welcome-row .bd-account-avatar{width:44px;height:44px;flex-basis:44px;border-radius:14px}.bd-account-welcome-row .bd-account-welcome{gap:10px}.bd-account-welcome-row .bd-account-profile-link{font-size:12px}}

/* Center the dashboard title independently of account controls. */
.bd-dashboard-heading>h1{width:100%;text-align:center;margin:12px auto 8px;font-size:clamp(24px,3vw,34px);line-height:1.2}

/* Compact dashboard introduction, with a restrained entrance animation. */
.bd-dashboard-intro-wrap{display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;margin:10px auto 0;padding:7px 12px;border:1px solid #bcdbef;border-radius:999px;background:linear-gradient(110deg,#ffffffcc,#e8f6ff);box-shadow:0 3px 12px #1479d30a;animation:bd-intro-arrive .45s ease-out both}
.bd-dashboard-intro-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;color:#0877bd;background:#d9efff}
.bd-v2 #private-app-shell .bd-dashboard-intro-wrap .bd-dashboard-intro{margin:0;max-width:none;font-size:12px;line-height:1.4;color:#315b79;text-align:center}
.bd-dashboard-intro-wrap:hover{border-color:#6aafd8;box-shadow:0 4px 14px #1479d314}
@keyframes bd-intro-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
html[data-bs-theme=dark] .bd-dashboard-intro-wrap{background:linear-gradient(110deg,#173b5d,#214e70);border-color:#5a8aaa}
html[data-bs-theme=dark] .bd-dashboard-intro-icon{background:#285e83;color:#b8e8ff}
html[data-bs-theme=dark] .bd-v2 #private-app-shell .bd-dashboard-intro-wrap .bd-dashboard-intro{color:#dfedf8}
@media(max-width:560px){.bd-dashboard-intro-wrap{border-radius:14px;padding:6px 9px;gap:6px}.bd-v2 #private-app-shell .bd-dashboard-intro-wrap .bd-dashboard-intro{font-size:11px;line-height:1.4}}
@media(prefers-reduced-motion:reduce){.bd-dashboard-intro-wrap{animation:none}}


.bd-dashboard-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:12px}.bd-dashboard-topline>.tag{margin:0;white-space:nowrap;flex:0 0 auto}.bd-dashboard-topline>.bd-dashboard-logout{flex:0 0 auto;width:auto;max-width:none;margin:0 0 0 auto;white-space:nowrap}@media(max-width:400px){.bd-dashboard-topline{gap:8px}.bd-dashboard-topline>.bd-dashboard-logout{font-size:12px;padding:9px 11px}.bd-dashboard-topline>.tag{font-size:10px}}

.bd-service-brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#e1f3ff,#edf7fc);border:1px solid #bcdcf0;color:#1268a4;margin:10px 0}.bd-service-brand-icon .bd-brand-icon{width:26px;height:26px}.bd-dashboard-alerts-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #b6d4ea;background:#edf7ff;color:#185f93;padding:10px 14px;border-radius:12px;font-weight:700}.bd-dashboard-alerts-link:hover{background:#dcefff;color:#10496f}html[data-bs-theme=dark] .bd-service-brand-icon,html[data-bs-theme=dark] .bd-dashboard-alerts-link{background:#214c70;color:#d4efff;border-color:#6084a1}
