/* ==========================================================================
   Tela de acesso - Agente de custos
   Estilos exclusivos do login, carregados depois de styles.css. Tudo fica sob
   .login-view / body.auth-screen para nao interferir no restante da plataforma.
   ========================================================================== */

body.auth-screen {
  overflow-x: hidden;
  overflow-y: auto;
  background: #050f24;
}

body.auth-screen .lina-launcher,
body.auth-screen .lina-chat,
body.auth-screen .loading-overlay-modern,
body.auth-screen .toast {
  display: none !important;
}

.login-view {
  --lg-bg-0: #040c1f;
  --lg-bg-1: #08173a;
  --lg-text: #eef3ff;
  --lg-text-soft: #b4c2e3;
  --lg-text-dim: #8090b6;
  --lg-blue: #5b9dff;
  --lg-violet: #8b7bff;
  --lg-green: #45d6a6;
  --lg-amber: #f4b553;
  --lg-ink: #0f1a33;
  --lg-ink-soft: #55617d;
  --lg-ink-dim: #7c879f;
  --lg-line: #dbe2ee;
  --lg-field: #f6f8fc;
  --lg-accent: #5646ec;
  --lg-accent-strong: #4334d6;
  --lg-focus: rgba(86, 70, 236, 0.18);
  --lg-radius: 8px;
  --lg-font: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --lg-font-display: "Segoe UI Variable Display", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --lg-mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--lg-text);
  font-family: var(--lg-font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(38, 76, 170, 0.32), transparent 55%),
    radial-gradient(90% 80% at 92% 100%, rgba(90, 64, 210, 0.24), transparent 60%),
    linear-gradient(165deg, var(--lg-bg-1) 0%, var(--lg-bg-0) 62%);
}

.login-view h1,
.login-view h2,
.login-view p,
.login-view figure,
.login-view ul {
  margin: 0;
}

.login-view ul {
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   Fundo: grade tecnica + rede de estruturas com valores subindo ate o produto
   -------------------------------------------------------------------------- */

.login-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
}

.login-glow-a {
  top: -18%;
  left: -8%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, rgba(70, 120, 255, 0.16), transparent 62%);
}

.login-glow-b {
  right: -14%;
  bottom: -30%;
  width: 64vmax;
  height: 64vmax;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14), transparent 62%);
}

.login-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(126, 158, 222, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 158, 222, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(126, 158, 222, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 158, 222, 0.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}

.login-network {
  position: absolute;
  top: -24px;
  left: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  overflow: visible;
  transform: translate3d(var(--login-parallax-x, 0px), var(--login-parallax-y, 0px), 0);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: radial-gradient(ellipse 60% 64% at 50% 50%, rgba(0, 0, 0, 0.25) 20%, rgba(0, 0, 0, 0.7) 58%, #000 88%);
  mask-image: radial-gradient(ellipse 60% 64% at 50% 50%, rgba(0, 0, 0, 0.25) 20%, rgba(0, 0, 0, 0.7) 58%, #000 88%);
}

/* Arvores que passariam por tras do conteudo ficam discretas e sem rotulos. */
.login-network .is-behind { opacity: 0.32; }
.login-network-labels .is-behind { display: none; }

.login-network-edge {
  fill: none;
  stroke: rgba(132, 164, 228, 0.24);
  stroke-width: 1.1;
}

.login-network-leaf { fill-opacity: 0.62; }

.login-network-sub {
  fill: #0a1b3f;
  stroke-width: 1.3;
  stroke-opacity: 0.85;
}

.login-network-root {
  fill: #0a1b3f;
  stroke-width: 1.8;
}

.login-network-ring {
  fill: none;
  stroke-width: 1.2;
  stroke-opacity: 0.3;
}

.login-network-code {
  font-family: var(--lg-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  fill: rgba(164, 188, 238, 0.42);
}

.login-network-value {
  font-family: var(--lg-mono);
  font-size: 12.5px;
  font-weight: 600;
  fill: rgba(214, 228, 255, 0.7);
}

.login-network-packet-core { fill: #f2f7ff; }

/* --------------------------------------------------------------------------
   Estrutura da pagina
   -------------------------------------------------------------------------- */

.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) clamp(20px, 4vw, 56px) 20px;
}

/* --------------------------------------------------------------------------
   Heroi: identidade e composicao de custo ilustrativa
   -------------------------------------------------------------------------- */

.login-hero {
  display: grid;
  gap: 26px;
  max-width: 600px;
}

.login-hero > * {
  animation: lgRise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-hero > :nth-child(2) { animation-delay: 70ms; }
.login-hero > :nth-child(3) { animation-delay: 150ms; }
.login-hero > :nth-child(4) { animation-delay: 230ms; }

.login-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 10px 9px;
  background: linear-gradient(150deg, rgba(91, 157, 255, 0.2), rgba(139, 123, 255, 0.16));
  border: 1px solid rgba(155, 182, 255, 0.24);
  border-radius: var(--lg-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-mark i {
  width: 5px;
  border-radius: 2px;
  transform-origin: bottom;
  animation: lgMark 2.4s ease-in-out infinite;
}

.login-mark i:nth-child(1) { height: 10px; background: var(--lg-blue); }
.login-mark i:nth-child(2) { height: 19px; background: var(--lg-green); animation-delay: 180ms; }
.login-mark i:nth-child(3) { height: 14px; background: var(--lg-violet); animation-delay: 360ms; }

.login-env {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: var(--lg-text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.login-env i {
  width: 7px;
  height: 7px;
  background: var(--lg-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(69, 214, 166, 0.14);
  animation: lgPulse 2.4s ease-in-out infinite;
}

.login-intro {
  display: grid;
  gap: 12px;
}

.login-kicker {
  color: #92b8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-title {
  color: #f5f8ff;
  font-family: var(--lg-font-display);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.login-title span {
  color: transparent;
  background: linear-gradient(95deg, #7db2ff 0%, #a497ff 48%, #5fe0b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.login-lead {
  max-width: 520px;
  color: var(--lg-text-soft);
  font-size: 17px;
  line-height: 1.55;
}

/* Cartao de composicao (ilustrativo) */

.cost-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(160, 186, 240, 0.17);
  border-radius: var(--lg-radius);
  box-shadow: 0 32px 80px -36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cost-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cost-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lg-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cost-card-label i {
  width: 6px;
  height: 6px;
  background: var(--lg-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.16);
}

.cost-card-meta {
  color: var(--lg-text-dim);
  font-family: var(--lg-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.cost-card-product {
  color: var(--lg-text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cost-stack {
  position: relative;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.cost-stack i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--offset, 0) * 1%);
  width: calc(var(--share, 0) * 1%);
  background: var(--tone);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 440ms cubic-bezier(0.33, 1, 0.68, 1) calc(var(--order, 0) * 230ms);
}

.cost-stack i + i { box-shadow: inset 2px 0 0 #0c1c40; }

.cost-legend {
  display: grid;
  gap: 9px;
}

.cost-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 58px 112px;
  align-items: center;
  gap: 10px;
  color: var(--lg-text-soft);
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 380ms ease, transform 380ms ease;
  transition-delay: calc(var(--order, 0) * 110ms + 160ms);
}

.cost-stack i:nth-child(1), .cost-legend li:nth-child(1) { --tone: var(--lg-blue); --order: 0; }
.cost-stack i:nth-child(2), .cost-legend li:nth-child(2) { --tone: var(--lg-violet); --order: 1; }
.cost-stack i:nth-child(3), .cost-legend li:nth-child(3) { --tone: var(--lg-green); --order: 2; }
.cost-stack i:nth-child(4), .cost-legend li:nth-child(4) { --tone: var(--lg-amber); --order: 3; }

.cost-swatch {
  width: 10px;
  height: 10px;
  background: var(--tone);
  border-radius: 3px;
}

.cost-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-share,
.cost-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cost-share { color: var(--lg-text-dim); }
.cost-value { color: var(--lg-text); font-weight: 600; }

.cost-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(160, 186, 240, 0.2);
}

.cost-total span {
  color: var(--lg-text-soft);
  font-size: 13px;
}

.cost-total strong {
  color: #ffffff;
  font-family: var(--lg-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cost-trend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  align-items: center;
  gap: 12px;
  color: var(--lg-text-dim);
  font-size: 12px;
}

.cost-trend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-spark {
  width: 120px;
  height: 32px;
  overflow: visible;
}

.cost-spark polyline {
  fill: none;
  stroke: var(--lg-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--length, 200);
  stroke-dashoffset: var(--length, 200);
  transition: stroke-dashoffset 1100ms cubic-bezier(0.33, 1, 0.68, 1) 420ms;
}

.cost-spark circle {
  fill: #eaf2ff;
  stroke: var(--lg-blue);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 260ms ease 1450ms;
}

.cost-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 260ms ease 1500ms, transform 260ms ease 1500ms;
}

.cost-delta.is-down { color: #74f0c6; background: rgba(69, 214, 166, 0.13); }
.cost-delta.is-up { color: #ffd38f; background: rgba(244, 181, 83, 0.14); }

.cost-card-product,
.cost-total strong,
.cost-card-meta {
  transition: opacity 360ms ease;
}

.cost-card.is-filled .cost-stack i { transform: scaleX(1); }
.cost-card.is-filled .cost-legend li { opacity: 1; transform: none; }
.cost-card.is-filled .cost-spark polyline { stroke-dashoffset: 0; }
.cost-card.is-filled .cost-spark circle { opacity: 1; }
.cost-card.is-filled .cost-delta { opacity: 1; transform: none; }

.cost-card.is-leaving .cost-stack i {
  transform: scaleX(0);
  transition-duration: 300ms;
  transition-delay: 0ms;
}

.cost-card.is-leaving .cost-legend li,
.cost-card.is-leaving .cost-delta,
.cost-card.is-leaving .cost-spark circle,
.cost-card.is-leaving .cost-card-product,
.cost-card.is-leaving .cost-card-meta,
.cost-card.is-leaving .cost-total strong {
  opacity: 0;
  transition-delay: 0ms;
}

.cost-card.is-leaving .cost-spark polyline {
  stroke-dashoffset: var(--length, 200);
  transition-duration: 320ms;
  transition-delay: 0ms;
}

.cost-card.is-resetting,
.cost-card.is-resetting *,
.cost-card.is-static,
.cost-card.is-static * {
  transition: none !important;
}

/* Diferenciais */

.login-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.login-features li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.login-feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid;
  border-radius: var(--lg-radius);
}

.login-feature-icon svg {
  width: 17px;
  height: 17px;
}

.login-feature-icon.is-blue { color: #a5c8ff; background: rgba(91, 157, 255, 0.12); border-color: rgba(91, 157, 255, 0.24); }
.login-feature-icon.is-violet { color: #bdb3ff; background: rgba(139, 123, 255, 0.12); border-color: rgba(139, 123, 255, 0.26); }
.login-feature-icon.is-green { color: #84ebc8; background: rgba(69, 214, 166, 0.11); border-color: rgba(69, 214, 166, 0.24); }

.login-feature-copy strong {
  display: block;
  color: var(--lg-text);
  font-size: 13.5px;
  font-weight: 650;
}

.login-feature-copy span {
  display: block;
  margin-top: 2px;
  color: var(--lg-text-dim);
  font-size: 12.5px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Cartao de acesso
   -------------------------------------------------------------------------- */

.login-access {
  animation: lgRise 760ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 0;
  color: var(--lg-ink);
  background: #ffffff;
  border-radius: var(--lg-radius);
  box-shadow:
    0 50px 120px -34px rgba(0, 4, 18, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #4d8dff, #7b68ff 52%, #45d6a6);
}

.login-card.is-shaking {
  animation: lgShake 440ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.login-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
}

.login-greeting {
  color: var(--lg-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card h2 {
  color: var(--lg-ink);
  font-family: var(--lg-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.login-card-sub {
  color: var(--lg-ink-soft);
  font-size: 14.5px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field > label {
  color: #26314b;
  font-size: 13px;
  font-weight: 650;
}

.login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #8b95ab;
  pointer-events: none;
  transition: color 160ms ease;
}

.login-input input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 44px;
  color: var(--lg-ink);
  background: var(--lg-field);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  outline: none;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-input.has-action input { padding-right: 52px; }

.login-input input:hover { border-color: #c5cfe1; }

.login-input input:focus {
  background: #ffffff;
  border-color: var(--lg-accent);
  box-shadow: 0 0 0 4px var(--lg-focus);
}

.login-input:focus-within .login-input-icon { color: var(--lg-accent); }

.login-input input[aria-invalid="true"] {
  background: #ffffff;
  border-color: #df7d71;
  box-shadow: 0 0 0 4px rgba(194, 65, 47, 0.1);
}

.login-input input[aria-invalid="true"] + .login-input-action,
.login-input:has(input[aria-invalid="true"]) .login-input-icon {
  color: #c2412f;
}

/* O botao proprio de mostrar senha substitui o "olho" nativo do Edge. */
.login-input input::-ms-reveal { display: none; }

/* Preenchimento automatico do navegador sem o fundo amarelado padrao. */
.login-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--lg-ink);
  caret-color: var(--lg-ink);
  box-shadow: inset 0 0 0 1000px #eef3ff;
  transition: background-color 9999s ease 0s;
}

.login-input input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 1000px #ffffff, 0 0 0 4px var(--lg-focus);
}

.login-input-action {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #7c879f;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.login-input-action:hover {
  color: var(--lg-ink);
  background: #edf1f8;
}

.login-input-action:focus-visible {
  outline: 2px solid var(--lg-accent);
  outline-offset: 1px;
}

.login-input-action svg {
  width: 18px;
  height: 18px;
}

.login-caps {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9a5b00;
  font-size: 12.5px;
  font-weight: 650;
}

.login-caps svg {
  width: 15px;
  height: 15px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--lg-ink-soft);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #ffffff;
  border: 1.5px solid #c1c9da;
  border-radius: 5px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.login-remember input::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-right: 0;
  transform: translate(0, -1px) rotate(-45deg) scale(0);
  transition: transform 140ms ease;
}

.login-remember input:checked {
  background: var(--lg-accent);
  border-color: var(--lg-accent);
}

.login-remember input:checked::after { transform: translate(0, -1px) rotate(-45deg) scale(1); }

.login-remember input:focus-visible {
  border-color: var(--lg-accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--lg-focus);
}

/* reCAPTCHA */

.recaptcha-block {
  display: grid;
  gap: 8px;
}

.recaptcha-container {
  min-height: 0;
}

.recaptcha-container:not(:empty) {
  min-height: 78px;
}

.recaptcha-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  color: #42506f;
  background: #f4f7fc;
  border: 1px dashed #d1daea;
  border-radius: var(--lg-radius);
  font-size: 13px;
  font-weight: 600;
}

.recaptcha-status.is-error {
  color: #8c2f27;
  background: #fff3f1;
  border-color: #f0c6bf;
  border-style: solid;
}

.recaptcha-pulse {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: #4d7ef5;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(77, 126, 245, 0.3);
  animation: lgRecaptchaPulse 1.4s ease-out infinite;
}

.recaptcha-retry {
  justify-self: start;
  padding: 0;
  color: var(--lg-accent);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Alertas */

.login-alert {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--lg-radius);
  font-size: 13.5px;
  line-height: 1.45;
  animation: lgAlertIn 240ms ease both;
}

.login-alert.is-error { color: #7d1f15; background: #fff4f2; border-color: #f4c8c1; }
.login-alert.is-warning { color: #6f4306; background: #fff8ea; border-color: #f3d79f; }
.login-alert.is-info { color: #1d3a6d; background: #f1f6ff; border-color: #c9dafa; }
.login-alert.is-success { color: #0f5b45; background: #eefbf5; border-color: #bfeadb; }

.login-alert-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.login-alert-title {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.login-alert-hint {
  margin-top: 6px !important;
  font-weight: 650;
}

.login-alert-hint.is-warning { color: #8f5300; }
.login-alert-hint.is-muted { color: #8a4b43; }

.login-alert-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 4px 10px;
  color: #6f4306;
  background: rgba(244, 181, 83, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
}

.login-alert-countdown b {
  font-family: var(--lg-mono);
  font-variant-numeric: tabular-nums;
}

/* Botao de entrada */

.login-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #6152f2 0%, var(--lg-accent) 45%, var(--lg-accent-strong) 100%);
  border: 0;
  border-radius: var(--lg-radius);
  box-shadow: 0 16px 30px -14px rgba(86, 70, 236, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 36px -14px rgba(86, 70, 236, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-submit:active:not(:disabled) { transform: translateY(0); }

.login-submit:focus-visible {
  outline: 3px solid rgba(86, 70, 236, 0.45);
  outline-offset: 3px;
}

.login-submit:disabled { cursor: not-allowed; }

.login-submit svg {
  width: 18px;
  height: 18px;
}

.login-submit-arrow { transition: transform 200ms ease; }
.login-submit:hover:not(:disabled) .login-submit-arrow { transform: translateX(3px); }

.login-submit-spinner,
.login-submit-wait {
  display: none;
}

.login-submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: lgSpin 700ms linear infinite;
}

.login-submit.is-busy { filter: saturate(0.9); }
.login-submit.is-busy .login-submit-spinner { display: block; }
.login-submit.is-busy .login-submit-arrow { display: none; }

.login-submit.is-locked {
  color: #f4f6fb;
  background: linear-gradient(135deg, #8d95aa, #7a8299);
  box-shadow: none;
}

.login-submit.is-locked .login-submit-wait { display: block; }
.login-submit.is-locked .login-submit-arrow { display: none; }

.login-submit-label { font-variant-numeric: tabular-nums; }

.login-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px -34px 0;
  padding: 14px 34px;
  color: #5d6983;
  background: #f6f8fc;
  border-top: 1px solid #e7ecf4;
  font-size: 12.5px;
  line-height: 1.4;
}

.login-card-foot svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #2c9c78;
}

/* --------------------------------------------------------------------------
   Rodape
   -------------------------------------------------------------------------- */

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px) 24px;
  color: rgba(182, 196, 228, 0.7);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Movimento
   -------------------------------------------------------------------------- */

@keyframes lgRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes lgPulse { 50% { opacity: 0.45; } }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgAlertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes lgRecaptchaPulse { 80%, 100% { box-shadow: 0 0 0 10px rgba(77, 126, 245, 0); } }

@keyframes lgMark {
  0%, 100% { opacity: 0.65; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes lgShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-height: 820px) and (min-width: 901px) {
  .login-layout { padding-top: 24px; }
  .login-hero { gap: 20px; }
  .login-features { display: none; }
  .login-card { padding-top: 28px; }
  .login-card-head { margin-bottom: 20px; }
  .login-form { gap: 15px; }
  .login-card-foot { margin-top: 22px; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .cost-trend { display: none; }
  .login-lead { font-size: 15.5px; }
}

@media (max-width: 1100px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 44px;
  }

  .login-features { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    width: min(480px, 100%);
    padding-top: 28px;
  }

  .login-hero { gap: 18px; }
  .cost-card,
  .login-features { display: none; }
  .login-title { font-size: 36px; }
  .login-lead { font-size: 15px; }
}

@media (max-width: 480px) {
  .login-layout { gap: 20px; padding: 20px 16px 16px; }
  .login-hero { gap: 14px; }
  .login-intro { gap: 8px; }
  .login-lead { display: none; }
  .login-card { padding: 22px 18px 0; }
  .login-card-head { margin-bottom: 20px; }
  .login-form { gap: 14px; }
  .login-card-foot { margin-inline: -18px; padding-inline: 18px; }
  .login-card h2 { font-size: 25px; }
  .login-title { font-size: 32px; }
  .login-footer {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 14px;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .recaptcha-container:not(:empty) {
    height: 70px;
    min-height: 70px;
    transform: scale(0.9);
    transform-origin: left top;
  }
}

/* Alto contraste do Windows: o texto em degrade precisa voltar a ser texto solido. */
@media (forced-colors: active) {
  .login-title span {
    color: CanvasText;
    background: none;
  }

  .login-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero > *,
  .login-access,
  .login-card.is-shaking,
  .login-mark i,
  .login-env i,
  .login-alert,
  .recaptcha-pulse {
    animation: none;
  }

  .login-network { transform: none; transition: none; }
  .login-submit,
  .login-submit-arrow,
  .login-input input { transition: none; }
  .login-submit-spinner { animation-duration: 1.6s; }
}
