#auth-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #58746d;
  background: #f2f5f0;
  font: 500 14px/1.6 "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#auth-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid #c8d8d3;
  border-top-color: #159684;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

#auth-session-control {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(310px, calc(100vw - 28px));
  padding: 7px 8px 7px 11px;
  color: #526c65;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe6e1;
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(12, 52, 45, 0.12);
  font: 500 11px/1.4 "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(10px);
}

#auth-session-control > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#auth-session-control button {
  flex: none;
  padding: 4px 8px;
  color: #166f63;
  background: #eaf5f1;
  border: 1px solid #cee4dc;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  #auth-session-control {
    right: 13px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  #auth-loading::before {
    animation-duration: 1.6s;
  }
}
