/* Mobile auth shell and iOS safe-area fixes. */
html.auth-route-active,
html.auth-route-active body,
html.auth-route-active #app,
html.auth-route-active #mobile-shell {
  min-height: 100%;
  background: #1b1412 !important;
}

.trust-avatar-notice {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .58);
  box-sizing: border-box;
}

.trust-avatar-notice-card {
  width: min(100%, 330px);
  padding: 20px;
  border: 1px solid rgba(239, 184, 117, .55);
  border-radius: 14px;
  background: #292624;
  color: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45);
  text-align: center;
}

.trust-avatar-notice-message {
  font-size: 15px;
  line-height: 1.55;
}

.trust-avatar-notice.loading .trust-avatar-notice-message::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid rgba(239, 184, 117, .28);
  border-top-color: #efb875;
  border-radius: 50%;
  animation: trust-avatar-spin .8s linear infinite;
}

.trust-avatar-notice-close {
  min-width: 112px;
  min-height: 40px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b18495, #efbd8e);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.trust-avatar-notice.loading .trust-avatar-notice-close {
  display: none;
}

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

.auth-register-page .auth-invite-field-hidden,
.auth-invite-field-hidden {
  display: none !important;
}

html.auth-route-active body,
html.auth-route-active #app,
html.auth-route-active #mobile-shell,
html.auth-route-active .bg-container.page.auth-localized-page {
  min-height: 100vh !important;
  min-height: 100svh !important;
  min-height: 100dvh !important;
}

html.auth-route-active .bg-container.page.auth-localized-page {
  box-sizing: border-box !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  background-color: #1b1412 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html.auth-route-active body {
  padding-bottom: env(safe-area-inset-bottom) !important;
}

@media (max-width: 430px) {
  html.auth-route-active body,
  html.auth-route-active #app,
  html.auth-route-active #mobile-shell {
    width: 100% !important;
    max-width: none !important;
    overflow-x: clip !important;
  }

  html.auth-route-active .bg-container.page.auth-localized-page {
    width: 100% !important;
    max-width: none !important;
  }
}
