/* Leva25 — página inicial (login) e Portal do Cidadão.
   Tokens, gradientes, raios e sombras vêm da paleta oficial SIGCAÇAMBA
   já declarada em site.css. Nenhuma regra aqui depende de style inline. */

/* ==================== Login (tela cheia, duas colunas) ==================== */
.auth-shell {
  min-height: 100vh;
  background: var(--surface);
}

/* Landing do Portal do Cidadão */
.citizen-landing-shell { background: #fff; }
.citizen-landing-content, .citizen-landing-content > main { min-height: 100vh; }
.citizen-landing { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(480px, 1fr); color: #16283d; }
.citizen-landing__identity { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); color: #fff; background: linear-gradient(135deg, #2f8a3a 0%, #2c7b4a 42%, #245f92 78%, #22568f 100%); }
.citizen-landing__identity::before, .citizen-landing__identity::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.055); }
.citizen-landing__identity::before { width: 300px; height: 300px; right: -90px; top: -90px; }
.citizen-landing__identity::after { width: 360px; height: 360px; right: 40px; bottom: -140px; }
.citizen-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; line-height: 1.15; }
.citizen-brand__mark { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.15); }
.citizen-brand strong, .citizen-brand small { display: block; }
.citizen-brand strong { font-size: 20px; font-weight: 800; }
.citizen-brand small { margin-top: 3px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; }
.citizen-pitch { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 36px 0; }
.citizen-pitch__eyebrow { color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.citizen-pitch h1 { max-width: 14ch; margin: 18px 0 0; color: #fff; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.03; letter-spacing: -.02em; }
.citizen-pitch p { max-width: 42ch; margin: 20px 0 0; color: rgba(255,255,255,.9); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; }
.citizen-capabilities { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; }
.citizen-capabilities li { display: inline-flex; align-items: center; gap: 8px; }
.citizen-landing__services { display: flex; justify-content: center; padding: clamp(28px, 4vw, 56px); background: #fff; }
.citizen-services { width: 100%; max-width: 520px; margin: auto; }
.citizen-services__login { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.citizen-services__login a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #e4e9ef; border-radius: 10px; color: #16283d; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.citizen-services__login a:hover { border-color: #c3ccd6; background: #f6f8fa; }
.citizen-restricted__icon { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.citizen-services h2 { margin: 0; color: #16283d; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.citizen-services__lead { margin: 8px 0 26px; color: #5b6b7b; font-size: 16px; }
.citizen-report { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 18px; border: 1px solid #e4e9ef; border-radius: 16px; color: #16283d; text-decoration: none; transition: .15s ease; }
.citizen-report:hover { transform: translateY(-2px); border-color: #c3ccd6; box-shadow: 0 10px 28px rgba(22,40,61,.1); color: #16283d; text-decoration: none; }
.citizen-report > span:nth-child(2) { flex: 1; }
.citizen-report strong, .citizen-report small { display: block; }
.citizen-report strong { font-size: 17px; }
.citizen-report small { margin-top: 3px; color: #5b6b7b; font-size: 13.5px; line-height: 1.45; }
.citizen-report__icon { width: 46px; height: 46px; flex: none; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 12px; color: #2e7d32; background: rgba(46,125,50,.1); font-size: 21px; }
.citizen-report__alert { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.citizen-report__arrow { display: block; width: 20px; height: 20px; flex: none; color: #5b6b7b; }
.citizen-report__arrow path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.citizen-mapsearch { display: flex; gap: 10px; margin-bottom: 8px; }
.citizen-mapsearch input { min-width: 0; flex: 1; padding: 13px 16px; border: 1px solid #e4e9ef; border-radius: 12px; outline: none; background: #f6f8fa; color: #16283d; font: inherit; font-size: 15px; }
.citizen-mapsearch input:focus { border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.citizen-mapsearch button { padding: 0 18px; border: 0; border-radius: 12px; background: #2e7d32; color: #fff; font-size: 18px; cursor: pointer; }
.citizen-mapsearch button:hover { background: #276b2a; }
.citizen-mapcard { position: relative; overflow: hidden; margin-top: 6px; border: 1px solid #e4e9ef; border-radius: 16px; box-shadow: 0 10px 28px rgba(22,40,61,.1); }
.citizen-mapcard .map-shell { min-height: 400px; border: 0; border-radius: 0; }
.citizen-mapcard #map { min-height: 400px; height: clamp(400px, 48vh, 510px); }
.citizen-maplegend { position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 11px; margin: 0; padding: 9px 12px; border: 1px solid #e4e9ef; border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px rgba(0,0,0,.1); list-style: none; font-size: 12px; font-weight: 600; }
.citizen-maplegend li { display: inline-flex; align-items: center; gap: 6px; }
.citizen-dot { width: 10px; height: 10px; border-radius: 50%; }
.citizen-dot--regular { background: #2e7d32; }.citizen-dot--vencido { background: #e0a400; }.citizen-dot--sem-ctr { background: #c0392b; }.citizen-dot--nao-cadastrada { background: #8a8686; }
.citizen-footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 0 0; text-align: center; color: #5b6b7b; font-size: 12.5px; }
.citizen-footer a { display: inline-flex; align-items: center; border-radius: 4px; }
.citizen-footer img { display: block; width: auto; height: 30px; }
@media (max-width: 900px) { .citizen-landing { grid-template-columns: 1fr; }.citizen-landing__identity { min-height: 620px; }.citizen-landing__services { padding-block: 42px; } }
@media (max-width: 520px) { .citizen-landing__identity, .citizen-landing__services { padding: 24px 18px; }.citizen-landing__identity { min-height: 560px; }.citizen-capabilities { gap: 12px 18px; }.citizen-mapcard #map, .citizen-mapcard .map-shell { min-height: 360px; height: 360px; }.citizen-maplegend { right: 12px; }.citizen-report { gap: 12px; padding: 15px; } }

.auth-split {
  display: grid;
  width: 100%;
  min-height: 100vh;
  grid-template-columns: 1.05fr .95fr;
  overflow-x: hidden;
}

.auth-brandside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  overflow: hidden;
  padding: 4rem clamp(2rem, 4vw, 4rem);
  color: var(--color-white);
  background: linear-gradient(150deg, #1B5E20 0%, var(--color-green) 42%, var(--color-blue) 100%);
}

.auth-brandside::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .14), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(66, 165, 245, .30), transparent 46%);
  content: "";
  pointer-events: none;
}

.auth-brandside > * {
  position: relative;
}

.auth-brandmark {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  color: var(--color-white) !important;
  text-decoration: none;
}

.auth-brandmark__tile {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
}

.auth-brandmark__tile img {
  width: 32px;
  height: 32px;
}

.auth-brandmark__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
}

.auth-brandmark__tagline {
  display: block;
  font-size: .78rem;
  letter-spacing: .025em;
  opacity: .85;
}

.auth-pitch {
  max-width: 27.5rem;
}

.auth-pitch__eyebrow {
  display: block;
  margin-bottom: .875rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .8;
  text-transform: uppercase;
}

.auth-pitch__title {
  margin: 0 0 1.125rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}

.auth-pitch__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: .9;
}

.auth-seals {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: .875rem 1.75rem;
  font-size: .8125rem;
  list-style: none;
  opacity: .85;
}

.auth-seals li {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
}

.auth-formside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.25rem, 3vw, 2.5rem);
  background: var(--surface);
}

.auth-formside__inner {
  width: 100%;
  max-width: 23.75rem;
}

.auth-mobilebrand {
  display: none;
}

.auth-formside__title {
  margin: 0 0 .375rem;
  font-size: 1.625rem;
  font-weight: 800;
}

.auth-formside__subtitle {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field__label {
  display: block;
  margin-bottom: .375rem;
  font-size: .85rem;
  font-weight: 600;
}

.auth-field__control {
  position: relative;
}

.auth-field__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: .875rem;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-field__control input {
  width: 100%;
  min-height: 46px;
  padding: 0 .875rem 0 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FBFCFC;
  font-size: .9375rem;
}

.auth-field__control input:focus {
  border-color: var(--color-green);
}

.auth-field .form-alert {
  display: block;
  margin-top: .25rem;
  font-size: .8125rem;
}

.auth-alert.validation-summary-errors {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 1px solid #F5C2C7;
  border-radius: 9px;
  color: #842029;
  background: #FFF5F5;
}

.auth-alert.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.125rem;
}

.auth-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: .625rem 0 1.375rem;
  gap: .625rem 1rem;
  font-size: .85rem;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  margin: 0;
  gap: .5rem;
  color: var(--muted);
  cursor: pointer;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--color-green);
}

.auth-forgot {
  font-weight: 600;
}

.auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 10px;
  color: var(--color-white);
  background: var(--color-green);
  box-shadow: 0 4px 12px rgba(46, 125, 50, .28);
  font-size: .9688rem;
  font-weight: 700;
}

.auth-submit:hover,
.auth-submit:focus {
  color: var(--color-white);
  background: var(--color-green-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  gap: .625rem;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--color-dark);
  background: var(--surface);
  font-weight: 600;
}

.auth-secondary:hover,
.auth-secondary:focus {
  border-color: var(--color-green);
  color: var(--color-green);
}

.auth-extralinks {
  margin: 1rem 0 0;
  font-size: .85rem;
  text-align: center;
}

@media screen and (max-width: 61.9375rem) {
  .auth-split {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-brandside {
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .auth-pitch__title {
    font-size: 1.5rem;
  }

  .auth-pitch__text {
    font-size: .9375rem;
  }

  .auth-formside {
    padding: 2rem 1.25rem 2.5rem;
  }
}

@media screen and (max-width: 26rem) {
  .auth-brandside {
    padding: 1.5rem 1.125rem;
  }

  .auth-brandmark__tile {
    width: 44px;
    height: 44px;
  }

  .auth-brandmark__tile img {
    width: 26px;
    height: 26px;
  }

  .auth-seals {
    flex-direction: column;
    gap: .375rem;
  }

  .auth-brandmark,
  .auth-pitch,
  .auth-formside__inner {
    min-width: 0;
  }

  .auth-brandmark__tagline,
  .auth-pitch__title,
  .auth-pitch__text,
  .auth-formside__subtitle {
    overflow-wrap: anywhere;
  }

  .auth-formside__title {
    font-size: 1.375rem;
  }
}

/* Marcadores vetoriais do mapa público: sem PNG, sem HTML vindo do cadastro. */
.sig-map-marker-wrapper {
  background: transparent;
  border: 0;
}

.sig-map-marker {
  display: block;
  width: 48px;
  height: 40px;
  color: var(--color-green);
  filter: drop-shadow(0 2px 3px rgba(38, 50, 56, .48));
}

.sig-map-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sig-map-marker__body,
.sig-map-marker__rim,
.sig-map-marker__pointer,
.sig-map-marker__wheel {
  fill: currentColor;
  stroke: var(--color-white);
  stroke-linejoin: round;
  stroke-width: 2;
}

.sig-map-marker__detail {
  fill: none;
  stroke: var(--color-white);
  stroke-linecap: round;
  stroke-width: 2;
}

.sig-map-marker--regular { color: #2e7d32; }
.sig-map-marker--vencido { color: #e0a400; }
.sig-map-marker--sem-ctr { color: #c0392b; }
.sig-map-marker--nao-cadastrada { color: #8a8686; }

.leaflet-marker-icon:focus-visible .sig-map-marker {
  border-radius: 4px;
  outline: 3px solid #0b5cab;
  outline-offset: 3px;
}

/* ==================== Portal do Cidadão ==================== */
.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--color-dark) !important;
  text-decoration: none;
}

.portal-brand__tile {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-green), var(--color-blue));
}

.portal-brand__tile img {
  width: 24px;
  height: 24px;
}

.portal-brand__name {
  font-size: 1rem;
  font-weight: 800;
}

.portal-brand__suffix {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
}

.portal-page {
  max-width: 67.5rem;
  margin: 0 auto;
}

.portal-hero {
  padding: 3rem 0 .5rem;
  text-align: center;
}

.portal-hero__icon {
  display: inline-grid;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-green), var(--color-blue));
  box-shadow: var(--shadow-md);
}

.portal-hero__icon img {
  width: 44px;
  height: 44px;
}

.portal-hero__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
}

.portal-hero__lead {
  max-width: 41.25rem;
  margin: 0 auto .625rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.portal-hero__text {
  max-width: 41.25rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.portal-action {
  max-width: 38.75rem;
  margin: 2.25rem auto;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.portal-action__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 14px;
  color: #A65A00;
  background: #FFF3E0;
  font-size: 1.5rem;
}

.portal-action__title {
  margin: 0 0 .375rem;
  font-size: 1.1875rem;
  font-weight: 800;
}

.portal-action__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.portal-action__btn {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--color-white);
  background: var(--color-orange);
  font-weight: 700;
}

.portal-action__btn:hover,
.portal-action__btn:focus {
  color: var(--color-white);
  background: #D96E00;
}

.portal-mapintro {
  margin: 3rem 0 1.25rem;
  text-align: center;
}

.portal-mapintro__title {
  margin: 0 0 .5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5625rem);
  font-weight: 800;
}

.portal-mapintro__text {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: .9688rem;
}

.portal-mapintro__text a {
  font-weight: 700;
}

.portal-mapcard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.portal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.375rem;
  gap: .75rem 1.375rem;
  border-bottom: 1px solid var(--line);
}

.portal-legend__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: .75rem 1.375rem;
  list-style: none;
}

.portal-legend__label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.portal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: .5625rem;
  font-size: .875rem;
  font-weight: 600;
}

.portal-legend__chip {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: var(--color-white);
  font-size: .8125rem;
}

.portal-legend__chip--regular {
  background: var(--color-green);
}

.portal-legend__chip--vencido {
  background: #C62828;
}

.portal-legend__chip--sem-ctr {
  background: #6A45B0;
}

.portal-legend__chip--nao-cadastrada {
  background: var(--color-dark);
}

.portal-mapwrap {
  position: relative;
}

.portal-mapwrap .map-shell {
  min-height: 28.75rem;
}

.portal-mapwrap #map {
  height: 28.75rem;
  min-height: 28.75rem;
  max-height: none;
  border-radius: 0;
}

.portal-mapsearch {
  position: absolute;
  z-index: 500;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 22.5rem;
}

.portal-mapsearch__control {
  position: relative;
}

.portal-mapsearch__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: .75rem;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.portal-mapsearch input {
  width: 100%;
  min-height: 44px;
  padding: 0 .75rem 0 2.375rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: .9375rem;
}

.portal-mapsearch__status {
  display: block;
  margin-top: .5rem;
  padding: .375rem .625rem;
  border-radius: 8px;
  color: var(--color-dark);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  font-size: .8125rem;
}

.portal-mapsearch__status:empty {
  display: none;
}

@media screen and (max-width: 61.9375rem) {
  .portal-hero {
    padding: 1.75rem 0 .25rem;
  }

  .portal-action {
    margin: 1.75rem auto;
    padding: 1.25rem;
  }

  .portal-mapintro {
    margin: 2rem 0 1rem;
  }

  .portal-legend {
    padding: .875rem 1rem;
    gap: .625rem 1rem;
  }

  .portal-mapsearch {
    position: static;
    max-width: none;
    padding: .875rem 1rem 0;
  }

  .portal-mapwrap .map-shell {
    min-height: 22rem;
  }

  .portal-mapwrap #map {
    height: 22rem;
    min-height: 22rem;
  }
}

@media screen and (max-width: 26rem) {
  .portal-brand__suffix {
    display: none;
  }

  .portal-legend,
  .portal-legend__items {
    flex-direction: column;
    align-items: flex-start;
  }
}
