/* Capitalis Enterprise — login.css v3.2 (glass, preto e branco) */
:root {
  --bg: #000; --glass: rgba(255,255,255,.05); --glass-hi: rgba(255,255,255,.08); --field: rgba(255,255,255,.065);
  --stroke: rgba(255,255,255,.13); --edge: rgba(255,255,255,.3);
  --text: #fff; --muted: #9b9ba3; --primary: #fff; --glow: rgba(255,255,255,.16); --orb: #fff; --streak: rgba(255,255,255,.075);
  --btn-top: #fff; --btn-bot: #d2d2d6; --btn-hi: rgba(255,255,255,.8); --sheen: rgba(0,0,0,.11); --hov: .93;
  --ok: #34d9ae; --bad: #ff6b81; --shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  --font: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', monospace;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.light {
  --bg: #fff; --glass: rgba(255,255,255,.72); --glass-hi: rgba(0,0,0,.04); --field: rgba(0,0,0,.045);
  --stroke: rgba(0,0,0,.13); --edge: rgba(255,255,255,1);
  --text: #0a0a0a; --muted: #5d5d66; --primary: #000; --glow: rgba(0,0,0,.14); --orb: #000; --streak: rgba(0,0,0,.055);
  --btn-top: #2b2b2e; --btn-bot: #000; --btn-hi: rgba(255,255,255,.22); --sheen: rgba(255,255,255,.22); --hov: 1.4;
  --ok: #12805f; --bad: #d6293f; --shadow: 0 30px 70px -28px rgba(0,0,0,.28);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; transition: background-color .35s, color .35s; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--text); color: var(--bg); }
em { font-style: normal; color: var(--primary); font-weight: 400; }

/* ---------- Fundo: aurora + grade + grão ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg::before { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--stroke) 1px, transparent 1px), linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); }
.bg::after { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .06; mix-blend-mode: overlay; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); background: var(--orb); opacity: .11; will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.o1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; }
.o2 { width: 40vmax; height: 40vmax; right: -14vmax; top: 18vh; opacity: .07; animation-duration: 32s; animation-delay: -8s; }
.o3 { width: 34vmax; height: 34vmax; left: 28vw; bottom: -20vmax; opacity: .06; animation-duration: 38s; animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

/* ---------- Palco e cartão de vidro ---------- */
.stage { position: relative; z-index: 1; flex: 1; display: grid; place-items: center;
  padding: clamp(16px, 5vh, 56px) clamp(14px, 4vw, 44px); padding-top: max(clamp(16px, 5vh, 56px), env(safe-area-inset-top)); }
.shell { --mx: 30%; --my: 0%; position: relative; width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  border-radius: clamp(20px, 3vw, 30px); background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); overflow: hidden; isolation: isolate; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.shell::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--noise); opacity: .045; mix-blend-mode: overlay; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.brand-side { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.4vh, 24px);
  background: linear-gradient(160deg, var(--glass-hi), transparent 65%); border-right: 1px solid var(--stroke); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.3px; font-size: 1.05rem; }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--text); position: relative; }
.logo-mark::after { content: ''; position: absolute; inset: 8px; border-radius: 3px; background: var(--bg); }
.brand-side h1 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.lead { color: var(--muted); line-height: 1.6; max-width: 38ch; font-size: .98rem; }
.benefits { list-style: none; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.benefits i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--text);
  background: var(--field); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); }
.benefits strong { display: block; font-size: .92rem; } .benefits span { color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* ---------- Formulário ---------- */
.form-side { position: relative; padding: clamp(40px, 6vw, 60px) clamp(22px, 4.5vw, 48px); display: flex; align-items: center; justify-content: center; }
.form-wrap { width: 100%; max-width: 380px; }
.logo-mobile { display: none; margin-bottom: 22px; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.7rem); letter-spacing: -.035em; margin-bottom: 6px; }
.sub { color: var(--muted); font-size: .95rem; margin-bottom: clamp(20px, 3vh, 30px); }
.theme-btn { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--text);
  background: var(--field); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); transition: .25s; }
.theme-btn:hover { color: var(--primary); transform: rotate(14deg); }

.field { position: relative; margin-bottom: 14px; }
.input { width: 100%; height: 58px; padding: 24px 46px 7px 16px; border: 0; border-radius: 14px; outline: none; background: var(--field);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18), inset 0 0 0 1px var(--stroke); transition: box-shadow .2s, background .2s; }
.input:hover { background: var(--glass-hi); }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 0 5px var(--glow); }
.field label { position: absolute; left: 16px; top: 29px; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: .18s; font-size: .95rem; }
.input:focus ~ label, .input:not(:placeholder-shown) ~ label { top: 11px; transform: none; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--primary); }
.eye { position: absolute; right: 6px; top: 29px; transform: translateY(-50%); width: 40px; height: 40px; background: none; border: 0; color: var(--muted); border-radius: 10px; }
.eye:hover { color: var(--primary); background: var(--glass-hi); }
.caps { color: var(--bad); font-size: .82rem; margin: -4px 0 8px; }
.forgot { font-size: .85rem; }

.btn { position: relative; width: 100%; height: 52px; border: 0; border-radius: 14px; font-weight: 700; color: var(--bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .2s, box-shadow .2s, filter .2s;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  box-shadow: inset 0 1px 0 var(--btn-hi), inset 0 -1px 0 rgba(0,0,0,.18), 0 14px 30px -10px var(--glow); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, var(--sheen) 50%, transparent 80%); transform: translateX(-130%); animation: btnstreak 5.5s ease-in-out 1.8s infinite; }
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(var(--hov)); } 
.btn:active:not(:disabled) { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-google { color: var(--text); background: var(--field); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); }
.btn-google::after { display: none; } .btn-google:hover:not(:disabled) { filter: none; background: var(--glass-hi); }
.link-btn { background: none; border: 0; color: var(--muted); font-size: .9rem; padding: 6px; border-radius: 8px; }
.link-btn:hover { color: var(--primary); } .link-btn strong { color: var(--text); font-weight: 600; } .link-btn:hover strong { color: var(--primary); }
.toggle { display: block; margin: 18px auto 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .78rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--stroke), transparent); }
.resume { text-align: center; } .resume .btn { margin-bottom: 8px; }

/* ---------- Rodapé, toast e janelas ---------- */
.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted);
  padding: 12px clamp(16px, 3vw, 32px) calc(12px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--stroke); }
.foot-brand { font-weight: 800; color: var(--text); } .foot strong { color: var(--text); } .foot code { font-family: var(--mono); font-size: .74rem; margin-left: 8px; opacity: .7; }

.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--stroke); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

dialog { margin: auto; width: min(520px, calc(100vw - 28px)); max-height: 85vh; padding: 0; border: 0; border-radius: 22px; color: var(--text); background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); box-shadow: var(--shadow), inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); }
dialog::backdrop { background: rgba(4, 7, 18, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; box-shadow: inset 0 -1px 0 var(--stroke); }
dialog h3 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; } #blockDlg h3 i { color: var(--bad); }
.x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; border-radius: 8px; padding: 4px 6px; }
.dlg-body { padding: 22px; line-height: 1.6; font-size: .92rem; overflow-y: auto; max-height: 60vh; }
.dlg-body h4 { margin: 16px 0 4px; } .dlg-body p { color: var(--muted); margin-bottom: 8px; } .dlg-body .btn { margin-top: 14px; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) { .shell { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .showcase { display: none; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; width: min(460px, 100%); }
  .brand-side { display: none; } .logo-mobile { display: flex; } .foot-mid { display: none; }
  .stage { place-items: start center; } .form-side { padding-top: 52px; }
}
@media (max-width: 380px) { .form-side { padding-inline: 18px; } .foot { flex-direction: column; gap: 4px; text-align: center; } }
@media (max-height: 640px) and (min-width: 761px) { .brand-side { gap: 12px; } .benefits, .showcase { display: none; } .form-side { padding-block: 32px; } .sub { margin-bottom: 18px; } }
@media (max-height: 520px) { .stage { padding-block: 12px; } .toast { bottom: 16px; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(14,14,14,.93); } body.light { --glass: rgba(255,255,255,.96); }
}
@media (prefers-reduced-transparency: reduce) { :root { --glass: rgba(12,12,12,.97); } body.light { --glass: rgba(255,255,255,.98); } }
@media (prefers-reduced-motion: reduce) { .orb, .shell, .spin, .streak::after, .btn::after { animation: none !important; } * { transition: none !important; } }

/* ---------- v3.3: listras animadas, seletor de tema, acabamento ---------- */
.streak { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.theme { position: absolute; top: 16px; right: 16px; width: 68px; height: 36px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--field);
  display: flex; align-items: center; justify-content: space-between; color: var(--muted); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); }
.theme i { position: relative; z-index: 1; font-size: .95rem; transition: color .3s; }
.theme-thumb { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--text);
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.3,1.35,.5,1); }
body:not(.light) .theme-thumb { transform: translateX(32px); }
body:not(.light) .theme .bi-moon-stars-fill, body.light .theme .bi-sun-fill { color: var(--bg); }

.err { display: block; margin: 6px 4px 0; color: var(--bad); font-size: .76rem; font-weight: 500; } .err:empty { display: none; }
.field.invalid .input { box-shadow: inset 0 0 0 1.5px var(--bad); } .field.shake { animation: shake .36s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 16px; }
.check { position: relative; display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.box { width: 18px; height: 18px; border-radius: 6px; background: var(--field); box-shadow: inset 0 0 0 1px var(--stroke); display: grid; place-items: center; transition: .15s; }
.check input:checked + .box { background: var(--text); }
.check input:checked + .box::after { content: ''; width: 5px; height: 9px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .box { outline: 2px solid var(--primary); outline-offset: 2px; }

.meter { height: 4px; margin: -4px 0 14px; border-radius: 4px; background: var(--stroke); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--bad); transition: width .25s, background .25s; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: .76rem; } .secure i { color: var(--ok); }
.btn[aria-busy="true"]::before { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 8px; justify-content: center; align-items: center; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top));
  font-size: .82rem; font-weight: 600; background: var(--text); color: var(--bg); }

/* ---------- v3.4: listra a cada 4s, aviso novo, ícone de prédios ---------- */
:root { --bld: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V14H8V9H14V4H20V21'/%3E%3Cpath d='M1.5 21H22.5M8 14V21M14 9V21M17 4V1.8'/%3E%3Cpath d='M5.5 17.2v1.6M11 12.2v1.6M11 16v1.6M17 7.2v1.6M17 11v1.6M17 14.8v1.6'/%3E%3C/svg%3E"); --toast-bg: rgba(20,20,22,.84); }
body.light { --toast-bg: rgba(255,255,255,.9); }

.streak::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; opacity: 0; will-change: transform, opacity;
  transform: translate3d(-100%, 0, 0); background: linear-gradient(100deg, transparent 15%, var(--streak) 50%, transparent 85%); animation: streak 4s linear infinite; }
@keyframes streak { 0% { transform: translate3d(-100%, 0, 0); opacity: 0; } 6%, 54% { opacity: 1; } 60%, 100% { transform: translate3d(190%, 0, 0); opacity: 0; } }
.btn::after { inset: 0 auto 0 0; width: 50%; opacity: 0; transform: translate3d(-100%, 0, 0); animation: btnstreak 4s linear infinite; }
@keyframes btnstreak { 0% { transform: translate3d(-100%, 0, 0); opacity: 0; } 6%, 54% { opacity: 1; } 60%, 100% { transform: translate3d(200%, 0, 0); opacity: 0; } }
.btn-google::after { display: none; }

.logo-mark { width: 30px; height: 30px; border-radius: 0; background: var(--text); -webkit-mask: var(--bld) center / contain no-repeat; mask: var(--bld) center / contain no-repeat; box-shadow: none; }
.logo-mark::after { display: none; }

.toast { position: fixed; z-index: 70; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: min(380px, calc(100vw - 28px)); display: flex; align-items: center; gap: 12px;
  padding: 14px 12px 17px 14px; border-radius: 18px; overflow: hidden; background: var(--toast-bg); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); animation: toastIn .4s cubic-bezier(.2,.9,.3,1.15) both; }
.toast.out { animation: toastOut .22s ease-in both; }
.toast.ok { --tc: var(--ok); } .toast.err { --tc: var(--bad); } .toast.busy { --tc: var(--text); }
.toast-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font-size: 1.15rem; color: var(--tc);
  background: var(--field); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); }
.toast-txt { flex: 1; min-width: 0; display: grid; gap: 1px; } .toast-txt strong { font-size: .86rem; letter-spacing: -.01em; } .toast-txt span { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.toast-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: .8rem; } .toast-x:hover { background: var(--glass-hi); color: var(--text); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tc); transform-origin: left; animation: toastBar linear forwards; opacity: .85; }
@keyframes toastIn { from { opacity: 0; transform: translate3d(24px, -6px, 0) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translate3d(24px, -6px, 0) scale(.97); } }
@keyframes toastBar { to { transform: scaleX(0); } }
@media (max-width: 760px) { .toast { right: 14px; left: 14px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-bar { animation: none !important; } }

/* ---------- v3.5: tipografia, marca e link de cadastro ---------- */
:root { --font: 'Manrope', system-ui, sans-serif; --display: 'Sora', 'Manrope', system-ui, sans-serif; }
body { font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); }
.brand-side h1 { font-size: clamp(1.6rem, 3vw, 2.05rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.14; max-width: 16ch; }
h2 { font-weight: 700; letter-spacing: -.025em; }
.lead { font-weight: 500; } .sub { font-weight: 500; }
.logo { gap: 12px; letter-spacing: normal; }
.wordmark { display: grid; line-height: 1; }
.wordmark b { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; }
.wordmark small { margin-top: 6px; padding-left: 2px; font-family: var(--display); font-weight: 500; font-size: .56rem; letter-spacing: .46em; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: baseline; gap: 8px; }
.foot-brand b { font-family: var(--display); font-weight: 800; letter-spacing: .1em; }
.foot-brand small { font-family: var(--display); font-weight: 500; font-size: .58rem; letter-spacing: .3em; color: var(--muted); }

.toggle-row { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--muted); }
.link-act { position: relative; padding: 4px 2px; border: 0; border-radius: 6px; background: none; font-weight: 700; color: var(--text); opacity: .72; transition: opacity .2s; }
.link-act::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.link-act:hover, .link-act:focus-visible { opacity: 1; }
.link-act:hover::after, .link-act:focus-visible::after { transform: scaleX(1); }

/* ---------- v3.7: painel de exemplo e benefícios compactos ---------- */
.benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.benefits li { flex-direction: column; gap: 10px; }
.benefits strong { font-size: .84rem; margin-bottom: 2px; }
.benefits span { font-size: .76rem; }

.showcase { position: relative; max-width: 390px; }
.sc-card { display: grid; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--field); opacity: 0;
  box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke), 0 24px 48px -26px rgba(0,0,0,.65);
  animation: scIn .8s cubic-bezier(.2,.8,.2,1) 3s forwards; }
.sc-label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.sc-value { display: block; margin-top: 2px; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sc-delta { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--ok);
  background: var(--glass-hi); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.sc-chart { display: block; width: 100%; height: auto; overflow: visible; }
.sc-grid { fill: none; stroke: var(--stroke); stroke-width: 1; stroke-dasharray: 3 5; }
.sc-card .s1 { stop-color: var(--primary); stop-opacity: .32; } .sc-card .s2 { stop-color: var(--primary); stop-opacity: 0; }
.sc-area { fill: url(#scg); opacity: 0; animation: scFade 2.6s ease 3.5s forwards; }
.sc-line { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: scDraw 3.6s cubic-bezier(.35,.05,.25,1) 3.1s forwards; }
.sc-dot { fill: var(--primary); opacity: 0; animation: scFade .4s ease 6.6s forwards; }
.sc-ring { fill: none; stroke: var(--primary); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: scPulse 2.4s ease-out 6.7s infinite; }
.sc-periods { display: flex; gap: 6px; }
.sc-periods span { padding: 4px 10px; border-radius: 99px; font-size: .7rem; font-weight: 700; color: var(--muted); }
.sc-periods .on { background: var(--text); color: var(--bg); }

.sc-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-box { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--stroke); }
.sc-box b { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; } .sc-box small { display: block; margin-top: 1px; font-size: .68rem; color: var(--muted); }
.sc-box-col { flex-direction: column; align-items: flex-start; gap: 4px; }
.sc-donut { flex: none; width: 44px; height: 44px; }
.sc-donut circle { fill: none; stroke-width: 5; } .sc-donut .trk { stroke: var(--stroke); }
.sc-donut .val { stroke: var(--text); stroke-linecap: round; stroke-dasharray: .01 100; animation: scDonut 1.2s cubic-bezier(.4,.1,.2,1) 3.6s forwards; }
.sc-seg { display: flex; gap: 3px; width: 100%; height: 6px; margin: 4px 0 2px; transform-origin: left; animation: scGrow .9s cubic-bezier(.4,.1,.2,1) 3.7s both; }
.sc-seg i { display: block; height: 100%; border-radius: 6px; background: var(--text); }
.sc-seg .a { flex: 50; } .sc-seg .b { flex: 30; opacity: .55; } .sc-seg .c { flex: 20; opacity: .28; }

.sc-chip { position: absolute; z-index: 2; top: -15px; right: -6px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--text); opacity: 0;
  background: var(--toast-bg); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--stroke); animation: scFade .5s ease 4.2s forwards, scBob 5s ease-in-out 4.2s infinite alternate; }
.sc-chip i { color: var(--ok); }
.sc-note { display: block; margin: 8px 4px 0; font-size: .68rem; color: var(--muted); opacity: .75; }

@keyframes scIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scFade { to { opacity: 1; } }
@keyframes scDraw { to { stroke-dashoffset: 0; } }
@keyframes scPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes scDonut { to { stroke-dasharray: 40 100; } }
@keyframes scGrow { from { transform: scaleX(0); } }
@keyframes scBob { to { transform: translateY(-5px); } }
@media (max-height: 820px) and (min-width: 961px) { .sc-mini { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-area, .sc-dot, .sc-chip { animation: none !important; opacity: 1 !important; }
  .sc-line { animation: none !important; stroke-dashoffset: 0; } .sc-ring, .sc-seg { animation: none !important; }
  .sc-donut .val { animation: none !important; stroke-dasharray: 40 100; } .sc-ring { display: none; }
}

/* ---------- v3.8: responsividade (telas grandes, notebooks, tablets, celulares e paisagem) ---------- */
.stage { padding-block: clamp(12px, 3vh, 44px); padding-top: max(clamp(12px, 3vh, 44px), env(safe-area-inset-top)); }
.row { flex-wrap: wrap; row-gap: 6px; } .check { white-space: nowrap; } .forgot { margin-left: auto; }
.foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* Telas grandes: o cartão cresce junto, sem estourar a altura */
@media (min-width: 1500px) and (min-height: 1060px) { .shell { zoom: 1.1; } }
@media (min-width: 1800px) and (min-height: 1150px) { .shell { zoom: 1.2; } }
@media (min-width: 2100px) and (min-height: 1240px) { .shell { zoom: 1.3; } }
@media (min-width: 2400px) and (min-height: 1400px) { .shell { zoom: 1.5; } }
@media (min-width: 3200px) and (min-height: 1900px) { .shell { zoom: 2; } }

/* Notebooks e janelas baixas: tira o que é opcional para caber sem rolagem */
@media (min-width: 961px) and (max-height: 900px) { .sc-mini { display: none; } }
@media (min-width: 961px) and (max-height: 800px) { .benefits { display: none; } .brand-side { gap: 14px; } }
@media (min-width: 761px) and (max-height: 700px) { .form-side { padding-block: 28px; } }

/* Tablets e janelas estreitas */
@media (max-width: 960px) { .benefits { display: none; } }

/* Telas curtas ou muito estreitas: campos mais compactos */
@media (max-height: 700px), (max-width: 380px) {
  .input { height: 52px; padding-top: 21px; } .field label { top: 26px; } .eye { top: 26px; width: 36px; height: 36px; }
  .input:focus ~ label, .input:not(:placeholder-shown) ~ label { top: 9px; }
  .btn { height: 48px; } .field { margin-bottom: 11px; } .sub { margin-bottom: 16px; }
  .divider { margin: 12px 0; } .secure { margin-top: 12px; } .logo-mobile { margin-bottom: 14px; }
}
@media (max-width: 760px) and (max-height: 700px) { .form-side { padding-top: 48px; padding-bottom: 20px; } }
@media (max-width: 340px) { .wordmark b { font-size: 1.1rem; } .form-side { padding-inline: 14px; } }

/* Celular deitado: só o formulário, compacto */
@media (max-height: 520px) {
  .shell { grid-template-columns: 1fr; width: min(480px, 100%); }
  .brand-side { display: none; } .logo-mobile { display: flex; } .foot-mid { display: none; }
  .stage { place-items: start center; } .form-side { padding: 52px 24px 20px; }
  .sub { display: none; } h2 { margin-bottom: 14px; } .logo-mobile { margin-bottom: 10px; }
}