/* Identidade visual global configurável pelo painel. */
:root { --cf-login-bg: #eef1f5; }

/* Todos os acessos usam fundo cinza-claro, sem o azul sólido do login do cliente. */
body.auth-body,
body.auth-body.auth-body--customer,
body.auth-body.auth-body--admin-login,
body.auth-body:not(.auth-body--customer) {
  background: var(--cf-login-bg) !important;
  background-image: linear-gradient(180deg, #f4f5f7 0%, #e9edf2 100%) !important;
}

.auth-global-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin: 0 auto 22px;
}
.auth-global-brand--customer { margin-bottom: 20px; }
.auth-global-brand__logo {
  display: block;
  width: auto;
  max-width: min(190px, 72vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.auth-global-brand .auth-login-brand__name {
  color: #10245b;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}
.auth-global-brand .brand-mark { flex: 0 0 auto; }

/* O login do cliente continua compacto, agora sobre o mesmo fundo neutro. */
.auth-body--customer .portal-login-card {
  border-color: #dfe5ec !important;
  box-shadow: 0 18px 48px rgba(22, 34, 55, .10) !important;
}

/* Logos dos painéis. */
.app-brand-logo { display:block; width:auto; height:auto; object-fit:contain; }
.app-brand-link { text-decoration:none; }
.app-brand-logo--admin-sidebar { max-width: 176px; max-height: 48px; }
.app-brand-logo--admin-mobile { max-width: 112px; max-height: 31px; }
.app-brand-logo--admin-topbar { max-width: 120px; max-height: 34px; }

body.admin-app .sidebar-logo.has-brand-logo {
  justify-content: flex-start !important;
  min-height: 54px;
}
body.admin-app .sidebar-logo img.app-brand-logo { width:auto !important; }
body.admin-app .admin-native-header__logo--brand {
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  flex:0 1 auto !important;
  background:transparent !important;
  border:0 !important;
}
body.admin-app .admin-native-header__brand.has-brand-logo .admin-native-header__identity {
  min-width:0;
}

.seller-brand__logo {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  max-width:125px;
  height:38px;
}
.app-brand-logo--seller { max-width:125px; max-height:38px; }
.seller-brand.has-brand-logo { gap:8px !important; }
.seller-brand.has-brand-logo .seller-brand__identity strong { display:none; }

.app-brand-logo--portal { max-width: 132px; max-height: 38px; }
.portal-brand.has-brand-logo { display:inline-flex; align-items:center; min-height:38px; }

@media (max-width: 520px) {
  .auth-global-brand { margin-bottom:18px; min-height:46px; }
  .auth-global-brand__logo { max-width:160px; max-height:58px; }
  .app-brand-logo--seller { max-width:105px; max-height:34px; }
  .seller-brand__logo { max-width:105px; height:34px; }
  .app-brand-logo--portal { max-width:112px; max-height:34px; }
}

/* Login do cliente acompanha a cor principal configurada no sistema. */
.auth-body--customer .portal-login-submit,
.auth-body--customer .btn-primary {
  background: var(--cf-primary, #155eef) !important;
  border-color: var(--cf-primary, #155eef) !important;
  color: #fff !important;
}
.auth-body--customer .field input:focus {
  border-color: var(--cf-primary, #155eef) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf-primary, #155eef) 12%, transparent) !important;
}
