/* ==========================================================
   ÁREA DE CLIENTE · TEMA "ESCURO PREMIUM"
   Azul-noite, cartões translúcidos e detalhes dourados.
   ========================================================== */
body.tema-escuro{
  --glass:rgba(255,255,255,.045);
  --glass-2:rgba(255,255,255,.08);
  --glass-line:rgba(199,209,226,.14);
  --txt-soft:#AEBBD3;
  color:#fff;color-scheme:dark;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(226,167,46,.10), transparent 60%),
    radial-gradient(1100px 700px at 10% 0%, #0B2A63 0%, transparent 60%),
    var(--night);
  background-attachment:fixed;
}
.tema-escuro a{color:inherit}
.tema-escuro .muted,.tema-escuro .tile-label,.tema-escuro .tile-sub,.tema-escuro .facts dt,
.tema-escuro .fld label,.tema-escuro .fld small,.tema-escuro .back{color:var(--txt-soft)}

/* menu lateral */
.tema-escuro .side{background:rgba(0,10,31,.55);border-right:1px solid var(--glass-line);backdrop-filter:blur(14px)}
.tema-escuro .side-nav a{position:relative}
.tema-escuro .side-nav a[aria-current]{background:var(--glass-2)}
.tema-escuro .side-nav a[aria-current]::before{content:"";position:absolute;left:-18px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--gold)}
.tema-escuro .side-user{border-top-color:var(--glass-line)}

/* títulos */
.tema-escuro .view-head h1{color:#fff}
.tema-escuro .view-head h1::after{content:"";display:block;width:56px;height:2px;background:var(--gold);margin-top:18px}

/* cartões de vidro */
.tema-escuro .panel,.tema-escuro .tile,.tema-escuro .chart-wrap,.tema-escuro .table-wrap,
.tema-escuro .thread,.tema-escuro .empty{
  background:var(--glass);border:1px solid var(--glass-line);color:#fff;
  backdrop-filter:blur(10px);box-shadow:0 30px 60px -40px rgba(0,0,0,.6);
}
.tema-escuro .panel,.tema-escuro .tile,.tema-escuro .chart-wrap,.tema-escuro .table-wrap,.tema-escuro .thread{border-radius:20px}
.tema-escuro .empty{border-style:dashed}
.tema-escuro .tile:hover{border-color:rgba(226,167,46,.6)}
.tema-escuro .tile-value{color:#fff}
.tema-escuro .tile:first-child .tile-value{color:var(--gold)}
.tema-escuro .note,.tema-escuro .reply{background:var(--glass-2);color:#fff}
.tema-escuro .reply{border-left-color:var(--gold)}

/* fases */
.tema-escuro .ph-dot{background:rgba(255,255,255,.12)}
.tema-escuro .phases li{color:var(--txt-soft)}
.tema-escuro .phases li.is-done .ph-dot{background:#DCE3F0}
.tema-escuro .phases li.now{color:var(--gold)}
.tema-escuro .phases li.now .ph-dot{background:var(--gold);box-shadow:0 0 12px rgba(226,167,46,.7)}

/* estados */
.tema-escuro .badge-ativo,.tema-escuro .badge-paga,.tema-escuro .badge-concluido,.tema-escuro .badge-resolvido{color:#7FD6A8;background:rgba(127,214,168,.12)}
.tema-escuro .badge-pendente,.tema-escuro .badge-aberto,.tema-escuro .badge-pausado{color:#F2C46B;background:rgba(242,196,107,.13)}
.tema-escuro .badge-em_curso{color:#A9C3F5;background:rgba(169,195,245,.13)}
.tema-escuro .badge-bloqueado,.tema-escuro .badge-atrasada{color:#F59A92;background:rgba(245,154,146,.13)}
.tema-escuro .badge-cancelada{color:var(--txt-soft);background:rgba(255,255,255,.07)}

/* tabelas */
.tema-escuro th,.tema-escuro td{border-bottom-color:var(--glass-line)}
.tema-escuro thead th{background:rgba(255,255,255,.04);color:var(--txt-soft)}
.tema-escuro .files li{border-top-color:var(--glass-line)}

/* gráfico */
.tema-escuro .chart .grid{stroke:rgba(255,255,255,.08)}
.tema-escuro .chart .axis{fill:var(--txt-soft)}
.tema-escuro .chart .value{fill:#fff}
.tema-escuro .chart .bar{fill:#DCE3F0}
.tema-escuro .chart .bar-g:last-of-type .bar{fill:var(--gold)}
.tema-escuro .chart .bar-g:hover .bar{fill:var(--gold)}

/* formulários e botões */
.tema-escuro .fld input,.tema-escuro .fld select,.tema-escuro .fld textarea{background:rgba(255,255,255,.05);border-color:var(--glass-line);color:#fff}
.tema-escuro .fld select option{color:var(--ink)}
.tema-escuro .fld input:focus,.tema-escuro .fld select:focus,.tema-escuro .fld textarea:focus{border-color:var(--gold)}
.tema-escuro .btn-sm{background:transparent;border-color:var(--glass-line);color:#fff}
.tema-escuro .btn-sm:hover{border-color:#fff}
.tema-escuro .btn-sm.primary,.tema-escuro .btn-solid{background:var(--gold);border-color:var(--gold);color:var(--night)}
.tema-escuro .btn-line{color:#fff;border-color:rgba(255,255,255,.4)}
.tema-escuro .linklike{color:#fff}
.tema-escuro .mc-hint{color:var(--txt-soft)}

/* ==========================================================
   ENTRAR · CRIAR CONTA · NOVA PALAVRA-PASSE
   ========================================================== */
body.auth.tema-escuro .auth-wrap{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.tema-escuro .auth-side{
  background:transparent;border-right:1px solid var(--glass-line);
  display:flex;flex-direction:column;justify-content:flex-start;gap:30px;
  position:sticky;top:0;height:100svh
}
.tema-escuro .auth-side > .brand{margin-bottom:auto}
.tema-escuro .auth-back{margin-top:auto}
.tema-escuro .auth-side::after{color:rgba(255,255,255,.03)}
.tema-escuro .auth-show{display:grid;justify-items:start;perspective:1200px;padding-top:2vh}
.tema-escuro .auth-quote{font-size:clamp(28px,2.6vw,40px);max-width:18ch}
.tema-escuro .auth-quote::after{content:"";display:block;width:56px;height:2px;background:var(--gold);margin-top:22px}

/* cartão que flutua */
.auth-card{
  position:relative;width:min(380px,80%);aspect-ratio:85.6/54;border-radius:20px;padding:6% 7%;container-type:inline-size;
  color:#fff;overflow:hidden;
  background:radial-gradient(120% 140% at 0% 0%,#163A7C 0%,transparent 55%),linear-gradient(135deg,#00205A 0%,#00143A 60%,#000A1F 100%);
  box-shadow:0 40px 80px -30px rgba(0,0,0,.75),inset 0 0 0 1px rgba(255,255,255,.1);
  transform:rotateX(14deg) rotateY(-18deg) rotateZ(3deg);
  animation:ac-in 1.2s cubic-bezier(.2,.7,.2,1) both .2s, ac-float 7s ease-in-out 1.4s infinite;
}
.auth-card::before{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.16) 50%,transparent 65%);transform:translateX(-120%);animation:ac-sweep 5s ease-in-out 1.6s infinite}
.ac-mono{font-family:var(--logo);font-weight:600;font-size:13cqw;line-height:1;letter-spacing:-.08em}
.ac-nfc{position:absolute;right:7%;top:9%;width:10%;color:var(--mist)}
.ac-label{margin-top:5cqw;font-size:3.2cqw;color:var(--mist)}
.ac-name{font-family:var(--serif);font-size:7cqw;line-height:1.1}
.ac-foot{position:absolute;left:7%;right:7%;bottom:8%;display:flex;justify-content:space-between;font-size:3.3cqw}
.ac-foot span{display:grid;gap:2px}
.ac-foot span:last-child{text-align:right;letter-spacing:.08em}
.ac-foot small{font-size:2.6cqw;color:var(--mist);letter-spacing:0}
@keyframes ac-in{from{opacity:0;transform:translateY(50px) rotateX(50deg) rotateY(-18deg) rotateZ(-6deg) scale(.9)}}
@keyframes ac-float{
  0%,100%{transform:rotateX(14deg) rotateY(-18deg) rotateZ(3deg) translateY(0)}
  50%{transform:rotateX(8deg) rotateY(-10deg) rotateZ(1deg) translateY(-12px)}
}
@keyframes ac-sweep{0%,60%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}

.auth-perks{list-style:none;margin:0;padding:0;display:grid;gap:12px;color:var(--txt-soft);font-size:15.5px}
.auth-perks li{position:relative;padding-left:20px}
.auth-perks li::before{content:"";position:absolute;left:0;top:.55em;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px rgba(226,167,46,.7)}
.auth-perks strong{color:#fff;font-weight:500}
.tema-escuro .auth-back{color:var(--txt-soft)}

/* formulário num cartão de vidro */
.tema-escuro .auth-main{
  max-width:none;width:auto;align-self:center;justify-self:center;margin:clamp(24px,4vw,56px);
  width:min(480px,calc(100% - 48px));padding:clamp(28px,3.4vw,44px);border-radius:24px;
  background:var(--glass);border:1px solid var(--glass-line);backdrop-filter:blur(14px);
  box-shadow:0 40px 80px -40px rgba(0,0,0,.7)
}
.tema-escuro .auth-main h1{font-size:clamp(32px,3vw,44px);color:#fff}
.tema-escuro .auth-main > .muted{margin-bottom:28px}
.tema-escuro .auth-main a{color:var(--gold);text-underline-offset:4px}
.tema-escuro .auth-main .btn-solid{padding-block:15px;box-shadow:0 14px 30px -14px rgba(226,167,46,.7)}
.tema-escuro .auth-main .btn-solid:hover{background:#EDB94A}
.tema-escuro .check{color:var(--txt-soft)}
.tema-escuro .check input{accent-color:var(--gold)}
.tema-escuro .form-error{background:rgba(245,154,146,.12);color:#F8B4AE}
.tema-escuro .form-ok{background:rgba(127,214,168,.12);color:#9BE2BC}
.tema-escuro .done h2{color:#fff}
.done[hidden]{display:none}
.tema-escuro .demo-accounts{background:rgba(255,255,255,.03);border-color:var(--glass-line);color:var(--txt-soft)}
.tema-escuro .demo-accounts strong{color:#fff}
.tema-escuro .demo-accounts code{background:rgba(255,255,255,.08);color:#fff}

@media (max-width:900px){
  body.auth.tema-escuro .auth-wrap{grid-template-columns:1fr}
  .tema-escuro .auth-side{border-right:0;border-bottom:1px solid var(--glass-line);gap:18px;position:relative;height:auto}
  .tema-escuro .auth-side > .brand{margin-bottom:0}
  .tema-escuro .auth-show,.tema-escuro .auth-perks{display:none}
  .tema-escuro .auth-quote::after{margin-top:14px}
  .tema-escuro .auth-main{width:auto;margin:20px var(--pad) 40px;justify-self:stretch}
}
@media (prefers-reduced-motion:reduce){
  .auth-card,.auth-card::before{animation:none}
}
.tema-escuro .auth-side > *{flex:none}
@media (min-width:901px) and (max-height:760px){.tema-escuro .auth-show{display:none}}

/* ==========================================================
   ENTRAR · CRIAR CONTA · NOVA PALAVRA-PASSE — "AURORA (CENTRADO)"
   Cartão de cliente a espreitar por trás do formulário,
   fundo com brilhos azul, roxo e dourado.
   ========================================================== */
body.auth.tema-escuro{min-height:100svh}
body.auth.tema-escuro::before{content:"VQ";position:fixed;left:50%;top:50%;translate:-50% -52%;font-family:var(--logo);font-weight:600;font-size:min(62vw,820px);letter-spacing:-.08em;line-height:1;color:rgba(255,255,255,.025);pointer-events:none}
body.auth.tema-escuro .auth-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:96px 20px 72px;grid-template-columns:none}
body.auth.tema-escuro .auth-side{display:contents}
body.auth.tema-escuro .auth-side::after{display:none}
body.auth.tema-escuro .auth-side > .brand{position:fixed;top:32px;left:clamp(20px,4vw,56px);margin:0}
body.auth.tema-escuro .auth-back{position:fixed;bottom:28px;left:clamp(20px,4vw,56px)}
body.auth.tema-escuro .auth-quote,body.auth.tema-escuro .auth-perks{display:none}
body.auth.tema-escuro .auth-show{display:grid!important;justify-items:center;padding:0;margin-bottom:-78px;position:relative;z-index:0}
body.auth.tema-escuro .auth-card{width:320px}
body.auth.tema-escuro .auth-main{position:relative;z-index:1;margin:0;width:min(440px,100%);text-align:center}
body.auth.tema-escuro .auth-main .stack{text-align:left}
body.auth.tema-escuro .auth-main h1{font-size:clamp(30px,3vw,38px)}
body.auth.tema-escuro .auth-main .linklike{justify-self:center}
@media (max-width:900px){body.auth.tema-escuro .auth-side > .brand{position:static;margin-bottom:28px}body.auth.tema-escuro .auth-wrap{padding-top:28px}body.auth.tema-escuro .auth-card{width:260px}body.auth.tema-escuro .auth-show{margin-bottom:-60px}body.auth.tema-escuro .auth-back{position:static;margin-top:24px}}

body.auth.tema-escuro{--gold:#F2C46B;--glass:rgba(255,255,255,.07);--glass-line:rgba(255,255,255,.16);--txt-soft:#C9C6E6;
  background:
    radial-gradient(700px 500px at 15% 20%,rgba(91,140,255,.45),transparent 60%),
    radial-gradient(700px 500px at 85% 15%,rgba(170,90,255,.38),transparent 60%),
    radial-gradient(800px 600px at 60% 100%,rgba(242,196,107,.28),transparent 60%),
    #080A24}
body.auth.tema-escuro::before{color:rgba(255,255,255,.04)}
body.auth.tema-escuro .auth-main{backdrop-filter:blur(24px);background:rgba(255,255,255,.08)}
body.auth.tema-escuro .auth-main .btn-solid{background:#fff;color:#1A1240;box-shadow:0 14px 34px -12px rgba(255,255,255,.4)}
body.auth.tema-escuro .auth-card{box-shadow:0 40px 80px -30px rgba(20,10,80,.8),inset 0 0 0 1px rgba(255,255,255,.2)}

