/* Unified BitGou brand treatment across public, account and admin pages. */
.brand,
.auth-brand,
.admin-brand,
.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.brand {
  width: 168px;
  height: 52px;
  padding: 0;
  overflow: hidden;
}

.bitgou-logo {
  position: absolute;
  display: block;
  width: auto !important;
  max-width: none;
  height: 72px !important;
  left: -10px;
  top: -7px;
  object-fit: contain;
  transform: none !important;
  filter: none !important;
}

.bitgou-emblem {
  position: relative;
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 50px;
  overflow: hidden;
}

.bitgou-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  color: #173564;
  line-height: 1;
  text-shadow: none;
}

.bitgou-wordmark strong {
  font: 750 20px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: -.55px;
  white-space: nowrap;
}

.bitgou-wordmark small {
  margin-top: 4px;
  padding-left: 2px;
  font: 600 9px/1 "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: .34em;
  white-space: nowrap;
  opacity: .82;
}

.auth-brand {
  width: 178px;
  height: 54px;
  overflow: hidden;
}

.admin-brand {
  width: 190px;
  height: 68px;
  overflow: hidden;
}

.admin-login-page .admin-brand {
  width: 230px;
  height: 82px;
}

.footer-brand-mark {
  width: 180px;
  height: 62px;
  overflow: hidden;
}

.brand,
.auth-brand,
.admin-brand,
.footer-brand-mark {
  isolation: isolate;
  background: transparent !important;
}

html[data-theme="dark"] .bitgou-wordmark,
.admin-page .bitgou-wordmark {
  color: #a9cbff;
}

html[data-theme="dark"] .bitgou-wordmark small,
.admin-page .bitgou-wordmark small {
  color: #88afe8;
  opacity: 1;
}

@media (max-width: 900px) {
  .brand { width: 150px; }
  .brand .bitgou-wordmark strong { font-size: 18px; }
}
