/* ===========================================================================
   Estilos das páginas de acesso (/login e /conta).
   Header, menu mobile, .connect-card e tipografia são cópias fiéis do padrão
   de Landpage/landing.html — as duas páginas precisam ser indistinguíveis do
   resto do site.
   =========================================================================== */

:root {
  --primary: #0A3C30;
  --secondary: #000000;
  --accent: #b08934;
  --ink: #000000;
  --ink-soft: #555555;
  --ink-mute: #888888;
  --bg: #f5f4f2;
  --surface: #eceae7;
  --white: #fff;
  --line: #dcdad6;
  --card-ink: #1f1f1f;
  --gold: #b08934;
  --gold-deep: #96722a;
  --green: #0A3C30;
  --danger: #b3261e;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --font: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Chevron dos seletores. Vive no :root porque admin.css também o usa, em
     três escalas: um seletor com a seta do sistema operacional é o jeito mais
     rápido de a tela deixar de parecer a mesma tela. */
  --chev: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --shadow: 0 10px 40px rgba(0, 0, 0, .10);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box }
html { scroll-padding-top: 72px }
html, body { margin: 0; padding: 0 }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: linear-gradient(135deg, #f5f4f2 0%, #eceae7 50%, #e2dedb 100%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font); letter-spacing: -.02em; margin: 0 }
a { color: inherit; text-decoration: none }
.wrap { width: min(1440px, 100%); margin-inline: auto; padding-inline: clamp(16px, 3vw, 48px) }

/* ---------- Header (idêntico ao da landing) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 28px; height: 72px }
.brand { display: flex; align-items: center }
.brand img { height: 46px; width: auto }
.main-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px }
.main-nav a {
  position: relative; padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 500; color: #fff;
  transition: color .35s var(--ease), background .25s var(--ease);
}
.main-nav a.active { color: var(--gold) }
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1) }

.header-social { margin-left: auto; display: flex; gap: 4px }
.header-social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  transition: color .35s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.header-social a:hover { background: rgba(127, 127, 127, .18); transform: translateY(-2px) }
.header-social svg { width: 18px; height: 18px; fill: currentColor }
.menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
  color: #fff; place-items: center; background: none; border: none; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor }
@media (max-width:860px) {
  .main-nav, .header-social { display: none }
  .menu-btn { display: grid }
  .brand img { height: 38px }
}

/* ---------- Menu mobile ---------- */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 498; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); z-index: 499;
  background: #131211; color: #fff; display: flex; flex-direction: column; padding: 22px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.open { transform: none }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px }
.mobile-menu-close {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: #fff; display: grid; place-items: center; border: none; cursor: pointer; transition: background .2s;
}
.mobile-menu-close:hover { background: rgba(255, 255, 255, .16) }
.mobile-menu-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 4px; flex: 1 }
.mobile-menu-nav a {
  font-family: var(--font); font-size: 1.5rem; font-weight: 500; padding: 12px 0;
  color: rgba(255, 255, 255, .78); transition: color .25s var(--ease);
}
.mobile-menu-nav a:hover, .mobile-menu-nav a.active { color: var(--gold) }
.mobile-menu-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1) }
.mobile-social { display: flex; gap: 10px }
.mobile-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.mobile-social a:hover { background: rgba(176, 137, 52, .25); color: var(--gold) }
.mobile-social svg { width: 18px; height: 18px; fill: currentColor }
.mobile-copy { font-size: 12px; color: rgba(255, 255, 255, .4) }

/* ---------- Estrutura das páginas ---------- */
.auth-main { padding: calc(72px + clamp(30px, 5vw, 64px)) 0 clamp(48px, 8vw, 96px) }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold) }
.lead { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6 }

.auth-shell { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(20px, 2.6vw, 32px); align-items: stretch }
@media (max-width:980px) { .auth-shell { grid-template-columns: 1fr } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(24px, 3.6vw, 44px); box-shadow: var(--shadow-lg);
}
.card h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05 }
.card h1 em { font-style: normal; color: var(--gold) }
.card h2 { font-size: 19px; margin-bottom: 4px }
.card .note { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px }

/* ---------- CTA no padrão "Tem um projeto em mente?" ---------- */
.connect-card {
  position: relative; border-radius: var(--radius-xl); padding: clamp(32px, 4vw, 56px);
  min-height: 300px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; color: #fff; transition: transform .5s var(--ease);
}
.connect-card:hover { transform: translateY(-8px) }
.connect-card.newsletter { background: linear-gradient(135deg, #b08934 0%, #765b22 100%) }
.connect-card.tester { background: linear-gradient(135deg, #1c3f2a 0%, #2B5E3D 60%, #4a8a60 100%) }
.connect-card::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); right: -110px; bottom: -140px; transition: transform .7s var(--ease);
}
.connect-card:hover::before { transform: scale(1.35) }
.connect-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; max-width: 14ch; position: relative; z-index: 1 }
.connect-card p { margin-top: 12px; font-size: 1.05rem; opacity: .9; position: relative; z-index: 1 }
.connect-card .arrow-circle {
  position: relative; z-index: 1; margin-top: 30px; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--card-ink); display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.connect-card:hover .arrow-circle { transform: translateX(8px) }
.arrow-circle svg { width: 22px; height: 22px }
@media (max-width:600px) {
  .connect-card { min-height: unset; padding: 16px 18px; border-radius: 18px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px }
  .connect-card h3 { font-size: 1.1rem; line-height: 1.25; max-width: none }
  .connect-card p { margin-top: 2px; font-size: .82rem; line-height: 1.25 }
  .connect-card .arrow-circle { margin-top: 0; width: 40px; height: 40px; flex-shrink: 0 }
  .connect-card .arrow-circle svg { width: 16px; height: 16px }
}

/* ---------- Formulários ---------- */
.form { margin-top: 26px; display: grid; gap: 16px }
.field { display: grid; gap: 7px }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft) }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); font-family: var(--font-body); font-size: 15px; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(176, 137, 52, .14) }
.field .hint { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5 }

/* Seletor DENTRO de .field: mesma caixa do input, e não a do sistema
   operacional. Sem esta regra, "Maturidade", "Status da jornada" e "Situação"
   eram selects nativos de ~24px encostados em campos de 52px — o defeito
   aparecia justamente nos três lugares do painel onde a informação é uma escolha
   e não um texto livre.

   appearance:none apaga a seta do sistema; o chevron volta como background-image
   (SVG inline, na cor --ink-soft), então ele acompanha o desenho dos ícones do
   app em qualquer navegador. padding-right abre espaço para ele.  */
.field select {
  width: 100%; height: 52px; padding: 0 44px 0 16px;
  border: 1px solid var(--line); border-radius: 14px; background-color: var(--bg);
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  cursor: pointer; line-height: normal;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: var(--chev);
  background-repeat: no-repeat; background-position: right 15px center; background-size: 17px 17px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select:focus { outline: none; border-color: var(--gold); background-color: var(--white); box-shadow: 0 0 0 4px rgba(176, 137, 52, .14) }
.field select:disabled { color: var(--ink-soft); cursor: default; opacity: 1 }
/* Os optgroup/option ficam com a lista do sistema, de propósito: estilizar a
   lista aberta é território onde cada navegador faz o que quer, e meia
   estilização é pior que nenhuma. */
.field select optgroup { font-family: var(--font); font-size: 13px }

/* Datas e horas: o CAMPO é nosso, o CALENDÁRIO é do navegador.
   O seletor de data do sistema é o certo aqui — ele já conhece fuso, locale,
   teclado e leitor de tela, e um calendário desenhado à mão seria uma peça a
   menos de acessibilidade em troca de estética. O que padronizamos é o que é
   nosso: a caixa (herdada de .field input) e o ícone que abre o calendário, que
   vinha no azul/cinza do sistema e era o único elemento fora da paleta em toda a
   ficha. color-scheme:light trava o tema do widget, senão ele vira escuro no
   sistema em modo noturno enquanto o painel continua claro. */
input[type="date"], input[type="time"] { color-scheme: light; cursor: pointer }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55;
  transition: opacity .2s var(--ease);
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator { opacity: 1 }

.btn {
  height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--ink); color: #fff;
  transition: transform .25s var(--ease), background .25s var(--ease), opacity .2s;
}
.btn:hover { background: var(--gold); transform: translateY(-2px) }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; background: var(--ink) }
.btn.block { width: 100% }
.btn.sm { height: 42px; font-size: 14px; padding: 0 20px }
.btn.ghost { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line) }
.btn.ghost:hover { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold) }
.btn.danger:hover { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger) }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-body);
  font-size: 13.5px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--gold) }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }

.identity {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg); font-size: 14px;
}
.av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--font); font-weight: 600; font-size: 14px; flex: 0 0 auto;
}
.av.lg { width: 52px; height: 52px; font-size: 20px }
.identity .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5 }
.msg.show { display: block }
.msg.err { background: rgba(179, 38, 30, .08); color: var(--danger); border: 1px solid rgba(179, 38, 30, .2) }
.msg.ok { background: rgba(43, 94, 61, .08); color: var(--green); border: 1px solid rgba(43, 94, 61, .2) }
.msg.info { background: rgba(176, 137, 52, .09); color: var(--gold-deep); border: 1px solid rgba(176, 137, 52, .24) }

.step { display: none }
.step.on { display: block; animation: rise .45s var(--ease) both }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.foot-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-mute); line-height: 1.6 }
.foot-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px }

.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; display: none }
.btn.loading .spin { display: block }
@keyframes sp { to { transform: rotate(360deg) } }

/* ---------- /conta ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px }
.page-head h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.05 }
.page-head h1 em { font-style: normal; color: var(--gold) }
.page-head .sub { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px }
.grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(18px, 2.4vw, 28px); align-items: start }
@media (max-width:1040px) { .grid { grid-template-columns: 1fr } }
.stack { display: grid; gap: 18px }

.sub-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; background: var(--bg) }
.sub-item:last-child { margin-bottom: 0 }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.sub-title { font-family: var(--font); font-weight: 600; font-size: 16px }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); background: rgba(176, 137, 52, .13); color: var(--gold-deep) }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13.5px; color: var(--ink-soft) }
.meta b { font-weight: 600; color: var(--ink) }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; border: 1px dashed var(--line); border-radius: var(--radius-lg) }
.empty a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px }

/* ---------- Cartão vivo congelado ---------- */
.card-live { margin-top: 16px }
/* Frente e verso giram em 3D, com a mesma curva e a mesma duração da /jornada:
   o cartão que o cliente montou lá é o mesmo objeto que o painel mostra aqui, e
   duas animações diferentes para o mesmo gesto leem como dois produtos. */
.card-stagebox { position: relative; width: 100%; overflow: hidden; border-radius: 20px; perspective: 1600px }
.card-flip {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .8, .25, 1);
}
.card-stagebox.flipped .card-flip { transform: rotateY(180deg) }
.card-face {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* A troca de visibilidade espera meia rotação: sem o atraso, a frente sai de
     cena antes de o verso virar para a frente e o cartão pisca vazio. */
  transition: visibility .3s ease;
}
.card-face[data-face="back"] { transform: rotateY(180deg) }
/* visibility acompanha a rotação: em navegador que ignora backface-visibility
   dentro de iframe, é o que impede as duas faces aparecerem sobrepostas. */
.card-stagebox.flipped .card-face[data-face="front"],
.card-stagebox:not(.flipped) .card-face[data-face="back"] { visibility: hidden }
.card-face iframe { border: 0; display: block; transform-origin: top left; background: transparent }
.card-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap }
.face-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px }
.face-switch button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font); font-size: 12.5px;
  font-weight: 600; color: var(--ink-soft); padding: 7px 16px; border-radius: var(--radius-pill);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.face-switch button.on { background: var(--ink); color: #fff }
.card-missing { padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--ink-mute); font-size: 13px; line-height: 1.55 }
