body[data-auth-state="checking"] > :not(#app):not(script),
body[data-auth-state="signed-out"] > :not(#app):not(script),
body[data-auth-state="starting"] > :not(#app):not(script) {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px 24px;
  background: #07090d;
  color: #f4f7fb;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

.auth-gate::before,
.auth-gate::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.auth-gate::before {
  inset: 18px;
  border: 1px solid rgba(93, 135, 163, 0.24);
}

.auth-gate::after {
  top: 18px;
  left: 50%;
  width: 96px;
  height: 3px;
  transform: translateX(-50%);
  background: #57d18c;
}

.auth-gate__content {
  position: relative;
  width: min(100%, 380px);
}

.auth-gate__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
  color: #eaf6ff;
  font-size: 18px;
  font-weight: 700;
}

.auth-gate__brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #57d18c;
  color: #57d18c;
  font-size: 11px;
  font-weight: 800;
}

.auth-gate__copy {
  margin-bottom: 32px;
}

.auth-gate__eyebrow {
  margin: 0 0 12px;
  color: #65bde8;
  font-size: 11px;
  font-weight: 800;
}

.auth-gate__copy h1 {
  margin: 0;
  color: #f4f7fb;
  font-size: 30px;
  line-height: 1.2;
}

.auth-gate__copy > p:last-child {
  margin: 14px 0 0;
  color: #91a3b1;
  font-size: 14px;
  line-height: 1.6;
}

.auth-gate__button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d9e0e5;
  border-radius: 4px;
  background: #ffffff;
  color: #182026;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

.auth-gate__button:hover:not(:disabled) {
  background: #edf6fa;
}

.auth-gate__button:focus-visible,
.auth-session button:focus-visible {
  outline: 2px solid #65bde8 !important;
  outline-offset: 3px !important;
}

.auth-gate__button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-gate__button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-gate__status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #91a3b1;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-gate__status.is-error {
  color: #ff9191;
}

.auth-gate__footer {
  position: absolute;
  right: 32px;
  bottom: 26px;
  margin: 0;
  color: #536573;
  font-size: 10px;
  font-weight: 700;
}

.auth-session {
  position: fixed;
  z-index: 120;
  top: 16px;
  right: 16px;
  color: #dcebf4;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

.auth-session__trigger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(122, 175, 207, 0.5);
  border-radius: 50%;
  background: #101923;
  color: #dcebf4;
}

.auth-session__avatar,
.auth-session__avatar img {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.auth-session__avatar {
  font-size: 13px;
  font-weight: 800;
}

.auth-session__avatar img {
  object-fit: cover;
}

.auth-session__menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 240px;
  overflow: hidden;
  border: 1px solid rgba(122, 175, 207, 0.34);
  border-radius: 6px;
  background: #101923;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.auth-session__identity {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid rgba(122, 175, 207, 0.2);
}

.auth-session__identity strong,
.auth-session__identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-session__identity strong {
  color: #f4f7fb;
  font-size: 14px;
}

.auth-session__identity span {
  color: #8fa4b3;
  font-size: 12px;
}

.auth-session__sign-out {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dcebf4;
  font-size: 13px;
  text-align: left;
  text-transform: none;
}

.auth-session__sign-out:hover:not(:disabled) {
  background: #192837;
}

.auth-session__sign-out svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 560px) {
  .auth-gate {
    place-items: start center;
    padding: 68px 24px 32px;
  }

  .auth-gate::before {
    inset: 10px;
  }

  .auth-gate::after {
    top: 10px;
  }

  .auth-gate__brand {
    margin-bottom: 56px;
  }

  .auth-gate__copy h1 {
    font-size: 26px;
  }

  .auth-gate__footer {
    right: 20px;
    bottom: 18px;
  }
}
