/*
 * Natural Bistrô — aplicação da identidade oficial 2024.
 * Usa exclusivamente os arquivos fornecidos pela marca e aproxima o sistema
 * da linguagem do site público: branco, verdes vivos, creme e acento quente.
 */
:root {
  --nb-deep: #004b3c;
  --nb-green: #00a078;
  --nb-green-soft: #e8f7f1;
  --nb-coral: #dc505a;
  --nb-gold: #e6af5a;
  --nb-cream: #fff3d9;
  --nb-ink: #172f28;
  --nb-muted: #6f7d77;
  --nb-line: #dfe8e3;
  --nb-surface: #ffffff;
  --nb-canvas: #f7f9f7;
}

body {
  color: var(--nb-ink);
  background: var(--nb-canvas);
}

/* Marca e navegação */
.brand {
  width: 202px;
  min-height: 72px;
  margin: 0 auto 22px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  mix-blend-mode: normal;
}

nav button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

nav button span svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav button.selected {
  color: var(--nb-deep);
  background: var(--nb-green-soft);
  border-left: 3px solid var(--nb-green);
  box-shadow: none;
}

nav button.selected i {
  color: var(--nb-deep);
  background: #fff;
  border: 1px solid #cfe8de;
}

.workspace {
  background: #fff;
  border-color: var(--nb-line);
}

.sidebar-bottom {
  background: var(--nb-cream);
  border-color: #efd9ac;
}

.sidebar-bottom::after {
  display: none;
}

.grow-icon {
  display: block;
  width: 34px;
  height: 30px;
  margin: 0 0 10px;
  object-fit: contain;
  object-position: left center;
}

.primary,
.auth-button {
  color: #fff;
  background: var(--nb-green);
  box-shadow: 0 8px 20px rgb(0 160 120 / 16%);
}

.primary:hover,
.auth-button:hover {
  background: var(--nb-deep);
}

.panel,
.stat,
.member-card,
.secondary,
.workspace {
  border-color: var(--nb-line);
}

.panel,
.stat,
.member-card {
  background: #fff;
  box-shadow: 0 8px 30px rgb(0 75 60 / 4%);
}

.demo {
  color: #6c5731;
  background: #fff9ec;
  border-color: #efddb8;
}

.demo > img {
  width: 24px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.stat > div span {
  min-width: 34px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--nb-deep) !important;
  background: var(--nb-green-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
}

.track > div,
.progress div,
.legend i {
  background: var(--nb-green);
}

.bar-row:nth-child(2) .track > div { background: var(--nb-deep); }
.bar-row:nth-child(3) .track > div { background: var(--nb-gold); }
.bar-row:nth-child(4) .track > div { background: var(--nb-coral); }

.tip {
  background: #fff9ec;
}

.tip > img {
  width: 19px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nb-deep);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 23px;
  height: 20px;
  object-fit: contain;
}

/* Acesso e recuperação */
.auth-body {
  background: #fff;
}

.auth-shell {
  grid-template-columns: minmax(440px, 44%) 1fr;
}

.auth-brand {
  padding: 54px clamp(38px, 5vw, 82px);
  background: var(--nb-deep);
}

.auth-brand::before,
.auth-brand::after {
  display: none;
}

.auth-logo {
  width: min(360px, 82%);
  height: 132px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgb(0 30 24 / 23%);
}

.auth-logo > * {
  display: block !important;
}

.auth-logo img {
  width: 100%;
  height: auto;
  max-height: 96px;
  object-fit: contain;
}

.auth-brand .eyebrow {
  color: var(--nb-gold);
}

.auth-brand h1 {
  color: #fff;
}

.auth-brand p,
.auth-security {
  color: #d9e8e2;
}

.auth-card {
  background: #fff;
}

.mobile-logo {
  width: 238px;
  height: auto;
  margin-bottom: 42px;
  background: none;
  mix-blend-mode: normal;
}

.mobile-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-form input,
.auth-form select {
  min-height: 48px;
  border-color: var(--nb-line);
  border-radius: 10px;
  background: #fff;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--nb-green);
  box-shadow: 0 0 0 3px rgb(0 160 120 / 13%);
}

.auth-button {
  min-height: 48px;
  border-radius: 10px;
}

.member-header {
  border-bottom-color: var(--nb-line);
}

.member-header strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nb-deep);
}

.member-header strong::before {
  content: '';
  width: 26px;
  height: 23px;
  background: url('/src/assets/leaf-official.png?v=20261020-1') center / contain no-repeat;
}

@media (max-width: 850px) {
  .auth-shell { grid-template-columns: 1fr; }
  .mobile-logo { display: block; }
}

@media (max-width: 760px) {
  .brand {
    width: 176px;
    min-height: 58px;
    margin: 0 0 14px;
  }

  .brand img { max-height: 54px; }
}
