/* Login Z4 — vitrine em leque (prints da conta demo) + formulário. Verde-oliva e dourado da marca. */
:root { --brand: #4a5c2a; --brand-2: #3b4a21; --gold: #c5a55a; --ring: rgba(74,92,42,.22); --bg: #f2f3ee; --card: #fff; --tx: #1c2112; --tx2: #3a4130; --mu: #6b705f; --fa: #9a9e90;
        --bd: rgba(28,33,18,.12); --soft: rgba(28,33,18,.045); --err: #d70015; --errbg: rgba(215,0,21,.07); --ok: #248a3d; --okbg: rgba(36,138,61,.1); --warn: #b25000; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand: #8fa65a; --brand-2: #a3b96d; --ring: rgba(143,166,90,.3); --bg: #0f120b; --card: #191d13; --tx: #f2f4ec; --tx2: #d0d4c6; --mu: #9da291; --fa: #6d7263; --bd: rgba(255,255,255,.1); --soft: rgba(255,255,255,.05); --err: #ff6961; --errbg: rgba(255,105,97,.12); --ok: #30d158; --okbg: rgba(48,209,88,.12); --warn: #ffb340; color-scheme: dark; } }
:root[data-theme="dark"] { --brand: #8fa65a; --brand-2: #a3b96d; --ring: rgba(143,166,90,.3); --bg: #0f120b; --card: #191d13; --tx: #f2f4ec; --tx2: #d0d4c6; --mu: #9da291; --fa: #6d7263; --bd: rgba(255,255,255,.1); --soft: rgba(255,255,255,.05); --err: #ff6961; --errbg: rgba(255,105,97,.12); --ok: #30d158; --okbg: rgba(48,209,88,.12); --warn: #ffb340; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; background: var(--bg); color: var(--tx2); -webkit-font-smoothing: antialiased; }
.tela { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); padding: 14px; gap: 14px; }

/* ---------- lado da marca ---------- */
.marca { position: relative; overflow: hidden; color: #fff; padding: 32px 44px 26px; display: flex; flex-direction: column; border-radius: 28px;
         background: radial-gradient(820px 520px at 0% 0%, rgba(255,255,255,.12), transparent 60%),
                     radial-gradient(720px 560px at 105% 105%, rgba(197,165,90,.55), transparent 62%),
                     linear-gradient(155deg, #1d2610 0%, #34431c 46%, #56692c 100%); }
.marca > * { position: relative; z-index: 1; }
/* logo original é verde 3D; sobre o fundo verde vira branca, mantendo o relevo pela sombra */
.logo { height: 46px; width: auto; align-self: flex-start; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.chamada { margin: 26px 0 0; max-width: 580px; }
.chamada h1 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 10px; font-weight: 800; }
.chamada p { font-size: 15px; line-height: 1.55; opacity: .84; margin: 0; }

.leque { position: relative; flex: 1; min-height: 300px; margin: 22px 0 18px; container-type: size; }
.print { position: absolute; left: 50%; top: 50%; width: min(90cqw, 128cqh); aspect-ratio: 16 / 10; translate: -50% -52%; margin: 0; border-radius: 16px; overflow: hidden; background: #eef0e9;
         box-shadow: 0 40px 80px -30px rgba(8,12,3,.8), 0 0 0 1px rgba(255,255,255,.16); transform-origin: 50% 135%;
         transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease, filter .9s ease; will-change: transform; }
.print img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.print[data-pos="0"] { z-index: 4; transform: none; opacity: 1; filter: none; }
.print[data-pos="1"] { z-index: 3; transform: rotate(-5deg) translate(-5%, 2%) scale(.93); opacity: .92; filter: brightness(.82) saturate(.9); }
.print[data-pos="2"] { z-index: 2; transform: rotate(5deg) translate(6%, 3%) scale(.88); opacity: .78; filter: brightness(.7) saturate(.8); }
.print[data-pos="3"] { z-index: 1; transform: rotate(-10deg) translate(-10%, 6%) scale(.83); opacity: .5; filter: brightness(.6) saturate(.7); }
.print figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
                    background: rgba(20,26,10,.74); color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
                    opacity: 0; transform: translateY(6px); transition: opacity .5s .4s, transform .5s .4s; }
.print figcaption svg { color: #e2c77f; }
.print[data-pos="0"] figcaption { opacity: 1; transform: none; }

.legenda { position: relative; z-index: 5; display: flex; align-items: center; gap: 14px; min-height: 52px; }
.legenda .tx { flex: 1; min-width: 0; }
.legenda b { display: block; font-size: 15px; font-weight: 700; }
.legenda span { font-size: 13.5px; opacity: .8; }
.pontos { display: flex; gap: 6px; }
.pontos button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s, background .25s; }
.pontos button.on { width: 26px; background: var(--gold); }
.rodape-m { font-size: 11.5px; opacity: .6; margin-top: 10px; }

/* ---------- lado do formulário ---------- */
.lado { display: grid; place-items: center; padding: 32px 20px 56px; position: relative; }
.tema { position: absolute; top: 18px; right: 18px; }
.btn-tema { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bd); background: var(--card); color: var(--mu); display: grid; place-items: center; cursor: pointer; }
.btn-tema:hover { color: var(--tx); }
.caixa { width: 100%; max-width: 400px; }
.logo-m { display: none; height: 52px; width: auto; margin: 0 auto 28px; }
h2 { font-size: 28px; letter-spacing: -.03em; color: var(--tx); margin: 0 0 6px; font-weight: 800; }
.sub { margin: 0 0 26px; color: var(--mu); font-size: 14.5px; line-height: 1.5; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.linha-r { display: flex; justify-content: space-between; align-items: center; }
.campo { position: relative; display: flex; align-items: center; }
.campo > svg { position: absolute; left: 14px; color: var(--fa); pointer-events: none; }
input { width: 100%; height: 48px; border-radius: 13px; border: 1.5px solid var(--bd); background: var(--card); color: var(--tx); font: inherit; font-size: 15px; padding: 0 46px 0 44px; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--fa); }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.campo:focus-within > svg { color: var(--brand); }
.campo.erro input { border-color: var(--err); box-shadow: 0 0 0 4px var(--errbg); }
.olho { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; background: none; color: var(--mu); border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.olho:hover { background: var(--soft); color: var(--tx); }
.caps { font-size: 12px; color: var(--warn); font-weight: 600; display: none; align-items: center; gap: 5px; }
.lnk { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lnk:hover { text-decoration: underline; }
.lembrar { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 13.5px; color: var(--mu); cursor: pointer; }
.lembrar input { width: 17px; height: 17px; padding: 0; accent-color: var(--brand); box-shadow: none; }

.cap { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--bd); animation: ent .2s ease; }
.cap-l { display: flex; gap: 8px; align-items: center; }
.cap img { height: 52px; width: auto; border-radius: 10px; background: #f4f5ee; flex: none; max-width: calc(100% - 46px); }
.cap .renova { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--bd); background: var(--card); color: var(--mu); display: grid; place-items: center; cursor: pointer; }
.cap .renova:hover { color: var(--brand); border-color: var(--brand); }
.cap input { padding-left: 14px; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; height: 44px; }
.cap small { font-size: 12px; color: var(--mu); }

.btn { height: 50px; border: 0; border-radius: 13px; color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
       background: linear-gradient(180deg, #5a6f33, #44552a); box-shadow: 0 10px 24px -12px rgba(58,74,33,.9), inset 0 1px 0 rgba(255,255,255,.18); transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .75; cursor: default; }
.gira { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes ent { from { opacity: 0; transform: translateY(-4px); } }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; font-size: 13.5px; line-height: 1.45; font-weight: 550; animation: ent .2s ease; }
.aviso.err { background: var(--errbg); color: var(--err); }
.aviso.ok { background: var(--okbg); color: var(--ok); }
.aviso svg { flex: none; margin-top: 1px; }
.voltar { margin-bottom: 22px; }
.seg { margin-top: 26px; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--fa); }
.credito { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; color: var(--fa); }
.credito a { color: var(--mu); font-weight: 600; text-decoration: none; }
.credito a:hover { color: var(--brand); }
.oculto { display: none !important; }

/* botão de suporte no WhatsApp */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 5; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e);
          display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -6px rgba(18,140,126,.55), 0 2px 8px rgba(0,0,0,.15); transition: transform .2s; }
.wa-fab:hover { transform: translateY(-2px) scale(1.04); }
.wa-fab svg { width: 27px; height: 27px; }

@media (max-height: 760px) { .chamada p { display: none; } .leque { min-height: 240px; } }
@media (max-width: 920px) {
  .tela { padding: 0; grid-template-columns: 1fr; }
  .marca { display: none; }
  .logo-m { display: block; }
  .lado { align-items: start; padding-top: 64px; }
  .wa-fab { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
