.hg-auth-footer {
  position: fixed;
  z-index: 10;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #66758c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.hg-auth-footer-panel {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: min(980px, 100%);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hg-auth-footer-main,
.hg-auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
}

.hg-auth-footer-main {
  color: #4f6078;
  font-weight: 500;
}

.hg-auth-footer-company {
  color: #334155;
  font-weight: 600;
}

.hg-auth-footer-copyright {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.hg-auth-footer-copyright > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hg-auth-footer-copyright-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  line-height: 1;
}

.hg-auth-footer-custom-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  object-fit: contain;
  vertical-align: -3px;
}

.hg-auth-footer-links {
  color: #718096;
}

.hg-auth-footer-separator {
  color: #a6b1c2;
  user-select: none;
}

.hg-auth-footer-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hg-auth-footer-extra {
  color: #8390a3;
  overflow-wrap: anywhere;
}

.hg-auth-footer a {
  color: inherit;
  pointer-events: auto;
  text-decoration: none;
}

.hg-auth-footer a:hover {
  color: var(--color-primary, #2f78ff);
  text-decoration: underline;
}

@media (max-width: 750px) {
  #login,
  #regist,
  #forget {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    overflow: visible;
  }

  #login > .login-container,
  #regist > .login-container,
  #forget > .login-container {
    flex: 0 0 auto;
    min-height: 0;
  }

  #login .container-before,
  #regist .container-before,
  #forget .container-before,
  #login .auth-entry-layout,
  #regist .auth-entry-layout,
  #forget .auth-entry-layout,
  #login .login,
  #regist .login,
  #forget .login {
    min-height: 0;
  }

  .hg-auth-footer {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: auto;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    font-size: 11px;
  }

  .hg-auth-footer-panel {
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
  }

  .hg-auth-footer-main,
  .hg-auth-footer-links {
    gap: 3px 8px;
  }

  .hg-auth-footer-entry {
    max-width: 100%;
  }

  .hg-auth-footer-entry a,
  .hg-auth-footer-entry > span {
    max-width: calc(100vw - 78px);
    overflow-wrap: anywhere;
  }
}
