html.auth-checking body { visibility: hidden; }
html.auth-checking::after {
  content: 'Verificando acesso…';
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  background: #FCF3E8;
  color: #4E2A66;
  font: 700 16px/1.4 'Poppins', 'Inter', sans-serif;
}
html.auth-error body > :not(.auth-state) { display: none !important; }
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 44px;
  padding: 6px max(16px, calc((100vw - 960px) / 2));
  background: #fff;
  border-bottom: 1px solid rgba(109, 63, 130, .18);
  color: #5C5068;
  font: 500 12px/1.4 'Poppins', 'Inter', sans-serif;
}
.auth-bar-label { min-width: 0; max-width: min(46vw, 320px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-logout {
  flex: none;
  border: 1px solid #6D3F82;
  border-radius: 999px;
  background: transparent;
  color: #4E2A66;
  padding: 7px 14px;
  font: 700 12px/1.3 'Poppins', 'Inter', sans-serif;
  cursor: pointer;
}
.auth-logout:hover, .auth-logout:focus-visible { background: #EDE0F5; }
.auth-logout:disabled { opacity: .6; cursor: wait; }
.auth-bar-status { color: #8A2537; }
.auth-state {
  width: min(100% - 32px, 480px);
  margin: clamp(72px, 15vh, 160px) auto;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(50, 25, 70, .12);
  color: #1E1527;
  font-family: 'Poppins', 'Inter', sans-serif;
}
.auth-state h1 { margin: 0 0 12px; color: #4E2A66; font-size: clamp(23px, 5vw, 30px); line-height: 1.25; }
.auth-state p { margin: 0 0 24px; color: #5C5068; line-height: 1.6; }
.auth-state button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: #6D3F82;
  color: #fff;
  font: 700 14px/1.3 'Poppins', 'Inter', sans-serif;
  cursor: pointer;
}
.auth-state button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .auth-bar { justify-content: space-between; }
  .auth-state { padding: 28px 22px; }
}
