/* SaaS do cliente: reaproveita o design system e aplica a marca via --brand / --brand-2 */
body.tenant .tlogo{width:36px;height:36px;border-radius:10px;object-fit:contain;background:#fff}
body.tenant .tlogo.big{width:64px;height:64px}
body.tenant .avatar.big{width:64px;height:64px;font-size:1.4rem;margin:0 auto}
.auth-solo{min-height:100vh;display:grid;place-items:center;padding:20px;position:relative;z-index:1}
.auth-solo .auth-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.center{text-align:center}
.tabs a{padding:8px 14px;border-radius:var(--radius-sm);color:var(--muted);text-decoration:none}
.tabs a[aria-current=page]{background:var(--surface-2);color:var(--text);font-weight:600}
.tabs{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.toolbar .input{max-width:260px}
textarea.input{resize:vertical}
select.input{appearance:auto}

/* ---------- login do sistema do cliente: tela cheia com os efeitos da landing ----------
   Cores vêm da marca do cliente (--brand / --brand-2); padrão Criative: Oxford + Âmbar. */
.tl { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; position: relative; z-index: 1; }
.tl-art { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--brand-2) 22%, transparent), transparent 55%),
              linear-gradient(160deg, color-mix(in oklab, var(--brand) 82%, #050a18), color-mix(in oklab, var(--brand) 55%, #03060f)); }
.tl-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tl-dots { opacity: .55; -webkit-mask: radial-gradient(90% 70% at 30% 70%, #000, transparent 75%); mask: radial-gradient(90% 70% at 30% 70%, #000, transparent 75%); }
.tl-brand { display: flex; align-items: center; gap: 14px; }
.tl-brand b { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.tl-brand > div > span, .tl-brand > span:not(.lockup) { font: 500 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tl-brand .avatar.big { margin: 0; }
.tl-brand .lockup, .tl-brand .lockup span { font: inherit; letter-spacing: normal; text-transform: none; color: #fff; }
.tl-copy { max-width: 560px; }
.tl-copy .eyebrow { color: var(--brand-2); }
.tl-copy h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin: 0; text-wrap: balance; }
.tl-copy h2 em { font-style: normal; color: var(--brand-2); }
.tl-copy > p { color: rgba(255,255,255,.78); margin: 16px 0 0; font-size: 1.05rem; max-width: 46ch; }
.tl-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.tl-points li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.tl-points .ico { padding: 9px; box-sizing: content-box; border-radius: 12px; color: var(--brand-2); background: color-mix(in oklab, var(--brand-2) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-2) 28%, transparent); }
.tl-points b { display: block; color: #fff; font-size: .98rem; }
.tl-points span { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.45; }
.tl-foot { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.tl-form { display: grid; place-items: center; padding: clamp(20px, 4vw, 40px); }
.tl-card { position: relative; width: min(420px, 100%); padding: 34px 30px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); overflow: hidden; isolation: isolate; }
.tl-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--brand-2) 16%, transparent), transparent 45%); }
.tl-card:hover::before, .tl-card:focus-within::before { opacity: 1; }
.tl-card h1 { font-size: 1.7rem; letter-spacing: -.025em; margin: 0 0 6px; }
.tl-card form { margin-top: 22px; }
.tl-card .alert { margin-bottom: 14px; }
.tl-submit { width: 100%; margin-top: 8px; justify-content: center; }
.tl-help { margin: 18px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.tl-mini { display: none; align-items: center; gap: 10px; margin-bottom: 22px; }
.tl-mini b { font-size: 1.05rem; }

/* entrada em cascata (mesma curva dos cards da landing) */
.tl-in { opacity: 0; transform: translateY(26px); animation: tl-rise .9s cubic-bezier(.22,1,.36,1) forwards; }
.tl-art .tl-in:nth-child(1) { animation-delay: .05s; }
.tl-copy .tl-in:nth-child(1) { animation-delay: .15s; } .tl-copy .tl-in:nth-child(2) { animation-delay: .25s; }
.tl-copy .tl-in:nth-child(3) { animation-delay: .35s; }
.tl-points .tl-in:nth-child(1) { animation-delay: .5s; } .tl-points .tl-in:nth-child(2) { animation-delay: .62s; }
.tl-points .tl-in:nth-child(3) { animation-delay: .74s; }
.tl-foot.tl-in { animation-delay: .9s; }
.tl-card { animation: tl-rise .9s .2s cubic-bezier(.22,1,.36,1) both; }
@keyframes tl-rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .tl { grid-template-columns: 1fr; }
  .tl-art { display: none; }
  .tl-mini { display: flex; }
  .tl-form { min-height: 100vh; min-height: 100svh; background: radial-gradient(90% 60% at 50% 0%, color-mix(in oklab, var(--brand-2) 12%, transparent), transparent 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-in, .tl-card { animation: none; opacity: 1; transform: none; }
}
body.tenant .tl-brand .avatar.big { margin: 0; flex: none; background: var(--brand-2); color: var(--brand); }
/* circuito mais discreto atrás do texto, mais vivo à direita */
.tl-circuit { -webkit-mask: linear-gradient(90deg, rgba(0,0,0,.35), #000 70%); mask: linear-gradient(90deg, rgba(0,0,0,.35), #000 70%); }

/* nome + produto no topo da barra lateral do cliente */
body.tenant .sidebar .brand > div { display: grid; gap: 2px; min-width: 0; }
body.tenant .sidebar .brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tenant .sidebar .brand span { font: 500 .66rem var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---- Esqueci minha senha / redefinir senha ---- */
.alert.ok { background: color-mix(in oklab, var(--ok) 12%, transparent); border-color: color-mix(in oklab, var(--ok) 40%, transparent); color: var(--ok); }
.tl-row { display: flex; justify-content: flex-end; margin: -2px 0 14px; }
.tl-row.center { justify-content: center; margin: 16px 0 0; }
.tl-link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--brand-2, #FCA311) 70%, transparent); padding-bottom: 1px; }
.tl-link:hover { border-bottom-color: var(--brand-2, #FCA311); }
.tl-done { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 16px; margin: 6px 0 18px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--brand-2, #FCA311) 12%, var(--surface)); border: 1px solid color-mix(in oklab, var(--brand-2, #FCA311) 45%, var(--border)); }
.tl-done.warn { background: color-mix(in oklab, var(--bad) 8%, var(--surface)); border-color: color-mix(in oklab, var(--bad) 35%, var(--border)); }
.tl-done-ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand, #14213D); color: var(--brand-2, #FCA311); }
.tl-done p { margin: 0 0 6px; font-size: .92rem; line-height: 1.55; }
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.pw-rules li::before { content: "○"; margin-right: 5px; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { content: "✓"; }
.pw-match { display: block; margin-top: 6px; font-size: .8rem; color: var(--bad); }
