/*
 * Telas do CustomerX MCP, no desenho das telas de entrada do Proza (CxProza, apps/web):
 * tokens de packages/ui/src/tokens.css, login de apps/web/src/styles.css e consentimento de
 * apps/web/src/screens/autorizar-app.css e autorizar-mcp.css. Os valores estão nos mesmos
 * "px de desenho" do Proza, e a escala de 80% com mouse vem de apps/web/src/escala.css.
 */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #564699;
  --brand-hover: #473a80;
  --brand-tint: #f2edf9;
  --brand-tint-border: #ece5f6;
  --bg: #f7f7fa;
  --surface: #fff;
  --surface-sunken: #f8f5fb;
  --surface-hover: #f4f1f8;
  --ink: #272433;
  --ink-heading: #46364f;
  --muted: #625e73;
  --subtle: #6d6679;
  --placeholder: #6d6778;
  --border: #ebeaf0;
  --border-strong: #e3dfeb;
  --success: #2f7a54;
  --success-soft: #edf7f0;
  --danger-ink: #ad4b41;
  --danger-soft: #fff3f0;
  --danger-border: #efcec9;
  --warning: #98651f;
  --warning-soft: #fff6e9;
  --warning-border: #f6e8d0;
  --focus-ring: #937bd9;
  --focus-field: #947dd3;
  --shadow: 0 12px 36px #30234c0d;
  --shadow-raised: 0 4px 12px #56469925;
  --font: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --escala: 1;
}

/* Com mouse o Proza renderiza a 80% e compensa as alturas de viewport (escala.css).
   `:root` e não `html`: o `:root` acima tem especificidade maior e venceria o `--escala`. */
@supports (zoom: 1) {
  @media (pointer: fine) {
    :root {
      zoom: 0.8;
      --escala: 1.25;
    }
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p,
ul,
ol,
dl {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
code {
  font-family: var(--mono);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ botões */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.09s ease-out;
}
.button:active {
  transform: translateY(1px);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 3px #352a5e15;
}
.button-primary:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: var(--shadow-raised);
}
.button-primary:active {
  box-shadow: 0 1px 2px #352a5e20;
}
.button-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: #514a65;
}
.button-secondary:hover:not(:disabled) {
  background: #f5f2fb;
}
.button-sm {
  min-height: 32px;
  padding: 7px 11px;
  gap: 6px;
  font-size: 12px;
}

/* ------------------------------------------------------ login: tela dividida */

.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh * var(--escala));
  background: #fdfcfe;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  padding: 44px 60px 32px;
  overflow: hidden;
  background: #302448;
  color: #fff;
}
.login-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: -420px;
  width: 1100px;
  height: 950px;
  background: radial-gradient(ellipse, #75609257, transparent 61%);
  pointer-events: none;
}
.login-story::after {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -300px;
  width: 650px;
  height: 650px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  box-shadow: 0 0 0 95px #ffffff03, 0 0 0 185px #ffffff02;
  pointer-events: none;
}
.story-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff16 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
  mask-image: linear-gradient(to bottom, transparent, #000);
}
.login-brand-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.login-brand {
  display: block;
  width: auto;
  height: 34px;
}
.by-cx {
  padding-left: 18px;
  border-left: 1px solid #ffffff22;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #d7cbe0;
}
.story-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px 0 15px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #c7b5e2;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7b5e2;
}
.story-title {
  margin-bottom: 20px;
  font-size: clamp(34px, 3.3vw, 52px);
  font-weight: 550;
  line-height: 1.19;
  letter-spacing: -2px;
  white-space: nowrap;
}
.story-title em {
  font-style: normal;
  color: #c2a9e9;
}
.story-text {
  max-width: 440px;
  font-size: 14px;
  font-weight: 350;
  line-height: 1.85;
  color: #c4b9d3;
}

.story-illustration {
  position: relative;
  max-width: 470px;
  height: 330px;
  margin-top: 18px;
}
.orbit {
  position: absolute;
  top: -22px;
  left: 35px;
  width: 370px;
  height: 370px;
  border: 1px solid #cdb4f31a;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.orbit-two {
  top: 14px;
  left: -5px;
  width: 440px;
  height: 290px;
}
.story-card {
  position: absolute;
  top: 10px;
  left: 60px;
  width: 310px;
  padding: 18px;
  border: 1px solid #fff;
  border-radius: 15px;
  background: #fefcff;
  box-shadow: 0 24px 65px #10082244;
  color: var(--ink);
  transform: rotate(-4deg);
}
.story-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efebf4;
}
.story-card-heading strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.story-card-heading small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #8c8499;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.avatar-bot {
  background: var(--brand-tint);
  color: var(--brand);
}
.avatar-bot .icon {
  width: 18px;
  height: 18px;
}
.online-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #64a783;
}
.story-outgoing {
  margin-left: 43px;
  padding: 10px 13px 7px;
  border-radius: 11px 2px 11px 11px;
  background: #eee8f8;
  font-size: 11px;
  line-height: 1.7;
}
.story-outgoing small {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 8px;
  color: #9686ab;
}
.story-outgoing small .icon {
  width: 11px;
  height: 11px;
}
.story-incoming {
  width: 235px;
  margin-top: 13px;
  padding: 10px 13px;
  border-radius: 2px 11px 11px 11px;
  background: #f4f1f7;
  font-size: 11px;
  line-height: 1.65;
}
.story-pill {
  position: absolute;
  bottom: 26px;
  left: 100px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid #80658d;
  border-radius: 10px;
  background: #453259;
  box-shadow: 0 10px 35px #16082140;
  font-size: 10px;
  color: #e7dfed;
  white-space: nowrap;
  transform: rotate(3deg);
}
.story-pill strong {
  font-weight: 550;
  color: #fff;
}
.story-pill-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #726388;
  color: #e5d4fa;
}
.story-pill-icon .icon {
  width: 14px;
  height: 14px;
}
.floating-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #9880b358;
  border-radius: 13px;
  background: #5e4779;
  box-shadow: 0 9px 22px #190b3040;
  color: #d3b5f5;
}
.floating-icon .icon {
  width: 20px;
  height: 20px;
}
.floating-one {
  top: 115px;
  left: 10px;
  transform: rotate(-11deg);
}
.floating-two {
  top: 58px;
  right: 8px;
  transform: rotate(12deg);
}
.story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #bfb0ce;
}
.story-footer .icon {
  width: 15px;
  height: 15px;
  color: #c7b5e2;
}

.login-form-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 48px 24px;
}
.login-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #9a93a7;
}
.login-security {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9991a4;
}
.login-security .icon {
  width: 14px;
  height: 14px;
}
.login-form-wrap {
  width: 100%;
  max-width: 375px;
  margin: auto;
  padding: 46px 0;
}
.mobile-brand {
  display: none;
  width: auto;
  height: 26px;
  margin-bottom: 28px;
}
.welcome-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border: 1px solid var(--brand-tint-border);
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
}
.welcome-mark .icon {
  width: 23px;
  height: 23px;
}
.login-form-wrap h1 {
  margin-bottom: 10px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.1px;
}
.login-subtitle {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.login-subtitle strong {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.caps-label {
  margin: 22px 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-sunken);
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}
.login-form-wrap label {
  display: block;
  margin: 24px 0 8px;
  font-size: 11px;
  font-weight: 550;
}
/* Opt-in da escrita no login: caixa nunca marcada, separada dos escopos de leitura. */
.escrita-opcao {
  min-width: 0;
  margin: 22px 0 0;
  padding: 10px 14px 12px;
  border: 1px solid var(--brand-tint-border);
  border-radius: 9px;
  background: var(--brand-tint);
}
.escrita-opcao legend {
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}
.login-form-wrap .escrita-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.escrita-check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.escrita-check strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.escrita-check small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #a8a0b5;
  pointer-events: none;
}
.input-icon input {
  width: 100%;
  height: 46px;
  padding: 11px 42px 11px 41px;
  border: 1px solid #e5dfed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px #27243303;
  font-size: 12px;
  color: var(--ink);
}
.input-icon input::placeholder {
  color: var(--placeholder);
}
.input-icon input:focus {
  outline: 2px solid var(--focus-field);
  outline-offset: 1px;
  border-color: var(--brand);
}
.input-icon input[aria-invalid='true'] {
  border-color: var(--danger-border);
}
.input-icon input[aria-invalid='true']:focus {
  outline-color: var(--danger-ink);
}
.password-toggle {
  position: absolute;
  right: 8px;
  display: flex;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a198ad;
  cursor: pointer;
}
.password-toggle:hover {
  background: #f1eef6;
  color: var(--muted);
}
.password-toggle .icon {
  width: 18px;
  height: 18px;
}
.password-toggle .icon-hide,
.password-toggle[aria-pressed='true'] .icon-show {
  display: none;
}
.password-toggle[aria-pressed='true'] .icon-hide {
  display: block;
}
.field-hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.form-error {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding: 11px;
  border: 1px solid var(--danger-border);
  border-radius: 7px;
  background: var(--danger-soft);
  font-size: 12px;
  line-height: 1.5;
  color: var(--danger-ink);
}
.form-error .icon {
  margin-top: 1px;
}
.form-error strong {
  display: block;
  font-weight: 600;
}
.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  gap: 16px;
  border-radius: 7px;
  font-size: 12px;
}
.login-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.login-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brand);
}
.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #aaa1b6;
}

/* ------------------------------------ consentimento, erro e página inicial */

.autorizar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: calc(100dvh * var(--escala));
  padding: 40px 16px;
  background: var(--bg);
}
.autorizar-brand {
  display: block;
  width: auto;
  height: 29px;
}
.cartao {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cabeca {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.selo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--success);
}
.selo-marca {
  border: 1px solid var(--brand-tint-border);
  background: var(--brand-tint);
  color: var(--brand);
}
.icon-lg {
  width: 22px;
  height: 22px;
}
.cabeca h1 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--ink-heading);
  overflow-wrap: anywhere;
}
.cabeca p {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.escopos h2,
.secao h2 {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}
.escopos-lista {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.escopos-lista > li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
}
.escopos-lista > li + li {
  border-top: 1px solid var(--border);
}
.escopos-lista > li > .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--success);
}
.escopo {
  flex: 1;
  min-width: 0;
}
.escopo strong {
  display: block;
  font-weight: 550;
}
.escopo-resumo {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
/* Bloco de escrita da confirmação: lápis na cor da marca e o "Conectar só para leitura". */
.escopos-escrita .escopos-lista > li > .icon {
  color: var(--brand);
}
.escopos-intro {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.so-leitura {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* "O que inclui": a lista completa do escopo, fechada por padrão para os botões ficarem à vista. */
.inclui {
  margin-top: 4px;
}
.inclui summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* Área de clique maior sem mexer no layout: o padding cresce, a margem negativa compensa. */
  margin-block: -4px;
  padding-block: 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}
.inclui summary::-webkit-details-marker {
  display: none;
}
.inclui summary:hover {
  text-decoration: underline;
}
.icon-sm {
  width: 14px;
  height: 14px;
}
.icon-seta {
  transition: transform 0.15s ease;
}
.inclui[open] summary .icon-seta {
  transform: rotate(180deg);
}
.inclui-corpo {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.inclui-corpo ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}
.inclui-corpo li + li {
  margin-top: 4px;
}
.inclui-grupo {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-heading);
}
.inclui-grupo:first-child {
  margin-top: 0;
}
/* Aviso de texto de terceiros: destacado das linhas, porque é a parte mais sensível da lista. */
.inclui-nota {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--brand-tint-border);
  border-radius: 7px;
  background: var(--surface-sunken);
  color: var(--ink);
}
.inclui-nota .icon {
  margin-top: 2px;
  color: var(--subtle);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .icon-seta {
    transition: none;
  }
}
.nota {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--warning-border);
  border-radius: 9px;
  background: var(--warning-soft);
  font-size: 12px;
  line-height: 1.55;
  color: var(--warning);
}
.aviso .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.ficha {
  display: grid;
  gap: 8px;
}
.ficha div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.ficha dt {
  color: var(--muted);
}
.ficha dd {
  /* Valor que quebra de linha continua à direita, alinhado com o da linha de baixo. */
  margin: 0 0 0 auto;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 550;
}
/* Barra fixa no rodapé da tela: com a lista aberta, ou num notebook de 720 px, Negar e Autorizar
   continuam à vista. Por isso a ficha com o destino do retorno fica no alto, antes da lista:
   ninguém autoriza sem ter visto para onde volta. A margem negativa leva o fundo até a borda. */
.acoes {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -32px;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  /* Sombra para cima: diz que a lista continua por baixo da barra. */
  box-shadow: 0 -8px 16px -12px #30234c26;
}
/* O foco do teclado (e o "rolar até") para acima da barra, nunca atrás dela (WCAG 2.4.11). A
   barra tem 75 px; sobram uns 20 px. */
html:has(.acoes) {
  scroll-padding-bottom: 96px;
}
.acoes form {
  display: flex;
}
.rodape {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.estado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  border-radius: 9px;
  text-align: center;
}
.estado-erro {
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.estado-ok {
  border: 1px solid var(--border);
  background: var(--success-soft);
  color: var(--success);
}

/* Formulário dentro do cartão (página Revogar acesso): o mesmo campo do login. */
.formulario label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 550;
}
.formulario-acoes {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.rodape a {
  font-weight: 550;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.estado strong {
  font-size: 14px;
  font-weight: 550;
}
.estado p {
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.55;
}

.copiavel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-hover);
}
.copiavel code {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.copiavel .button {
  flex-shrink: 0;
  background: #fff;
}
.copiavel .button .icon {
  width: 14px;
  height: 14px;
}
.passos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: passo;
}
.passos li {
  position: relative;
  padding-left: 34px;
  counter-increment: passo;
  font-size: 13px;
  line-height: 1.5;
}
.passos li::before {
  content: counter(passo);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--brand-tint-border);
  border-radius: 50%;
  background: var(--brand-tint);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}
.passos strong {
  display: block;
  font-weight: 550;
}
.passos span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.passos code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-hover);
  font-size: 11px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 1250px) {
  .login-story {
    padding: 38px 42px 30px;
  }
  .story-title {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .story-card {
    left: 25px;
    width: 285px;
  }
  .story-incoming {
    width: 220px;
  }
  .story-outgoing {
    margin-left: 28px;
  }
  .story-pill {
    left: 43px;
  }
  .floating-one {
    left: -9px;
  }
  .floating-two {
    right: 0;
  }
  .login-form-side {
    padding: 33px 40px 25px;
  }
}

@media (max-width: 1000px) {
  .login-story {
    min-height: 720px;
    padding: 35px 30px;
  }
  .story-title {
    font-size: 33px;
    letter-spacing: -1.2px;
  }
  .story-card {
    top: 20px;
    left: 0;
    width: 272px;
    transform: rotate(-3deg);
  }
  .story-pill {
    bottom: 24px;
    left: 10px;
    font-size: 11px;
  }
  .floating-one {
    display: none;
  }
  .floating-two {
    top: 10px;
    right: -5px;
  }
  .login-form-side {
    padding: 31px 32px 23px;
  }
  .login-security {
    display: none;
  }
  .login-form-wrap h1 {
    font-size: 24px;
  }
  .login-footer {
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .login-page {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-form-side {
    min-height: calc(100dvh * var(--escala));
    padding: 24px;
  }
  .login-form-wrap {
    max-width: 380px;
    padding: 38px 0;
  }
  .mobile-brand {
    display: block;
  }
  .login-form-wrap h1 {
    font-size: 27px;
  }
  .login-topline {
    font-size: 12px;
  }
  .login-security {
    display: flex;
  }
  .login-footer {
    flex-direction: row;
    font-size: 10px;
  }
  .login-subtitle {
    font-size: 14px;
  }
  .login-form-wrap label {
    font-size: 14px;
  }
  .input-icon input {
    height: 49px;
    font-size: 13px;
  }
  .login-submit {
    height: 49px;
    font-size: 13px;
  }
  .field-hint,
  .login-note {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .cartao {
    padding: 20px;
  }
  /* Lado a lado mesmo no celular: empilhados, os dois botões ocupavam 124 px da tela fixa. */
  .acoes {
    margin: 0 -20px;
    padding: 16px 20px;
  }
  .acoes form,
  .formulario-acoes > * {
    flex: 1 1 0;
  }
  .acoes .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
