html.public-shell:has(.hero) {
  background: #211f24;
}
.public-shell body:has(.hero) {
  --accent: #bfdc83;
  --divider: #413b45;
  background:
    radial-gradient(ellipse at 6% 36%, #40384548, transparent 55%),
    linear-gradient(150deg, #211f24 5%, #1b191e 52%, #121114 84%, #101012 100%);
  color: #f7f8f6;
}
.public-shell .top:has(+ main .hero) {
  background: #211f24;
  border-color: var(--divider);
}
.public-shell .hero {
  --hero-shade: #252229;
  background: transparent;
}
.public-shell .hero::after {
  background: linear-gradient(90deg, var(--hero-shade) 0%, #2a262e 34%, #2a262eeb 42%, #2a262e72 60%, transparent 83%);
}
.public-shell .hero :is(.eyebrow, h1 em) {
  color: var(--accent);
}
.public-shell .hero .button.light,
.public-shell .top:has(+ main .hero) .button.nav:last-child {
  background: var(--accent);
  color: #172617;
  border-color: transparent;
}
.public-shell .hero .button.light:hover,
.public-shell .top:has(+ main .hero) .button.nav:last-child:hover {
  background: #d2eaa4;
}
.public-shell .top:has(+ main .hero) .topnav a:first-child {
  border-color: var(--accent);
  color: var(--accent);
}
.public-shell .hero + .scripture {
  background: #ffffff08;
  border-block: 1px solid var(--divider);
  color: #f7f8f6;
}
.public-shell .hero + .scripture figcaption {
  color: var(--accent);
}
.public-shell body:has(.hero) :is(.public-social, .app-footer) {
  background: #101012;
  border-color: var(--divider);
}
@media (max-width: 650px) {
  .public-shell .hero {
    background: radial-gradient(ellipse at 6% 70%, #40384544, transparent 75%);
  }
}

.public-shell .hero .button.light,
.public-shell .top:has(+ main .hero) .button.nav:last-child {
  box-shadow: 0 4px 18px #bfdc8326;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.public-shell .hero .button.light:is(:hover, :focus-visible),
.public-shell .top:has(+ main .hero) .button.nav:last-child:is(:hover, :focus-visible) {
  box-shadow: 0 7px 24px #bfdc8347;
  transform: translateY(-2px);
}
.public-shell .enrollment {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(370px, 40vw, 570px);
}
.public-shell .enrollment .welcome {
  max-width: min(44%, 530px);
}
.public-shell .enrollment h2 em {
  color: var(--accent);
  font-style: normal;
}
.welcome-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mask-image:
    linear-gradient(to right, transparent, #000 37%),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}
.welcome-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 32%;
}
@media (prefers-reduced-motion: no-preference) {
  .public-shell .hero .intro {
    animation: kairos-intro .65s ease-out both;
  }
  .welcome-photo img {
    animation: kairos-photo 14s ease-in-out infinite alternate;
  }
}
@keyframes kairos-intro {
  from { opacity: .2; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kairos-photo {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .public-shell .hero .button.light:is(:hover, :focus-visible),
  .public-shell .top:has(+ main .hero) .button.nav:last-child:is(:hover, :focus-visible) {
    transform: none;
    transition: none;
  }
}

.public-shell .top:has(+ main .hero) .topnav a:first-child:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.public-shell .app-footer .footer-credit strong span {
  color: var(--accent);
}
.welcome-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 36px 32%;
  pointer-events: none;
}
.welcome-orbits {
  position: absolute;
  inset: 8% auto 12% 0;
  width: min(40%, 540px);
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--accent);
}
.welcome-orbits span {
  position: absolute;
  width: 96%;
  height: 66%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .19;
  transform: rotate(-12deg);
}
.welcome-orbits span:nth-child(2) {
  transform: rotate(12deg);
  opacity: .12;
}
.welcome-signal {
  position: absolute;
  right: 20%;
  bottom: -14px;
  color: var(--accent);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 0 18px 3px currentColor;
  opacity: .85;
}
@media (prefers-reduced-motion: no-preference) {
  .welcome-orbits span {
    animation: kairos-orbit 7s ease-in-out infinite alternate;
  }
  .welcome-orbits span:nth-child(2) {
    animation-direction: alternate-reverse;
    animation-duration: 9s;
  }
  .welcome-signal {
    animation: kairos-signal 7s ease-in-out infinite alternate;
  }
}
@keyframes kairos-orbit {
  from { rotate: -6deg; scale: .99; }
  to { rotate: 6deg; scale: 1.035; }
}
@keyframes kairos-signal {
  from { translate: -10px 4px; opacity: .45; }
  to { translate: 12px -7px; opacity: 1; }
}
@media (max-width: 730px) {
  .public-shell .enrollment {
    align-items: start;
    min-height: 0;
    gap: 22px;
    padding-block: 36px 28px;
  }
  .public-shell .enrollment .welcome {
    max-width: 440px;
  }
  .welcome-visual {
    position: relative;
    inset: auto;
    height: clamp(210px, 56vw, 405px);
  }
  .welcome-photo {
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 85%, transparent);
    mask-composite: add;
    filter: brightness(.82);
  }
  .welcome-orbits {
    inset: 2px auto auto 0;
    width: min(94%, 475px);
    height: 190px;
  }
}

@property --kairos-button-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0turn;
}
.public-shell .hero .button.light {
  position: relative;
}
.public-shell .hero .button.light::after {
  content: "";
  position: absolute;
  inset: -3px;
  padding: 2px;
  border-radius: 10px;
  pointer-events: none;
  background: conic-gradient(from var(--kairos-button-angle), #bfdc8355 0% 89%, #bfdc83 96%, #f5ffde 99%, #bfdc8355 100%);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-origin: content-box, border-box;
  mask-clip: content-box, border-box;
  mask-composite: exclude;
}
@media (prefers-reduced-motion: no-preference) {
  .public-shell .hero .button.light::after {
    animation: kairos-button-light 6s linear infinite;
  }
}
@keyframes kairos-button-light {
  to { --kairos-button-angle: 1turn; }
}

.welcome-apps {
  margin-top: 21px;
}
.welcome-apps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.36;
}
.welcome-apps nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1px clamp(9px, 2vw, 22px);
}
.welcome-apps a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
  font-size: clamp(.98rem, 1.5vw, 1.14rem);
  font-weight: 700;
}
.welcome-apps a:first-child {
  padding-left: 0;
}
.welcome-apps a:hover,
.public-shell .public-social a:hover {
  color: var(--accent);
}
.welcome-apps svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.public-shell .public-social .wrap,
.public-shell .public-social nav {
  justify-content: flex-start;
}
@media (prefers-reduced-motion: no-preference) {
  .public-shell .topnav .support-opening {
    animation: kairos-portal 340ms ease-in both;
  }
}
@keyframes kairos-portal {
  45% { transform: scale(1.035); box-shadow: 0 0 12px #bfdc835c; }
  100% { transform: scale(1.075); background: #bfdc8327; box-shadow: 0 0 24px #bfdc8383; }
}
.support-opening .heart-icon,
.public-shell .topnav a:first-child:active .heart-icon {
  background-color: var(--accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S3 15.6 3 10a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 5.6-9 11-9 11Z'/%3E%3C/svg%3E");
}

html.public-shell:has(.flow) {
  background: #101012;
  color-scheme: dark;
}
.public-shell body:has(.flow) {
  --accent: #bfdc83;
  --form-surface: #26232a;
  --form-field: #1c1a20;
  --form-line: #655e6a;
  --form-text: #f7f8f6;
  --form-muted: #d4cfd8;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #211f24, #1b191e 55%, #101012);
  color: var(--form-text);
}
.public-shell body:has(.flow) .workspace {
  flex: 1;
}
.public-shell body:has(.flow) .top {
  background: linear-gradient(105deg, #101917, #172820);
  border-color: #b6cfab2b;
}
.public-shell body:has(.flow) .app-footer {
  background: #101012;
}
.public-shell .flow .wizard {
  color: var(--form-text);
  background: var(--form-surface);
  border-color: #413b45;
  box-shadow: 0 20px 55px #09080a55;
}
.public-shell .flow :is(.flow-intro p, #password-hint, #password-match, .password-meter small) {
  color: var(--form-muted);
}
.public-shell .flow :is(.wizard input, .field select, .field textarea, .wizard .choice, #email-domains) {
  color: var(--form-text);
  background: var(--form-field);
  border-color: var(--form-line);
}
.public-shell .flow .wizard input::placeholder {
  color: #ada6b3;
}
.public-shell .flow .wizard .choice:has(:checked) {
  background: #343f27;
  border-color: var(--accent);
}
.public-shell .flow :is(input, meter) {
  accent-color: var(--accent);
}
.public-shell .flow :is(a, .button.back, .under a) {
  color: var(--accent);
}
.public-shell .flow .wizard .button:not(.back) {
  background: linear-gradient(135deg,#c6e093,#a9cb6c);
  color: #131b10;
}
.public-shell .flow .wizard .button:not(.back):hover {
  background: #d2eaa4;
}
.public-shell .flow .button.back {
  border-color: var(--form-line);
}
.public-shell .flow .button.back:hover {
  background: #343f27;
}
.public-shell .flow .stepbar span {
  background: var(--form-line);
}
.public-shell .flow .stepbar .active {
  background: var(--accent);
}
.public-shell .flow :is(.register-error, #password-match.mismatch):not(:empty) {
  color: #ffad9e !important;
}
.public-shell .flow .match-icon {
  border-color: var(--accent);
}
.public-shell .flow :is(button, a, input, select, textarea):focus-visible {
  outline-color: var(--accent);
}

.welcome-photo img {
  object-position: 55% top;
  transform-origin: center top;
}
.welcome-photo {
  mask-image:
    linear-gradient(to right, transparent, #000 34%),
    linear-gradient(to bottom, transparent, #000 2%, #000 86%, transparent);
}
.public-shell body:has(.hero) .enrollment .public-social {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.public-shell .enrollment .public-social nav {
  min-height: 32px;
}

.public-shell .page-apoiar { --welcome-background: url("acolhimento-apoio.jpg"); }
.public-shell .page-cadastro { --welcome-background: url("acolhimento-cadastro.jpg"); }
.public-shell .page-entrar { --welcome-background: url("acolhimento-entrar.jpg"); }

.public-shell .flow {
  position: relative;
  isolation: isolate;
}
.public-shell .flow-intro :is(h1, p) {
  text-shadow: 0 2px 18px #101012;
}
@media (max-width: 730px) {
  .welcome-photo {
    mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 85%, transparent);
  }
}

.footer-downloads {
  max-width: min(44%, 530px);
  position: relative;
  top: 16px;
  min-width: 0;
  margin-top: 18px;
}
.footer-downloads .welcome-apps {
  margin-top: 0;
}
.footer-downloads .welcome-apps nav {
  justify-content: flex-start;
}
.footer-downloads .welcome-apps svg {
  width: 28px;
  height: 28px;
}
.public-shell body:has(.hero) .footer-downloads .public-social {
  background: transparent;
  padding: 0;
  border: 0;
}
.footer-downloads .public-social nav {
  min-height: 32px;
}
.footer-downloads .public-social a {
  padding-left: 0;
}
.footer-downloads .public-social svg {
  width: 17px;
  height: 17px;
}

.public-shell .flow :is(meter, progress) {
  appearance: none;
  accent-color: var(--accent);
  height: 8px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--form-line);
}
.public-shell .flow meter::-webkit-meter-bar,
.public-shell .flow progress::-webkit-progress-bar {
  border: 0;
  border-radius: 10px;
  background: var(--form-line);
}
.public-shell .flow meter::-webkit-meter-optimum-value,
.public-shell .flow meter::-webkit-meter-suboptimum-value,
.public-shell .flow meter::-webkit-meter-even-less-good-value,
.public-shell .flow progress::-webkit-progress-value {
  background: var(--accent);
}
.public-shell .flow meter::-moz-meter-bar,
.public-shell .flow progress::-moz-progress-bar {
  background: var(--accent);
}

.public-shell .eira-style-footer .footer-credit {
  align-self: center;
}
.public-shell .flow .wizard :is(.under, .counter) {
  color: var(--form-text);
}
.public-shell .flow .wizard .password-status:has(.match-icon:not([hidden])) #password-match {
  color: var(--accent);
}
.public-shell .flow .email-suggest [role="option"]:is(:hover, [aria-selected="true"]) {
  background: var(--accent);
  color: #172617;
}

@media (max-width: 730px) {
  .public-shell .enrollment > .wrap {
    --section-gutter: 28px;
    display: contents;
  }
  .public-shell .enrollment .welcome,
  .public-shell .enrollment .footer-downloads {
    width: calc(100% - 2 * var(--section-gutter));
    max-width: none;
    margin-inline: auto;
  }
  .public-shell .enrollment .welcome {
    grid-row: 1;
  }
  .welcome-visual {
    grid-row: 2;
  }
  .footer-downloads {
    grid-row: 3;
    top: auto;
    margin-top: 0;
  }
}
@media (max-width: 650px) {
  .public-shell .enrollment > .wrap {
    --section-gutter: 18px;
  }
}

html.public-shell:has(.hero) {
  background: #101012;
}

.public-shell .flow .button { border-radius: 100px; }

.public-shell :is(.page-entrar, .page-cadastro, .page-apoiar) .workspace {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding-inline: clamp(15px, 4vw, 48px);
}
.public-shell :is(.page-entrar, .page-cadastro, .page-apoiar) .workspace::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(330px, 44vw, 550px);
  background: linear-gradient(90deg, #151c1970, #18171b35 52%, #18171ba8),
    var(--welcome-background) center 42% / cover no-repeat;
  mask-image: linear-gradient(#000 42%, transparent);
  pointer-events: none;
}
.public-shell :is(.page-entrar, .page-cadastro, .page-apoiar) .flow-intro::before {
  content: none;
}
@media (max-width: 730px) {
  .public-shell :is(.page-entrar, .page-cadastro, .page-apoiar) .workspace {
    padding-top: clamp(145px, 43vw, 250px);
  }
  .public-shell :is(.page-entrar, .page-cadastro, .page-apoiar) .workspace::before {
    height: clamp(225px, 61vw, 360px);
    background-position: center 36%;
  }
}
