html.auth-route body {
  background: #020812;
}

html.auth-route main {
  isolation: isolate;
}

/* Login-only cinematic background: glass panels, blue depth and warm architectural light. */
html.auth-route main::before,
html.auth-route main::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

html.auth-route main::before {
  inset: 0 37% 0 43%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(27,111,199,.10) 18.4% 18.8%, transparent 19.2% 52%, rgba(249,115,22,.52) 52.2% 52.55%, rgba(255,174,82,.15) 52.9% 54%, transparent 54.5%),
    linear-gradient(145deg, transparent 0 33%, rgba(49,144,255,.08) 33.2% 33.8%, transparent 34.2% 69%, rgba(249,115,22,.08) 69.2% 69.7%, transparent 70.2%),
    linear-gradient(90deg, rgba(2,10,20,.42), rgba(5,25,47,.16) 38%, rgba(2,8,18,.22));
  border-left: 1px solid rgba(48,133,220,.08);
  border-right: 1px solid rgba(48,133,220,.08);
  box-shadow: inset 0 0 110px rgba(18,93,173,.06);
  opacity: .95;
}

html.auth-route main::after {
  left: 38%;
  right: 2%;
  bottom: -8%;
  height: 35%;
  background:
    linear-gradient(166deg, transparent 0 49%, rgba(19,108,203,.08) 49.4% 50%, transparent 50.5%),
    linear-gradient(14deg, transparent 0 52%, rgba(249,115,22,.07) 52.3% 52.7%, transparent 53.2%),
    radial-gradient(ellipse at 54% 14%, rgba(8,119,237,.16), transparent 48%),
    linear-gradient(180deg, rgba(6,18,32,.02), rgba(1,7,15,.58));
  transform: perspective(620px) rotateX(58deg);
  transform-origin: bottom;
  filter: blur(.1px);
}

/* Keep the real login controls dark regardless of global form rules. */
html.auth-route main input:not([type="checkbox"]) {
  background: rgba(5, 20, 36, .92) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(53, 98, 146, .72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02) !important;
}

html.auth-route main input:not([type="checkbox"])::placeholder {
  color: #607087 !important;
  -webkit-text-fill-color: #607087 !important;
  opacity: 1;
}

html.auth-route main input:not([type="checkbox"]):focus {
  background: rgba(5, 20, 36, .98) !important;
  border-color: #2aa0ff !important;
  box-shadow: 0 0 0 3px rgba(22,133,255,.10), inset 0 1px 0 rgba(255,255,255,.02) !important;
}

html.auth-route main input[type="checkbox"] {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(71,105,145,.85);
  background: #071523;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

html.auth-route main input[type="checkbox"]::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
  margin-top: -1px;
}

html.auth-route main input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #079bff, #1767ff);
  border-color: #2997ff;
  box-shadow: 0 0 12px rgba(22,133,255,.28);
}

html.auth-route main input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

@media (min-width: 1024px) {
  /* Overall desktop proportion close to the approved concept. */
  html.auth-route main > div.relative.z-10 {
    max-width: 1760px !important;
    grid-template-columns: minmax(0, 61%) minmax(430px, 39%) !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child {
    position: relative !important;
    padding: 48px 40px 34px 76px !important;
    overflow: hidden !important;
  }

  /* Decorative glass-office details on the institutional side. */
  html.auth-route main > div.relative.z-10 > section:first-child::before {
    content: "";
    position: absolute;
    top: -8%;
    right: 3%;
    width: 42%;
    height: 116%;
    background:
      linear-gradient(90deg, rgba(5,18,33,.18), rgba(6,30,56,.11) 40%, rgba(2,10,19,.12)),
      repeating-linear-gradient(90deg, transparent 0 72px, rgba(42,121,206,.08) 73px 74px),
      linear-gradient(180deg, transparent 0 22%, rgba(249,115,22,.36) 22.1% 22.45%, transparent 22.8% 66%, rgba(41,151,255,.13) 66.2% 66.6%, transparent 67%);
    border-left: 1px solid rgba(54,134,220,.10);
    transform: skewX(-5deg);
    opacity: .92;
    box-shadow: -60px 0 130px rgba(5,56,112,.10);
  }

  html.auth-route main > div.relative.z-10 > section:first-child::after {
    content: "SONHAR   PLANEJAR   EXECUTAR   EVOLUIR";
    position: absolute;
    top: 28%;
    right: 6.5%;
    width: 74px;
    color: rgba(160,190,226,.26);
    font-size: 9px;
    line-height: 2.7;
    letter-spacing: .22em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-left: 2px solid rgba(249,115,22,.72);
    padding-left: 12px;
    z-index: 2;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child {
    position: relative !important;
    z-index: 4 !important;
    display: flex !important;
    width: 100% !important;
    min-height: calc(100vh - 82px) !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* Large primary Fluxo Moveleiro brand. */
  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:first-child {
    display: flex !important;
    min-height: 118px !important;
    align-items: flex-start !important;
  }

  html.auth-route main img[alt="Fluxo Moveleiro"] {
    height: 118px !important;
    width: auto !important;
    max-width: 465px !important;
    object-fit: contain !important;
    filter: brightness(1.10) saturate(1.08) drop-shadow(0 12px 32px rgba(0,126,255,.24)) !important;
  }

  /* Main copy: no overlaps, same hierarchy as the reference. */
  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) {
    position: relative !important;
    width: min(690px, 76%) !important;
    max-width: 690px !important;
    padding: 0 !important;
    margin-top: 18px !important;
    margin-bottom: auto !important;
    z-index: 5 !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:first-child {
    margin-bottom: 26px !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > h1 {
    max-width: 660px !important;
    font-size: clamp(50px, 4.2vw, 72px) !important;
    line-height: .98 !important;
    letter-spacing: -.047em !important;
    font-weight: 500 !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > h1 span {
    display: inline-block !important;
    margin-top: 5px !important;
    font-weight: 800 !important;
    color: #ff7418 !important;
    text-shadow: 0 12px 36px rgba(249,115,22,.08) !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > p {
    max-width: 560px !important;
    margin-top: 22px !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
    color: rgba(181,197,217,.74) !important;
  }

  /* Modules back to the clean 3x2 premium grid. */
  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(690px, 96%) !important;
    max-width: 690px !important;
    gap: 11px !important;
    margin-top: 31px !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:nth-of-type(2) > div {
    min-height: 72px !important;
    height: 72px !important;
    border-radius: 13px !important;
    padding: 0 15px !important;
    gap: 12px !important;
    background: linear-gradient(145deg, rgba(7,27,49,.78), rgba(3,14,27,.58)) !important;
    border-color: rgba(55,136,224,.19) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 34px -28px rgba(0,119,255,.58) !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:nth-of-type(2) > div > div:nth-child(2) {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: rgba(2,35,65,.82) !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:nth-of-type(2) p:first-child {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:nth-of-type(2) p:last-child {
    display: block !important;
    margin-top: 2px !important;
    font-size: 9px !important;
    color: rgba(126,151,181,.60) !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > div:nth-of-type(3) {
    width: min(690px, 96%) !important;
    max-width: 690px !important;
    margin-top: 26px !important;
    padding-top: 18px !important;
    gap: 18px !important;
    font-size: 8.5px !important;
    letter-spacing: .24em !important;
  }

  /* Copyright stays understated. */
  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(3) {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding-top: 22px !important;
  }

  /* Kill the 3D emblem completely — no asset, no pseudo replacement, no layout slot. */
  html.auth-route main > div.relative.z-10 > section:first-child > div:last-child {
    display: none !important;
  }

  html.auth-route main div:has(> img[aria-hidden="true"])::before,
  html.auth-route main div:has(> img[aria-hidden="true"])::after {
    content: none !important;
    display: none !important;
  }

  /* Access column and card: isolated, tall and clean. */
  html.auth-route main > div.relative.z-10 > section:nth-child(2) {
    padding: 44px 58px 44px 24px !important;
  }

  html.auth-route main > div.relative.z-10 > section:nth-child(2)::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 8%;
    width: 1px;
    height: 84%;
    background: linear-gradient(to bottom, transparent, rgba(249,115,22,.52) 27%, rgba(249,115,22,.15) 55%, transparent);
    box-shadow: 0 0 22px rgba(249,115,22,.15);
  }

  html.auth-route main > div.relative.z-10 > section:nth-child(2) > div:last-child {
    max-width: 480px !important;
  }

  html.auth-route main > div.relative.z-10 > section:nth-child(2) > div:last-child > div:nth-child(2) {
    border-radius: 23px !important;
    border-color: rgba(50,126,205,.58) !important;
    background: linear-gradient(150deg, rgba(4,18,33,.96), rgba(2,12,24,.93)) !important;
    box-shadow: 0 36px 110px rgba(0,0,0,.53), 0 0 70px rgba(16,109,255,.08), inset 0 1px 0 rgba(255,255,255,.025) !important;
  }

  /* No duplicate logo inside the card. */
  html.auth-route main > div.relative.z-10 > section:nth-child(2) > div:last-child > div:nth-child(2)::before {
    content: none !important;
    display: none !important;
  }

  /* Restore the elegant corporate header in the login card. */
  html.auth-route main > div.relative.z-10 > section:nth-child(2) > div:last-child > div:nth-child(2) > div:last-child > div:first-child {
    display: flex !important;
  }
}

@media (min-width: 1536px) {
  html.auth-route main > div.relative.z-10 > section:first-child {
    padding-left: 92px !important;
    padding-top: 58px !important;
  }

  html.auth-route main img[alt="Fluxo Moveleiro"] {
    height: 132px !important;
    max-width: 520px !important;
  }

  html.auth-route main > div.relative.z-10 > section:first-child > div:first-child > div:nth-child(2) > h1 {
    font-size: 76px !important;
  }
}

@media (max-width: 1023px) {
  /* Mobile keeps only the functional card and one prominent brand. */
  html.auth-route main::before,
  html.auth-route main::after {
    display: none;
  }

  html.auth-route main > div.relative.z-10 > section:nth-child(2) {
    min-height: 100svh !important;
    padding: 24px 18px !important;
  }

  html.auth-route main img[alt="Fluxo Moveleiro"] {
    height: 92px !important;
    max-width: 330px !important;
  }

  html.auth-route main div:has(> img[aria-hidden="true"]) {
    display: none !important;
  }
}
