/* PostFlow — tela de login / cadastro */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(10px);
}

body.auth-locked {
  overflow: hidden;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  text-align: center;
}

.auth-logo {
  width: 72px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.auth-brand {
  display: block;
  margin: 0 auto 14px;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 14px;
  justify-content: center;
}

.auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.55);
}

.auth-card .form-label {
  text-align: left;
  display: block;
  margin-top: 10px;
}

.auth-card .form-input {
  width: 100%;
}

.auth-card .publish-btn {
  width: 100%;
}

.auth-message {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.auth-message.error {
  color: #f87171;
  opacity: 1;
}

.auth-message.ok {
  color: #4ade80;
  opacity: 1;
}

/* Splash de boot — esconde shell até hidratar (evita flash Criar Post → Clientes) */
.app-boot-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.85);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}

.app-boot-splash img {
  width: 64px;
  height: auto;
  opacity: 0.95;
}

body.app-booting .app-boot-splash {
  display: flex;
}

body.app-booting #sidebar,
body.app-booting #mainContent {
  visibility: hidden !important;
}

body.auth-locked .app-boot-splash {
  display: none !important;
}

#authUserBadge .user-role {
  margin: 0;
}

#authUserBadge .btn-outline-sm {
  margin-top: 2px;
}
