/* L360º · Chat14 · Autenticação visual unificada (LAB)
 * Reutiliza os motores OTP/Turnstile/segurança originais.
 * Nenhum seletor fora dos acessos com classe l360-auth*.
 */
.l360-auth-card,
dialog.l360-auth-modal{
  --auth-panel:#17150e;
  --auth-border:#655b38;
  --auth-text:#f7f7f7;
  --auth-muted:#c5c1b7;
  --auth-field:#e8efff;
  --auth-field-text:#111827;
  --auth-yellow:#ffd633;
  box-sizing:border-box;
  background:var(--auth-panel);
  color:var(--auth-text);
  border:1px solid var(--auth-border);
  border-radius:18px;
  box-shadow:0 20px 80px rgba(0,0,0,.60);
}
html[data-theme="light"] .l360-auth-card,
html[data-theme="light"] dialog.l360-auth-modal{
  --auth-panel:#fff;
  --auth-border:#c9bd8a;
  --auth-text:#171717;
  --auth-muted:#45423a;
  --auth-field:#e8efff;
}
.l360-auth-card,
.l360-auth-card *,
dialog.l360-auth-modal,
dialog.l360-auth-modal *{box-sizing:border-box}
.l360-auth-card h1,
.l360-auth-card h2,
dialog.l360-auth-modal h2{
  color:var(--auth-text);
  font-size:clamp(23px,4.2vw,30px);
  line-height:1.2;
  margin:0;
  font-weight:800;
  letter-spacing:-.02em;
}
.l360-auth-card .l360-auth-head,
dialog.l360-auth-modal .l360-auth-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:22px;
}
.l360-auth-card .l360-auth-close,
dialog.l360-auth-modal .l360-auth-close{
  border:0;
  color:var(--auth-text);
  background:transparent;
  min-width:34px;
  min-height:34px;
  font-size:26px;
  font-weight:650;
  line-height:1;
  padding:2px 6px;
  cursor:pointer;
}
.l360-auth-card .l360-auth-hint,
dialog.l360-auth-modal .l360-auth-hint{
  font-size:13px;
  line-height:1.65;
  color:var(--auth-muted);
  margin:12px 0 0;
}
.l360-auth-card .l360-auth-step,
dialog.l360-auth-modal .l360-auth-step{display:grid;gap:16px}
.l360-auth-card .l360-auth-step[hidden],
dialog.l360-auth-modal .l360-auth-step[hidden]{display:none!important}
.l360-auth-card .l360-auth-label,
dialog.l360-auth-modal .l360-auth-label{
  display:block;
  text-align:center!important;
  color:var(--auth-text)!important;
  font-size:clamp(16px,3.3vw,19px);
  font-weight:750;
  line-height:1.45;
  margin:0;
}
.l360-auth-card .l360-auth-label input,
dialog.l360-auth-modal .l360-auth-label input{
  display:block;
  width:100%;
  min-height:56px;
  margin:12px 0 0;
  padding:14px 16px;
  border-radius:10px;
  border:1px solid #aab2c2;
  background:var(--auth-field)!important;
  color:var(--auth-field-text)!important;
  font:inherit;
  font-size:18px;
  font-weight:500;
  line-height:1.4;
  text-align:center;
  outline:none;
  opacity:1;
  color-scheme:light;
}
.l360-auth-card .l360-auth-label input:focus-visible,
dialog.l360-auth-modal .l360-auth-label input:focus-visible{
  border-color:#dfb50d;
  box-shadow:0 0 0 3px rgba(255,214,51,.28);
}
.l360-auth-card .l360-auth-code,
dialog.l360-auth-modal .l360-auth-code{
  letter-spacing:.13em;
  font-variant-numeric:tabular-nums;
}
.l360-auth-card .l360-auth-primary,
dialog.l360-auth-modal .l360-auth-primary{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:56px;
  padding:14px 18px;
  border:0;
  border-radius:11px;
  color:#171717!important;
  background:var(--auth-yellow)!important;
  font:inherit;
  font-size:clamp(17px,3vw,20px);
  font-weight:800;
  line-height:1.3;
  cursor:pointer;
}
.l360-auth-card .l360-auth-primary:disabled,
dialog.l360-auth-modal .l360-auth-primary:disabled{
  opacity:.58;
  cursor:not-allowed;
}
.l360-auth-card .l360-auth-secondary,
dialog.l360-auth-modal .l360-auth-secondary{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:40px;
  padding:8px;
  background:transparent!important;
  border:0;
  color:var(--auth-text)!important;
  font:inherit;
  font-size:13px;
  font-weight:650;
}
.l360-auth-card .l360-auth-request-row,
dialog.l360-auth-modal .l360-auth-request-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}
.l360-auth-card .l360-auth-request-row .l360-auth-primary,
dialog.l360-auth-modal .l360-auth-request-row .l360-auth-primary{flex:1;min-width:0}
.l360-auth-captcha-ok{
  width:44px;
  height:44px;
  border-radius:50%;
  flex:none;
  display:grid;
  place-items:center;
  background:#119d69;
  color:#fff;
  font-size:24px;
  font-weight:900;
}
.l360-auth-captcha-ok[hidden]{display:none!important}
.l360-auth-turnstile{
  display:flex;
  justify-content:center;
  min-height:0;
  margin:0;
}
.l360-auth-turnstile.is-verified{display:none}
/* Chat15: desafio Turnstile visível na retomada, inclusive no mobile. */
#loginModal .l360-auth-turnstile:not(.is-verified){min-height:68px;align-items:center}
#loginModal #indexAuthCaptcha{display:flex;justify-content:center;width:100%;min-height:65px}
#loginModal .l360-auth-captcha-status{
  margin:-7px 0 0;font-size:13px;line-height:1.5;
  color:var(--auth-muted);text-align:center;
}
#loginModal .l360-auth-captcha-retry{
  display:block;width:100%;min-height:40px;
  border:1px solid var(--auth-border);border-radius:9px;
  background:transparent;color:var(--auth-text);
  font:inherit;font-size:14px;font-weight:650;cursor:pointer;
}
#loginModal .l360-auth-captcha-status[hidden],
#loginModal .l360-auth-captcha-retry[hidden]{display:none!important}
.l360-auth-note,
.l360-auth-security{
  margin:0;
  text-align:center;
  font-size:12px;
  line-height:1.7;
  font-weight:400;
  color:var(--auth-muted)!important;
}
.l360-auth-note a{color:inherit;text-decoration:none}
.l360-auth-note a:focus-visible,
.l360-auth-note a:hover{text-decoration:underline}
.l360-auth-security{display:flex;align-items:center;justify-content:center;gap:7px}
.l360-auth-feedback:not([hidden]):not(:empty){
  background:#e9eef7;
  color:#27364b!important;
  border-radius:9px;
  padding:12px 14px;
  text-align:center;
  line-height:1.5;
  font-size:13px;
  overflow-wrap:anywhere;
}
.l360-auth-card [hidden],
dialog.l360-auth-modal [hidden]{display:none!important}
/* Painel/gestão: acesso é página, preservando controles PWA e destino seguro. */
.l360-auth-page{background:#111!important;color:#fff}
.l360-auth-page .l360-auth-card{width:min(100%,540px);padding:clamp(20px,5vw,32px)}
.l360-auth-page .l360-auth-card form{display:grid;gap:18px}
.l360-auth-page .l360-auth-card .l360-auth-head h1{margin:0}
@media(max-width:540px){
  .l360-auth-card .l360-auth-head,dialog.l360-auth-modal .l360-auth-head{margin-bottom:18px}
  .l360-auth-card .l360-auth-primary,dialog.l360-auth-modal .l360-auth-primary{min-height:54px}
  .l360-auth-page .l360-auth-card{width:100%;max-width:540px}
}


/* Adaptação da antiga porta bipartida da Gestão ao padrão de acesso. */
body.l360-auth-page .login-shell{
  display:flex!important;
  align-items:center;
  justify-content:center;
  min-height:calc(100dvh - 146px);
  width:100%;
  background:transparent!important;
}
body.l360-auth-page .login-access{
  width:100%;
  max-width:600px;
  min-height:0!important;
  padding:clamp(16px,4vw,34px);
  color:inherit;
  background:transparent!important;
}
body.l360-auth-page .login-context{display:none!important}
body.l360-auth-page .login-access .login-box.l360-auth-card{
  width:min(100%,540px);
  max-width:540px;
  padding:clamp(20px,4vw,30px);
  margin:auto;
  text-align:left;
  background:var(--auth-panel)!important;
  color:var(--auth-text)!important;
}
body.l360-auth-page .login-access .login-heading{margin:0 0 20px;text-align:left}
body.l360-auth-page .login-access .login-heading h1{
  color:var(--auth-text)!important;
  text-align:left!important;
  font-size:clamp(23px,4vw,30px)!important;
}
body.l360-auth-page .login-access .login-heading p.l360-auth-hint{
  color:var(--auth-muted)!important;
}
body.l360-auth-page .login-access form{
  margin:0;
  display:grid;
  gap:18px;
}
body.l360-auth-page .login-access form label.l360-auth-label,
body.l360-auth-page .login-access form label.l360-auth-label span{
  color:var(--auth-text)!important;
  text-align:center!important;
  font-size:clamp(16px,3vw,19px);
}
body.l360-auth-page .login-access .l360-auth-label input{
  background:var(--auth-field)!important;
  color:var(--auth-field-text)!important;
  border-color:#aab2c2!important;
}
body.l360-auth-page .login-access .l360-auth-primary{
  background:var(--auth-yellow)!important;
  color:#171717!important;
}
body.l360-auth-page .login-access .l360-auth-secondary{
  color:var(--auth-text)!important;
  background:transparent!important;
  margin-top:0;
}
body.l360-auth-page .login-access .security-note{
  margin:0;
  color:var(--auth-muted)!important;
}
body.l360-auth-page .login-access .login-message.l360-auth-feedback{
  margin:0;
  color:#27364b!important;
}
body.l360-auth-page .login-access .turnstile-wrap.is-verified{display:none!important}
body.l360-auth-page .login-access #loginCode{letter-spacing:.13em;text-align:center}
body.l360-auth-page .login-access .l360-auth-note{margin:10px 0 0}
body.l360-auth-page .l360-access-footer{color:#a5a5a5!important}
body.l360-auth-page.mobile-login-open .login-box.l360-auth-card{padding-top:50px}
body.l360-auth-page.mobile-login-open .mobile-login-close.l360-auth-close{
  top:8px;right:10px;
  width:40px;height:40px;
  min-height:40px;
  border:0;background:transparent;
  font-size:26px;font-weight:700;
  color:var(--auth-text);
}


/* OTP contextual do Diagnóstico: WhatsApp e revalidação de operador. */
#supportModal.support-modal--profile-whatsapp .support-modal__dialog,
#supportModal[data-type="operational-revalidation"] .support-modal__dialog{
  width:min(92vw,540px);
  margin:clamp(10px,8vh,78px) auto;
  max-height:calc(100dvh - 24px);
  border-radius:18px;
  border:1px solid #655b38;
  background:#17150e;
  color:#fff;
  box-shadow:0 20px 80px rgba(0,0,0,.6);
}
body.theme-light #supportModal.support-modal--profile-whatsapp .support-modal__dialog,
body.theme-light #supportModal[data-type="operational-revalidation"] .support-modal__dialog{
  background:#fff;
  color:#171717;
  border-color:#c9bd8a;
}
#supportModal.support-modal--profile-whatsapp .support-modal__header,
#supportModal[data-type="operational-revalidation"] .support-modal__header{
  padding:25px 28px 10px;
  border-bottom:0;
  align-items:flex-start;
}
#supportModal.support-modal--profile-whatsapp .support-modal__header .eyebrow,
#supportModal[data-type="operational-revalidation"] .support-modal__header .eyebrow{display:none}
#supportModal.support-modal--profile-whatsapp .support-modal__header h2,
#supportModal[data-type="operational-revalidation"] .support-modal__header h2{
  font-size:clamp(24px,4vw,30px);
  font-weight:800;
  color:inherit;
}
#supportModal.support-modal--profile-whatsapp .support-modal__header p,
#supportModal[data-type="operational-revalidation"] .support-modal__header p{
  font-size:13px;
  line-height:1.6;
  color:inherit;
  opacity:.84;
  margin:10px 0 0;
}
#supportModal.support-modal--profile-whatsapp .support-modal__body,
#supportModal[data-type="operational-revalidation"] .support-modal__body{
  padding:18px 28px 28px;
  font-size:14px;
}
#supportModal.support-modal--profile-whatsapp form label,
#supportModal[data-type="operational-revalidation"] form label{
  display:block;
  width:100%;
  text-align:center!important;
  font-size:18px;
  font-weight:750;
  line-height:1.5;
  color:inherit!important;
}
#supportModal.support-modal--profile-whatsapp form label span{display:block;text-align:center}
#supportModal.support-modal--profile-whatsapp form input[name="code"],
#supportModal[data-type="operational-revalidation"] form input[name="code"],
#supportModal[data-type="operational-revalidation"] form input[name="email"]{
  width:100%;
  box-sizing:border-box;
  min-height:56px;
  margin:12px 0 0;
  padding:12px;
  border:1px solid #aab2c2!important;
  border-radius:10px;
  background:#e8efff!important;
  color:#111827!important;
  text-align:center;
  font:inherit;
  font-size:18px;
  opacity:1;
}
#supportModal.support-modal--profile-whatsapp form input[name="code"],
#supportModal[data-type="operational-revalidation"] form input[name="code"]{
  letter-spacing:.13em;font-variant-numeric:tabular-nums;
}
#supportModal.support-modal--profile-whatsapp form button[type="submit"],
#supportModal[data-type="operational-revalidation"] form button[type="submit"]{
  min-height:52px;
  background:#ffd633!important;
  color:#171717!important;
  border:0!important;
  border-radius:10px;
  font:inherit;
  font-weight:800;
}
#supportModal[data-type="operational-revalidation"] .contractual-rule__icon{display:none}
#supportModal[data-type="operational-revalidation"] .contractual-rule{background:transparent;border:0;padding:0}
@media(max-width:540px){
  #supportModal.support-modal--profile-whatsapp .support-modal__header,
  #supportModal[data-type="operational-revalidation"] .support-modal__header{padding:20px 18px 8px}
  #supportModal.support-modal--profile-whatsapp .support-modal__body,
  #supportModal[data-type="operational-revalidation"] .support-modal__body{padding:12px 18px 20px}
}


/* Proteções da porta PWA e da composição de autenticação. */
.l360-auth-modal .hero-tag{display:none}
.l360-auth-card .l360-auth-note,
dialog.l360-auth-modal .l360-auth-note{margin-top:16px}
body.l360-auth-page #loginShell[hidden],
body.l360-auth-page .login-shell[hidden]{display:none!important}
body.l360-auth-page #pwaGate[hidden]{display:none!important}
body.l360-auth-page .login-heading .l360-auth-heading-copy{
  flex:1;
  min-width:0;
  display:grid;
  gap:10px;
}
body.l360-auth-page .login-heading .l360-auth-heading-copy p{margin:0}


/* Painel: labels usam for/id, portanto os campos não são descendentes do label. */
.l360-auth-card .l360-auth-step>input[type="email"],
.l360-auth-card .l360-auth-step>input.l360-auth-code{
  width:100%;
  min-height:56px;
  padding:14px 16px;
  box-sizing:border-box;
  border:1px solid #aab2c2;
  border-radius:10px;
  background:var(--auth-field)!important;
  color:var(--auth-field-text)!important;
  font:inherit;
  font-size:18px;
  text-align:center;
  color-scheme:light;
}
.l360-auth-card .l360-auth-step>input.l360-auth-code{
  letter-spacing:.13em;
  font-variant-numeric:tabular-nums;
}
.l360-auth-card .l360-auth-step>input:focus-visible{
  outline:0;
  border-color:#dfb50d;
  box-shadow:0 0 0 3px rgba(255,214,51,.28);
}


/* Chat14 · Regressão Playwright: cor explícita do modal Index no tema Light. */
html[data-theme="light"] #loginModal .l360-auth-card{
  --auth-panel:#ffffff;
  --auth-text:#171717;
  --auth-muted:#45423a;
  background:#ffffff!important;
  color:#171717!important;
}
html[data-theme="dark"] #loginModal .l360-auth-card{
  background:#17150e!important;
  color:#f7f7f7!important;
}
