@font-face{
  font-family: "Jost";
  src: url("/static/fonts/Jost-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face{
  font-family: "Jost";
  src: url("/static/fonts/Jost-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root{
  --accent:#aac700;
  --accent2:#c5e000;
  --ok:#22c55e;
  --bad:#ef4444;
  --ring:0 0 0 3px rgba(170,199,0,.28);
  --ring-strong:0 0 0 5px rgba(170,199,0,.20);
  --ring-bad:0 0 0 3px rgba(239,68,68,.20);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; padding:0; }

body{
  font-family:var(--font);
  color:rgba(255,255,255,.90);
  background:#0b1219;
  min-height:100vh;
  caret-color: rgba(170,199,0,.95);
  accent-color: #aac700;
}

::selection{
  background: rgba(170,199,0,.28);
  color: rgba(255,255,255,.96);
}

/* ===== LAYOUT DIVIDIDO ===== */
.split-page{
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 100vh;
}

/* ===== PAINEL ESQUERDO — formulário ===== */
.form-side{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #0f1923;
}

.form-side-inner{
  width: 100%;
  max-width: 400px;
}

.form-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.form-logo{
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.form-brand-name{
  font-family: "Jost", Arial, sans-serif;
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: .03em;
  line-height: 1.1;
}

.form-brand-name .brandSomma{ color:#dce6f2; font-weight:500; }
.form-brand-name .brandLabel{ color:#aac700; font-size:.88em; font-weight:500; margin-left:1px; }

.form-title{
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
}

.form-subtitle{
  margin: 0 0 28px;
  font-size: 14px;
  color: rgba(255,255,255,.50);
}

/* ===== FORMULÁRIO ===== */
.form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field{ display:flex; flex-direction:column; gap:7px; }

.field > span{
  font-size: 13px;
  color: rgba(255,255,255,.65);
  letter-spacing: .2px;
}

.input-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.input-wrap:hover{
  background: rgba(255,255,255,.07);
}

.input-wrap:focus-within{
  border-color: rgba(170,199,0,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), var(--ring);
}

.icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
}

input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  padding: 2px 0;
  font-family: var(--font);
}

input::placeholder{
  color: rgba(255,255,255,.30);
}

input:-webkit-autofill{
  -webkit-text-fill-color: rgba(255,255,255,.92);
  transition: background-color 9999s ease-in-out 0s;
  caret-color: rgba(170,199,0,.95);
}

.toggle{
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255,255,255,.50);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color .15s, background .15s;
}

.toggle:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
}

.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  user-select: none;
}

.check input{
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #aac700;
}

.link{
  border: 0;
  background: transparent;
  color: rgba(170,199,0,.90);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .15s;
  font-family: var(--font);
}

.link:hover{ background: rgba(170,199,0,.10); }

.error{ display:none; }
.error.bad-ring{ box-shadow: var(--ring-bad); }

.primary{
  margin-top: 4px;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  color: #0c1200;
  background: rgba(170,199,0,.92);
  transition: filter .15s, transform .1s, box-shadow .15s;
  font-family: var(--font);
}

.primary:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary:active{ transform: translateY(1px); }

.primary:focus-visible{
  outline: none;
  box-shadow: var(--ring-strong);
}

.footer{
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.30);
  font-size: 12px;
}

.sep{ opacity:.6; }

/* ===== PAINEL DIREITO — slideshow ===== */
.brand-side{
  display: flex;
  flex-direction: column;
  padding: 36px 48px 32px;
  background: linear-gradient(145deg, #0d1f0a 0%, #0f2310 40%, #0a1a08 100%);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.brand-side::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 80% 10%, rgba(170,199,0,.16), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(170,199,0,.08), transparent 60%);
  pointer-events: none;
}

.brand-side::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(170,199,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,199,0,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: .7;
}

/* Logo fixa no topo */
.brand-top{
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.brand-header{
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(170,199,0,.32));
  flex-shrink: 0;
}

.brand-name{
  font-family: "Jost", Arial, sans-serif;
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 2px;
  letter-spacing: .03em;
  line-height: 1;
}

.brand-name .brandSomma{ color:#dce6f2; font-weight:500; }
.brand-name .brandLabel{ color:#aac700; font-size:.88em; font-weight:500; margin-left:1px; }

.brand-sub{
  font-size: 12px;
  color: rgba(255,255,255,.42);
  margin: 0;
  letter-spacing: .02em;
}

/* Slides */
.slides-container{
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
}

.slide{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}

.slide--active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-visual{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.slide-content{}

.slide-title{
  margin: 0 0 10px;
  font-family: "Jost", Arial, sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: rgba(255,255,255,.95);
  letter-spacing: .02em;
}

.slide-desc{
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 420px;
}

/* Dots */
.slides-dots{
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-shrink: 0;
}

.sdot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}

.sdot--active{
  background: rgba(170,199,0,.90);
  width: 24px;
}

/* ===== MOCKS VISUAIS ===== */

/* --- Mock Editor --- */
.mock-editor{
  width: 100%;
  max-width: 380px;
  background: rgba(15,25,40,.80);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  overflow: hidden;
}

.mock-editor-toolbar{
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mock-tool{
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
}

.mock-tool--active{
  background: rgba(170,199,0,.25);
  border: 1px solid rgba(170,199,0,.40);
}

.mock-editor-stage{
  display: flex;
  gap: 12px;
  padding: 16px;
}

.mock-label-card{
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-barcode{
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 36px;
}

.mock-bar{
  background: #1a1a1a;
  height: 100%;
  border-radius: 1px;
}

.mock-label-lines{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-line{
  height: 6px;
  background: rgba(0,0,0,.15);
  border-radius: 3px;
}

.mock-properties{
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-prop-row{
  height: 8px;
  background: rgba(255,255,255,.10);
  border-radius: 3px;
  width: 100%;
}

/* --- Mock Network --- */
.mock-network{
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 380px;
}

.mock-server-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(170,199,0,.08);
  border: 1px solid rgba(170,199,0,.22);
  border-radius: 8px;
}

.mock-server-label{
  font-size: 11px;
  color: rgba(170,199,0,.80);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mock-net-lines{
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.mock-net-line{
  height: 1px;
  background: linear-gradient(90deg, rgba(170,199,0,.50), rgba(170,199,0,.10));
  position: relative;
}

.mock-net-line::after{
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(170,199,0,.60);
  animation: pulse-dot 2s ease-in-out infinite;
}

.mock-net-line:nth-child(2)::after{ animation-delay: .6s; }
.mock-net-line:nth-child(3)::after{ animation-delay: 1.2s; }

@keyframes pulse-dot{
  0%,100%{ opacity:.3; transform:scale(.8); }
  50%{ opacity:1; transform:scale(1.2); }
}

.mock-printers{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-printer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.mock-printer--active{
  background: rgba(170,199,0,.10);
  border-color: rgba(170,199,0,.30);
  color: rgba(170,199,0,.80);
}

/* --- Mock Data Flow --- */
.mock-data-flow{
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.mock-table{
  flex: 1;
  background: rgba(15,25,40,.80);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
}

.mock-table-head{
  display: flex;
  background: rgba(170,199,0,.12);
  border-bottom: 1px solid rgba(170,199,0,.20);
}

.mock-cell{
  flex: 1;
  padding: 6px 8px;
  color: rgba(255,255,255,.60);
  white-space: nowrap;
  overflow: hidden;
}

.mock-cell--head{
  color: rgba(170,199,0,.80);
  font-weight: 600;
  letter-spacing: .05em;
  font-size: 10px;
}

.mock-table-row{
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.mock-table-row--active{
  background: rgba(170,199,0,.08);
}

.mock-table-row:last-child{ border-bottom: 0; }

.mock-arrow{
  flex-shrink: 0;
  opacity: .8;
}

.mock-label-small{
  width: 80px;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-barcode-sm{
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.mock-label-text-sm{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Mock Dashboard --- */
.mock-dashboard{
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mock-stat-card{
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-stat-card--accent{
  background: rgba(170,199,0,.10);
  border-color: rgba(170,199,0,.25);
}

.mock-stat-num{
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  font-family: "Jost", Arial, sans-serif;
}

.mock-stat-card--accent .mock-stat-num{
  color: rgba(170,199,0,.95);
}

.mock-stat-label{
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

.mock-chart{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 14px 16px 10px;
}

.mock-bar-chart{
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-bottom: 8px;
}

.mock-bar-item{
  flex: 1;
  height: var(--h, 50%);
  background: rgba(255,255,255,.15);
  border-radius: 3px 3px 0 0;
  transition: background .3s;
}

.mock-bar-item--active{
  background: rgba(170,199,0,.70);
}

.mock-chart-label{
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* ===== BRAND COLORS ===== */
.brandSomma{ color: #dce6f2; }
.brandLabel{ color: #aac700; }

/* ===== TOASTS ===== */
.toasts{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast{
  min-width: 280px;
  max-width: min(360px, calc(100vw - 36px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,18,32,.94);
  box-shadow: 0 16px 36px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.toast .ticon{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.toast.bad .ticon{ background:var(--bad); box-shadow:0 0 0 4px rgba(239,68,68,.18); }
.toast.ok .ticon{ background:var(--ok); box-shadow:0 0 0 4px rgba(34,197,94,.18); }
.toast.info .ticon{ background:var(--accent); box-shadow:0 0 0 4px rgba(170,199,0,.18); }

.toast .ttext{
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255,255,255,.94);
  flex: 1;
}

.toast .tclose{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.60);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: auto;
  height: auto;
}

/* ===== MODAL ESQUECI SENHA ===== */
.loginModal[hidden]{ display:none; }
.loginModal{
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.loginModalBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(4,10,22,.65);
  backdrop-filter: blur(8px);
}

.loginModalCard{
  position: relative;
  width: min(460px, calc(100vw - 32px));
  margin: 12vh auto 0;
  padding: 24px 24px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(21,31,52,.97), rgba(12,18,32,.97));
  box-shadow: 0 24px 54px rgba(0,0,0,.42);
}

.loginModalClose{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  cursor: pointer;
  font-family: var(--font);
}

.loginModalBadge{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(170,199,0,.12);
  border: 1px solid rgba(170,199,0,.22);
  color: rgba(191,219,254,.95);
  font-size: 12px;
  margin-bottom: 14px;
}

.loginModalTitle{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.loginModalText{
  margin: 0 0 8px;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
  font-size: 14px;
}

.loginModalActions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.loginModalAction{
  width: auto;
  min-width: 120px;
}

.loginModalSecondaryAction{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px){
  .split-page{
    grid-template-columns: 1fr;
  }

  .brand-side{
    display: none;
  }

  .form-side{
    padding: 32px 24px;
  }
}

@media (max-width: 420px){
  .form-side-inner{
    max-width: 100%;
  }
}

/* Slide de imagem (API) */
.slide-visual--img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
}

.slide-visual--img ~ .slide-content{
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 24px 0 4px;
  margin-top: auto;
}

/* Para slide de imagem: ajusta layout */
.slide:has(.slide-visual--img){
  position: absolute;
  inset: 0;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 4px;
}

/* ===== OVERLAY DE IMAGEM FULL-BLEED ===== */
.slide-img-overlay{
  position: absolute;
  inset: 0;
  z-index: 5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.slide-img-overlay--active{
  opacity: 1;
  pointer-events: auto;
}

.slide-img-text{
  position: absolute;
  bottom: 60px;
  left: 48px;
  right: 48px;
  z-index: 7;
  padding: 20px 24px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  border-radius: 0 0 6px 6px;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.slide-img-text--active{ opacity: 1; }
.slide-img-text h3{
  margin: 0 0 6px;
  font-size: 20px;
  font-family: "Jost", Arial, sans-serif;
  font-weight: 500;
  color: #fff;
}
.slide-img-text p{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}

/* Esconde logo quando imagem está ativa */
.brand-top{
  transition: opacity .5s ease;
}
.brand-top--hidden{
  opacity: 0;
  pointer-events: none;
}

/* Dots ficam sempre acima da imagem */
.slides-dots{
  position: relative;
  z-index: 10;
}

/* ===== CARD PERSONALIZADO ===== */
.mock-card-wrap{
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mock-card-icon-box{
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--card-color-rgb, 170,199,0), .12);
  border: 1px solid rgba(var(--card-color-rgb, 170,199,0), .30);
  box-shadow: 0 0 40px rgba(var(--card-color-rgb, 170,199,0), .18);
  position: relative;
}

.mock-card-icon-box svg{
  color: var(--card-color, #aac700);
  stroke: var(--card-color, #aac700);
}

.mock-card-dots{
  display: flex;
  gap: 8px;
}

.mock-card-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-color, #aac700);
  opacity: .4;
}

.mock-card-dot:nth-child(2){ opacity:.7; }
.mock-card-dot:nth-child(3){ opacity:1; }

.mock-card-lines{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 200px;
}

.mock-card-line{
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.12);
}

.mock-card-line--accent{
  background: rgba(var(--card-color-rgb, 170,199,0), .35);
}
