:root {
  --navy: #000e27;
}

html.hub-auth-pending body {
  overflow: hidden;
}

html.hub-auth-pending body > :not(#hub-auth-root) {
  visibility: hidden;
}

#hub-auth-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 10%, rgba(249, 160, 63, 0.24), transparent 28rem),
    linear-gradient(155deg, #000e27 0%, #08213c 62%, #269eca 140%);
  color: #1a1a1a;
  font-family: "Montserrat", Arial, sans-serif;
}

#hub-auth-root[hidden] {
  display: none;
}

.hub-login-card {
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hub-login-logo {
  display: block;
  width: 112px;
  height: auto;
  margin-bottom: 20px;
}

.hub-login-eyebrow {
  margin-bottom: 8px;
  color: #197fa7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hub-login-card h1 {
  margin: 0 0 8px;
  color: #000e27;
  font-size: 25px;
  line-height: 1.2;
}

.hub-login-card > p {
  margin: 0 0 22px;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.55;
}

.hub-login-card label {
  display: block;
  margin: 14px 0 6px;
  color: #000e27;
  font-size: 13px;
  font-weight: 700;
}

.hub-login-card input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d7d3cc;
  border-radius: 9px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
}

.hub-login-card input:focus {
  border-color: #269eca;
  outline: 3px solid rgba(38, 158, 202, 0.18);
}

.hub-login-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #269eca;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.hub-access-link {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #269eca;
  color: #fff;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.hub-login-card .hub-secondary-button {
  border: 1px solid #cbd3dc;
  background: #fff !important;
  color: #000e27 !important;
}

.hub-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 -4px;
  color: #777;
  font-size: 12px;
  text-transform: uppercase;
}

.hub-login-divider::before,
.hub-login-divider::after {
  flex: 1;
  height: 1px;
  background: #e3e0da;
  content: "";
}

.hub-login-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hub-auth-message {
  min-height: 22px;
  margin-top: 12px !important;
  color: #a51d2d !important;
  font-size: 13px !important;
}

.hub-auth-message.hub-auth-success {
  color: #176b3a !important;
}

.hub-login-help {
  margin-top: 14px !important;
  color: #6b6b6b !important;
  font-size: 12px !important;
  text-align: center;
}

.hub-account-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px max(18px, calc((100% - 1100px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #000e27;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.hub-account-logo {
  display: block;
  width: clamp(120px, 18vw, 210px);
  max-height: 42px;
  object-fit: contain;
}

.hub-account-bar strong {
  display: block;
  max-width: 70vw;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-account-bar button {
  justify-self: end;
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

a.coming-soon-link,
a.coming-soon-link:hover {
  cursor: default !important;
  opacity: 0.58;
  transform: none !important;
}

@media (max-width: 420px) {
  .hub-login-card { padding: 24px 20px; }
  .hub-account-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
  }
  .hub-account-logo {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: 132px;
  }
  .hub-account-identity { grid-column: 1; grid-row: 2; }
  .hub-account-bar button { grid-column: 2; grid-row: 2; }
}
