/* ============================================================================
   Tema 2026 — tela de login do CRM Conficar
   Criado em 16/07/2026. v2 no mesmo dia: identidade CF Vendas (azul royal
   em degradê imitando o BG Conficar.png oficial + mascote Supercon).

   Carregado DEPOIS de assets/login/css/style.css (template W3layouts): só
   repinta. Para desfazer, remover a linha do <link> em views/index.php.

   O degradê do fundo reproduz em CSS o BG Conficar.png (1080x1920, 456KB):
   topo azul claro, centro profundo, base royal — sem pagar o peso do PNG.
   ============================================================================ */

:root {
  --cf-azul: #1c56d6;
  --cf-azul-esc: #0a2fa0;
  --cf-azul-clr: #2f6ae0;
  --cf-navy: #021178;
  --cf-cinza: #64748b;
  --cf-tx: #172029;
  --cf-linha: #d3dcf0;
}

body {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(80,130,240,.55) 0%, rgba(80,130,240,0) 55%),
    linear-gradient(170deg, #1a4fd0 0%, #0a2fa0 45%, var(--cf-navy) 100%) !important;
  background-attachment: fixed !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif !important;
  /* o template empurra o card com um h1 vazio; flex centraliza de verdade */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

/* h1 é literalmente um &nbsp; no HTML — só ocupava espaço */
body > h1 { display: none; }

/* mascote Supercon ao lado do card — só em tela larga, não rouba espaço */
body::after {
  content: "";
  position: fixed;
  right: max(24px, calc(50% - 640px));
  bottom: 0;
  width: 300px;
  height: 400px;
  background: url("../../img/supercon-login.png") no-repeat bottom center / contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(2,17,120,.45));
}

@media (max-width: 1100px) {
  body::after { display: none; }
}

/* card */
.main-agile {
  width: 92% !important;          /* mata os 15 breakpoints do template */
  max-width: 420px;
  margin: 0 auto !important;
  background: #fff !important;
  border-radius: 14px;
  padding: 0 !important;
  box-shadow: 0 8px 20px rgba(1,8,60,.30), 0 24px 60px rgba(1,8,60,.35) !important;
  overflow: hidden;
}

.content-wthree {
  padding: 40px 40px 28px !important;
}

/* logo novo é PNG transparente (o inline pede width:200px no jpeg antigo) */
.content-wthree img {
  width: 250px !important;
  margin-bottom: 26px !important;
}

/* campos — o padding-left 40px do template fica, é onde mora o ícone */
.content-wthree input[type="text"],
.content-wthree input[type="password"] {
  width: 100% !important;
  box-sizing: border-box;
  background: #fff !important;
  border: 1px solid var(--cf-linha) !important;
  border-radius: 8px !important;
  color: var(--cf-tx) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.content-wthree input[type="text"]:focus,
.content-wthree input[type="password"]:focus {
  border-color: var(--cf-azul-clr) !important;
  box-shadow: 0 0 0 3px rgba(28,86,214,.16) !important;
}

.inputs-w3ls i {
  color: var(--cf-cinza) !important;
}

/* o select do perfil vem com style inline no HTML — !important pra vencer */
.inputs-w3ls select {
  height: 44px !important;
  border: 1px solid var(--cf-linha) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--cf-tx) !important;
  margin-top: 4px;
}

/* botão — o inline background:#224861 é o petróleo velho; royal por cima */
.content-wthree input[type="submit"] {
  background: linear-gradient(135deg, var(--cf-azul-clr) 0%, var(--cf-azul) 100%) !important;
  border-radius: 8px !important;
  margin: 1.6em 0 .6em !important;
  letter-spacing: .06em !important;
  transition: filter .15s ease, box-shadow .15s ease;
}

.content-wthree input[type="submit"]:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(28,86,214,.40);
}

@media (max-width: 480px) {
  .content-wthree { padding: 28px 22px 20px !important; }
}

/* entrada sutil do card e do mascote — puro CSS, sem JS */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cf-sobe {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes cf-mascote {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .main-agile { animation: cf-sobe .45s ease-out both; }
  body::after { animation: cf-mascote .6s ease-out .25s both; }
}
