/* Botalk CRM — acesso */
:root{
  --wine-50:#FBF1F2; --wine-100:#F4DFE1; --wine-200:#E7BEC3; --wine-300:#D0919A;
  --wine-400:#A93C4A; --wine-500:#8A1C2A; --wine-600:#5B0F18; --wine-700:#4A0C14;
  --cream-50:#FFFDFA; --cream-100:#FAF7F2; --cream-200:#F8F1E7; --cream-300:#EFE7DB;
  --cream-400:#E3D9CC; --cream-500:#C9BCAC;
  --brass-300:#E0C79A; --brass-500:#B08D57;
  --green-500:#1F8F67;
  --red-100:#FBE9E6; --red-700:#8E2C1D;

  --brand:var(--wine-600); --brand-hover:var(--wine-500); --brand-ink:var(--wine-700);
  --surface-page:var(--cream-100); --surface-card:#FFFFFF; --surface-inset:var(--cream-50);
  --surface-shell:var(--wine-700);
  --text-strong:#1C1417; --text-body:#4A3D41; --text-muted:#7A6B70; --text-faint:#9C8F94;
  --text-on-shell:#F6E9EA; --text-on-shell-muted:#C7A7AC;
  --line:#EBE3DA; --line-strong:#DED3C7;
  --focus-ring:var(--wine-400);
  --radius-xs:6px; --radius-sm:10px; --radius-md:14px; --radius-lg:18px; --radius-pill:999px;
  --control-md:44px; --control-lg:52px;
  --shadow-xs:0 1px 2px rgba(37,6,10,.05);
  --shadow-md:0 10px 28px rgba(37,6,10,.08);
  --shadow-brand:0 6px 18px rgba(91,15,24,.24);
  --ring-focus:0 0 0 3px rgba(169,60,74,.28);

  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--text-strong);background:var(--surface-page);font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0;font-size:15px;line-height:1.6}
button,input{font:inherit}
[hidden]{display:none!important}
a{color:var(--brand-ink)}
a:hover{color:var(--wine-500)}
::selection{background:var(--wine-100);color:var(--wine-700)}

.login-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.intro{
  background:var(--surface-shell);color:var(--text-on-shell);
  padding:clamp(32px,6vw,80px) clamp(24px,5vw,64px);
  display:flex;flex-direction:column;justify-content:space-between;gap:60px;
}
.brand{text-decoration:none;display:flex;align-items:center;gap:12px;width:max-content;color:inherit}
.brand>span{display:grid;place-items:center;width:44px;height:44px;background:var(--cream-200);color:var(--wine-600);border-radius:var(--radius-md);font-size:24px;font-weight:800}
.brand strong{font-size:20px;letter-spacing:-.4px}
.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:.6px;color:var(--text-on-shell-muted);margin-top:2px}

.eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:800;text-transform:uppercase;color:var(--text-faint)}
.intro .eyebrow{color:var(--brass-300)}
h1{font-size:clamp(30px,4vw,38px);line-height:1.15;letter-spacing:-1.2px;margin:18px 0 24px;color:#fff}
.intro p{max-width:36ch;line-height:1.7;color:var(--text-on-shell-muted);font-size:17px}
.private-note{color:var(--text-on-shell-muted);font-size:12px}

.login-panel{padding:clamp(32px,6vw,80px) clamp(24px,5vw,64px);display:grid;place-items:center;background:var(--surface-page);min-width:0}
.login-card{
  width:100%;max-width:440px;min-width:0;
}
h2{font-size:24px;letter-spacing:-.4px;margin:10px 0}
.subtitle{color:var(--text-muted);line-height:1.6;margin:0 0 28px;font-size:14px}

form{display:flex;flex-direction:column;gap:10px}
label{font-size:13px;font-weight:600;color:var(--text-body)}
input{
  width:100%;min-width:0;height:var(--control-md);padding:0 14px;
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  background:var(--surface-inset);color:var(--text-strong);font-size:15px;
  transition:border-color 120ms cubic-bezier(.2,.6,.3,1),background 120ms,box-shadow 120ms;
}
input:focus{outline:none;border-color:var(--wine-300);background:var(--surface-card);box-shadow:var(--ring-focus)}
input#email{margin-bottom:10px}

.password-field{position:relative;display:flex}
.password-field input{padding-right:88px}
.password-field button{position:absolute;right:4px;top:4px;bottom:4px;border:0;background:transparent;color:var(--brand-ink);font-size:12px;font-weight:700;min-width:76px;border-radius:var(--radius-xs)}
.password-field button:hover{background:var(--wine-50)}

button,a{touch-action:manipulation}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-xs)}

.primary{
  background:var(--brand);color:#fff;border:1px solid transparent;border-radius:var(--radius-sm);
  height:var(--control-lg);font-weight:600;font-size:15px;margin-top:12px;box-shadow:var(--shadow-brand);
  transition:background 120ms cubic-bezier(.2,.6,.3,1),transform 120ms;
}
.primary:hover{background:var(--brand-hover)}
.primary:active{transform:translateY(1px)}
.primary:disabled{opacity:.45;cursor:wait}

.error{padding:12px 14px;border-radius:var(--radius-sm);background:var(--red-100);color:var(--red-700);font-size:13px;line-height:1.5;margin:4px 0 0}
.divider{display:flex;align-items:center;gap:14px;color:var(--text-faint);font-size:12px;margin:24px 0}
.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}

.google-button{
  display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--line-strong);
  background:var(--surface-card);border-radius:var(--radius-sm);padding:0 16px;height:var(--control-lg);
  text-decoration:none;font-size:14px;font-weight:600;color:var(--text-strong);
}
.google-button:hover{background:var(--cream-50);color:var(--text-strong)}
.help{color:var(--text-muted);font-size:12px;line-height:1.7;text-align:center}
.account-help{border-top:1px solid var(--line);padding-top:22px;margin-top:28px}

/* código de verificação em seis caixas */
.code-fields{display:flex;gap:8px}
.code-fields input{
  flex:1;height:56px;text-align:center;font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:20px;font-weight:700;padding:0;border-radius:var(--radius-sm);
  background:var(--surface-inset);border:1px solid var(--line-strong);
}
.code-fields input:not(:placeholder-shown){background:var(--surface-card);border-color:var(--wine-300)}

@media(max-width:760px){
  .login-shell{grid-template-columns:minmax(0,1fr)}
  .intro{padding:24px max(24px,env(safe-area-inset-left));gap:24px}
  .intro-copy,.private-note{display:none}
  .login-panel{padding:24px 20px max(32px,env(safe-area-inset-bottom));align-items:start}
  h2{font-size:22px}
  .subtitle{margin-bottom:24px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Equipe: esqueci minha senha e primeiro acesso (F21) */
.auth-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;font-size:14px;font-weight:600}
.auth-links a{text-decoration:none;padding:6px 0}
.auth-links a:hover{text-decoration:underline}
.notice{padding:12px 14px;border-radius:var(--radius-sm);background:#eaf0f6;color:#2c4c68;font-size:13px;line-height:1.5;margin:4px 0 0}
.code-input{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.35em;font-size:18px;font-weight:700}
.strength{display:flex;gap:4px;margin:2px 0 0}
.strength span{flex:1;height:5px;border-radius:3px;background:var(--line-strong)}
.strength span.on{background:#b4801a}
.strength span.on.strong{background:var(--green-500)}
.rules{list-style:none;margin:2px 0 8px;padding:0;display:grid;gap:4px;font-size:13px;color:var(--text-muted)}
.rules li{display:flex;gap:8px;align-items:center}
.rules li:before{content:"";width:14px;height:14px;border-radius:50%;border:1.5px solid var(--line-strong);flex:none}
.rules li.ok{color:#146046}
.rules li.ok:before{background:var(--green-500);border-color:var(--green-500);box-shadow:inset 0 0 0 3px #fff}
.hint{font-size:12.5px;color:var(--muted,#6b5b55);margin:10px 0 0;line-height:1.45}
