/* Tema Brasil compartilhado. Cada instalação mantém somente sua própria marca. */
.theme-brasil {
  --navy: #062f65;
  --blue: #1456a0;
  --blue2: #0a3b78;
  --green: #078344;

  --console-navy: #062f65;
  --console-navy-soft: #0b3e78;
  --console-blue: #1456a0;
  --console-blue-dark: #0a3b78;
  --console-teal: #087c45;
  --console-gold: #b68b00;
  --console-ink: #17251f;
  --console-muted: #65726c;
  --console-faint: #89958f;
  --console-paper: #f4f6f1;
  --console-surface: #fffefa;
  --console-surface-alt: #edf1ea;
  --console-line: #d9dfd7;
  --console-line-strong: #c4ccc2;
  --console-success: #087c45;
}

.theme-brasil .brand-symbol-wide {
  width: 196px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.theme-brasil .brand-wide-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1;
}

.theme-brasil .brand-wide-tagline {
  margin-top: 8px;
  padding-left: 1px;
  color: #91a5b3;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .23em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sostenes .sidebar .brand-symbol-wide,
.brand-sostenes .auth-story .brand-symbol-wide,
.brand-sostenes.public-body .public-nav .brand-symbol-wide {
  filter: brightness(0) invert(1);
}

.theme-brasil .sidebar .brand-symbol-wide {
  width: 205px;
  height: auto;
  max-height: 47px;
}

.theme-brasil .sidebar-head {
  position: relative;
}

.theme-brasil .sidebar-head::after {
  position: absolute;
  right: 22px;
  bottom: -2px;
  left: 22px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #078344 0 42%, #f0c808 42% 61%, #1456a0 61% 100%);
}

.theme-brasil .workspace-badge i,
.theme-brasil .live-mark i {
  background: #16a05d;
  box-shadow: 0 0 0 3px rgba(22, 160, 93, .14);
}

.theme-brasil .sidebar nav a.active {
  border-left-color: #078344;
  box-shadow: inset 3px 0 #078344;
}

.theme-brasil .metric-card:nth-child(3n + 1) {
  border-top-color: rgba(7, 131, 68, .5);
}

.theme-brasil .metric-card:nth-child(3n + 2) {
  border-top-color: rgba(20, 86, 160, .5);
}

.theme-brasil .metric-card:nth-child(3n) {
  border-top-color: rgba(240, 200, 8, .72);
}

.theme-brasil .btn-primary {
  border-color: #087c45;
  background: #087c45;
}

.theme-brasil .btn-primary:hover {
  background: #056b3a;
}

.theme-brasil .auth-story {
  background-color: #062f65;
  background-image: linear-gradient(145deg, #052955 0%, #062f65 52%, #0a3f7b 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.theme-brasil .auth-story::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #078344 0 44%, #f0c808 44% 58%, #1456a0 58% 100%);
}

.theme-brasil .auth-story::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 25, 55, .74) 0%, rgba(4, 34, 72, .28) 50%, rgba(4, 34, 72, .06) 100%),
    linear-gradient(0deg, rgba(3, 24, 52, .2), transparent 58%);
  box-shadow: none;
}

.auth-login-wallpaper {
  display: none;
}

.theme-brasil .auth-login-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  pointer-events: none;
}

.theme-brasil .auth-story .brand,
.theme-brasil .auth-message {
  position: relative;
  z-index: 2;
}

.theme-brasil.public-body {
  --invite-paper: #f4f6f1;
  --invite-surface: #fffefa;
  --invite-line: #d9dfd7;
  --invite-line-strong: #c4ccc2;
  --invite-ink: #17251f;
  --invite-muted: #65726c;
  --invite-faint: #89958f;
  background: #082f29;
  isolation: isolate;
}

.theme-brasil.public-body::before {
  position: fixed;
  inset: -12px;
  z-index: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(3, 24, 38, .84) 0%, rgba(5, 49, 39, .58) 47%, rgba(10, 44, 52, .4) 100%),
    url('/brands/brasil/invite-wallpaper.webp') center center / cover no-repeat;
  filter: blur(3px) saturate(.96);
  transform: scale(1.02);
}

.theme-brasil .hero-kicker {
  color: #d7e3d5;
}

.theme-brasil .hero-copy > p {
  color: #e0e9dd;
  text-shadow: 0 2px 16px rgba(2, 22, 24, .3);
}

.theme-brasil .public-person small {
  color: #f1da72;
}

.theme-brasil .public-person a {
  color: #f6df72;
}

.theme-brasil .trust-row {
  color: #edf3ea;
}

.theme-brasil .trust-row i {
  font-style: normal;
  font-weight: 800;
}

.theme-brasil .trust-row span:nth-child(1) i {
  color: #49c67a;
}

.theme-brasil .trust-row span:nth-child(2) i {
  color: #ffd84a;
}

.theme-brasil .trust-row span:nth-child(3) i {
  color: #72a9ee;
}

.theme-brasil .signup-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, .72);
  box-shadow: 0 28px 80px rgba(2, 24, 26, .36);
}

.theme-brasil .signup-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #078344 0 44%, #f0c808 44% 59%, #1456a0 59% 100%);
}

.theme-brasil .signup-card .eyebrow,
.theme-brasil .form-heading .eyebrow {
  color: #087c45;
}

.theme-brasil .form-heading .step,
.theme-brasil .person-placeholder {
  background: #087c45;
}

.theme-brasil .chips input:checked + span {
  color: #056b3a;
  border-color: #82c79f;
  background: #edf8f1;
}

.theme-brasil .field input:focus,
.theme-brasil .field select:focus,
.theme-brasil .field textarea:focus {
  border-color: #54a978;
  box-shadow: 0 0 0 3px rgba(8, 124, 69, .12);
}

.theme-brasil .public-footer {
  color: #d3dfd1;
  border-top-color: rgba(255, 255, 255, .2);
}

.theme-brasil .public-nav .brand-symbol-wide {
  width: 205px;
  height: auto;
  max-height: 48px;
}

.theme-brasil .public-nav::after {
  width: 150px;
  background: linear-gradient(90deg, #078344 0 45%, #f0c808 45% 60%, #1456a0 60% 100%);
}

.theme-brasil .hero-kicker i {
  background: #f0c808;
  box-shadow: 0 0 0 5px rgba(240, 200, 8, .14);
}

.theme-brasil .welcome-logo {
  width: 410px;
  max-width: 88%;
}

@media (max-width: 680px) {
  .theme-brasil .brand-symbol-wide,
  .theme-brasil .sidebar .brand-symbol-wide,
  .theme-brasil .public-nav .brand-symbol-wide {
    width: 178px;
  }

  .theme-brasil .auth-login-wallpaper {
    object-position: 58% 48%;
  }

  .theme-brasil .auth-story::after {
    background:
      linear-gradient(90deg, rgba(3, 25, 55, .7) 0%, rgba(4, 34, 72, .25) 62%, rgba(4, 34, 72, .06) 100%),
      linear-gradient(0deg, rgba(3, 24, 52, .2), transparent 62%);
  }

  .theme-brasil.public-body::before {
    background-position: 62% center;
  }
}
