/* Estoque Mandala · telas de acesso e instalação */
:root{--brand:#FF740B;--brand-dark:#0A0808;--brand-on-dark:#FF740B;--on-brand:#fff;--brand-hover:#eb6b0a;--ink:#1b1918;--muted:#6b6560;--line:#e6e1dc;--bg:#f4f1ed;--ok:#1f7a4d;--err:#b42318;--warn:#9a5b00;--r:12px;--font:"Avenir Next","Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0}
body.auth{min-height:100vh;font:15px/1.55 var(--font);color:var(--ink);background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px}
body.auth::before{content:"";position:fixed;inset:0 0 auto 0;height:6px;background:var(--brand)}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:18px;padding:32px 30px;box-shadow:0 1px 2px rgba(20,16,12,.06),0 18px 50px -20px rgba(20,16,12,.25)}
.auth-card.wide{max-width:680px}
.auth-head{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.auth-head h1{font-size:19px;margin:0;line-height:1.2}
.auth-head p{margin:2px 0 0;color:var(--muted);font-size:13px}
.auth-logo{max-height:56px;max-width:240px;display:block}
.brand-mark{width:46px;height:46px;border-radius:12px;background:var(--brand-dark);display:grid;place-items:center;flex:none}
.brand-mark svg{fill:var(--brand)}
h2{font-size:18px;margin:0 0 10px}
p{margin:0 0 12px}
a{color:#0b57d0}
code{background:#f3efea;padding:1px 6px;border-radius:6px;font-size:.92em;word-break:break-all}
.form{display:grid;gap:14px}
.form label{display:grid;gap:6px;font-weight:600;font-size:13.5px}
.form label small{font-weight:400;color:var(--muted);font-size:12.5px}
input,select,textarea{font:inherit;font-weight:400;width:100%;padding:11px 12px;border:1px solid #cfc8c1;border-radius:10px;background:#fff;color:var(--ink);min-height:44px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
.pw{position:relative;display:block}
.pw input{padding-right:46px}
.pw-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:0;background:transparent;width:38px;height:38px;border-radius:8px;cursor:pointer;opacity:.6;display:grid;place-items:center;color:var(--ink)}
.pw-toggle[aria-pressed=true]{opacity:1}
.ic{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pw-toggle:hover{opacity:1;background:#f3efea}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.check,.radio{display:flex!important;grid-template-columns:none!important;gap:10px!important;align-items:flex-start;font-weight:400!important;cursor:pointer}
.check input,.radio input{width:18px;height:18px;min-height:0;margin-top:2px;accent-color:var(--brand);flex:none}
.check span,.radio span{display:grid;gap:2px}
.check.inline{align-items:center}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid transparent;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;color:var(--ink);background:#fff}
.btn.primary{background:var(--brand);color:var(--on-brand)}
.btn.primary:hover{background:var(--brand-hover)}
.btn.primary:disabled{opacity:.6;cursor:wait}
.btn.ghost{border-color:#d6cfc8}
.btn.block{width:100%}
.actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
.alert{padding:11px 14px;border-radius:10px;margin:0 0 16px;font-size:14px;border:1px solid}
.alert.error{background:#fef3f2;border-color:#fecdca;color:var(--err)}
.alert.ok{background:#ecfdf3;border-color:#abefc6;color:var(--ok)}
.alert.warn{background:#fffaeb;border-color:#fedf89;color:var(--warn)}
.auth-foot{color:var(--muted);font-size:12.5px;margin-top:18px}
.err-code{font-size:56px;margin:0 0 6px;color:var(--brand)}
/* Instalador */
.steps{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 24px;counter-reset:s;flex-wrap:wrap}
.steps li{flex:1;min-width:120px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:8px 10px;border-radius:10px;background:#f7f4f1}
.steps li span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e4ded8;font-weight:700;font-size:12px;color:#5a534d;flex:none}
.steps li.current{background:color-mix(in srgb,var(--brand) 12%,#fff);color:var(--ink);font-weight:600}
.steps li.current span{background:var(--brand);color:#fff}
.steps li.done span{background:var(--ok);color:#fff}
.checks{width:100%;border-collapse:collapse;margin:8px 0 12px;font-size:14px}
.checks td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.checks td small{display:block;color:var(--muted);font-size:12.5px}
.checks .st{width:34px;font-weight:700;text-align:center;font-size:16px}
.checks tr.ok .st{color:var(--ok)}
.checks tr.bad .st{color:var(--err)}
.checks tr.warn .st{color:var(--warn)}
.checks .tag{text-align:right;color:var(--muted);font-size:12px;white-space:nowrap}
fieldset.choice{border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:12px}
fieldset.choice legend{font-weight:600;padding:0 6px}
.hint{color:var(--muted);font-size:13px;margin:0}
textarea.code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}
ul.next{padding-left:18px;display:grid;gap:8px;margin:0 0 8px}
@media (max-width:560px){input,select,textarea{font-size:16px}.actions{flex-direction:column-reverse}.actions .btn{width:100%}.auth-card{padding:24px 18px;border-radius:14px}.grid2{grid-template-columns:1fr}.steps li{min-width:calc(50% - 6px)}.checks .tag{display:none}}

/* ---------- Acesso (login, senha, saída): marca à esquerda, formulário à direita ---------- */
body.auth-split{display:grid;grid-template-columns:minmax(360px,44%) 1fr;align-items:stretch;justify-content:stretch;padding:0;background:#fff}
body.auth-split::before{display:none}
.auth-aside{background:var(--brand-dark);color:#fff;position:relative;overflow:hidden}
.auth-aside::after{content:"";position:absolute;right:-18%;bottom:-22%;width:70%;aspect-ratio:1;border-radius:50%;border:56px solid rgba(255,255,255,.05);pointer-events:none}
.auth-aside-in{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;padding:56px 56px 40px}
.auth-logo-light{display:block;width:min(300px,78%);height:auto}
.auth-pitch{margin-top:auto;max-width:420px}
.auth-pitch h2{font-size:30px;line-height:1.15;letter-spacing:-.02em;margin:0 0 12px;color:#fff}
.auth-pitch p{color:rgba(255,255,255,.72);font-size:16px;margin:0}
.auth-aside-foot{margin:40px 0 0;color:rgba(255,255,255,.45);font-size:12.5px}
.auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px 24px;background:var(--bg);min-height:100vh}
.auth-panel{width:100%;max-width:400px;background:#fff;border-radius:18px;padding:34px 32px;box-shadow:0 1px 2px rgba(20,16,12,.06),0 18px 50px -24px rgba(20,16,12,.22)}
.auth-panel h1{font-size:24px;line-height:1.2;letter-spacing:-.01em;margin:0 0 6px}
.auth-sub{color:var(--muted);margin:0 0 20px}
.auth-panel .form{margin-top:4px}
.auth-panel .alert{margin-top:12px}
.auth-main .auth-foot{margin-top:22px}
.auth-mobile-brand{display:none}
.auth-wordmark{display:inline-flex;align-items:center;gap:12px;font-weight:700;font-size:22px;letter-spacing:-.01em}
.auth-wordmark i{font-style:normal;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--brand-on-dark);color:var(--brand-dark);font-size:20px}
.auth-logo-dark.auth-wordmark{color:var(--ink)}
.auth-logo-dark.auth-wordmark i{background:var(--brand);color:var(--on-brand)}
.muted{color:var(--muted)}
@media (max-width:900px){
  body.auth-split{display:block;background:var(--bg)}
  .auth-aside{display:none}
  .auth-main{min-height:100vh;justify-content:flex-start;padding:40px 16px 24px}
  .auth-mobile-brand{display:flex;justify-content:center;margin:8px 0 28px}
  .auth-mobile-brand img{width:min(210px,62vw);height:auto;display:block}
}
@media (max-width:560px){.auth-panel{padding:26px 20px;border-radius:14px}.auth-panel h1{font-size:21px}}
