:root {
  --azul-escuro: #062b5f;
  --azul-profundo: #05285a;
  --azul-card: #083d78;
  --turquesa: #0fa6b7;
  --turquesa-2: #23bdc5;
  --verde: #72bd3f;
  --verde-2: #8bd14b;
  --verde-claro: #e9f7f4;
  --fundo: #ffffff;
  --fundo-azul: #f3fbfc;
  --borda: #dce8ee;
  --borda-2: #eaf0f4;
  --texto: #0b2f61;
  --texto-suave: #385579;
  --sombra: 0 8px 24px rgba(6, 43, 95, .08);
  --sombra-card: 0 5px 18px rgba(6, 43, 95, .10);
  --radius: 11px;
  --container: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8f0f4;
  box-shadow: 0 2px 13px rgba(6, 43, 95, .04);
  position: static;
  z-index: 20;
}
.header-shell {
  max-width: var(--container);
  min-height: 126px;
  margin: 0 auto;
  padding: 16px 28px 12px;
  display: grid;
  grid-template-columns: 250px minmax(610px, 1fr) 330px;
  align-items: start;
  gap: 24px;
}
.brand { display: flex; align-items: center; align-self: center; }
.brand img { width: 218px; height: auto; }
.header-center { display: flex; flex-direction: column; gap: 9px; padding-top: 0; }
.main-nav { display: flex; align-items: center; gap: 31px; font-weight: 800; font-size: 14px; color: var(--azul-profundo); }
.main-nav a { position: relative; padding: 8px 0; white-space: nowrap; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--turquesa);
  border-radius: 20px;
}
.chevron { font-size: 17px; margin-left: 4px; color: var(--azul-profundo); }
.search-bar {
  height: 45px;
  border: 1px solid #cfdce6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
}
.search-bar input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  color: var(--texto);
  font-size: 15px;
}
.search-bar input::placeholder { color: #415b7d; }
.search-bar button {
  width: 54px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--azul-profundo);
  cursor: pointer;
  font-size: 25px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 2px;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { font-size: 18px; }
.btn-outline { color: var(--azul-profundo); border-color: var(--turquesa); background: #fff; }
.btn-primary { color: #fff; background: var(--azul-profundo); box-shadow: 0 6px 16px rgba(5, 40, 90, .20); }
.header-actions .btn { white-space: nowrap; }
.header-actions .btn-outline { min-width: 112px; }
.header-actions .btn-primary { min-width: 205px; }
.btn-ghost { color: #047e91; border-color: var(--turquesa); background: #fff; }
.btn-large { min-height: 44px; padding: 0 25px; font-size: 16px; border-radius: 7px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 3px; background: var(--azul-profundo); margin: 4px 0; border-radius: 20px; }

.hero-section { background: linear-gradient(180deg, #fbfefe 0%, #f5fbfc 100%); }
.hero-shell {
  max-width: var(--container);
  height: 300px;
  margin: 0 auto;
  padding: 31px 28px 0;
  display: grid;
  grid-template-columns: minmax(640px, 680px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  overflow: hidden;
}
.hero-copy { padding-top: 0; }
.eyebrow {
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--turquesa);
  letter-spacing: .03em;
}
.hero-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(38px, 2.6vw, 43px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--azul-profundo);
  font-weight: 900;
}
.hero-text {
  max-width: 650px;
  margin: 10px 0 23px;
  color: #123d70;
  font-size: 17px;
  line-height: 1.45;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-art { align-self: stretch; display: flex; align-items: flex-end; justify-content: flex-end; overflow: visible; }
.hero-art img { width: 690px; max-width: none; max-height: 286px; object-fit: contain; transform: translate(6px, 0); }

.section-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.section-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  color: var(--azul-profundo);
  letter-spacing: -0.02em;
}
.see-all {
  color: #008aa0;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.see-all span { font-size: 20px; }
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
}
.discipline-card {
  min-height: 134px;
  padding: 16px 8px 13px;
  background: #fff;
  border: 1px solid var(--borda-2);
  border-radius: 9px;
  box-shadow: var(--sombra-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.discipline-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(6, 43, 95, .14); }
.discipline-icon { font-size: 39px; height: 43px; display: grid; place-items: center; margin-bottom: 9px; }
.discipline-icon.blue { color: #287ce1; }
.discipline-icon.teal { color: #15aeb9; }
.discipline-icon.blue-light { color: #2b7fe7; }
.discipline-icon.green { color: #6fbd3d; }
.discipline-card strong { display: block; max-width: 116px; font-size: 14px; line-height: 1.12; color: var(--azul-profundo); }
.discipline-card small { display: block; color: #163f70; font-size: 13px; line-height: 1.2; margin-top: 6px; }

.materials { padding-top: 16px; }
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.material-card {
  min-height: 148px;
  background: #fff;
  border: 1px solid #e4ecf0;
  border-radius: 10px;
  box-shadow: var(--sombra-card);
  padding: 12px;
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 16px;
  overflow: hidden;
}
.material-thumb {
  border-radius: 7px;
  border: 1px solid #dbe6ec;
  background: #f8fbfc;
  height: 124px;
  padding: 8px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.paper-preview {
  width: 92px;
  height: 108px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #d5e2e8;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 9px;
}
.paper-preview span { display: block; border-radius: 4px; min-height: 25px; border: 1px solid rgba(5,40,90,.12); }
.paper-preview i { display: block; height: 4px; background: #d8e3e9; border-radius: 20px; }
.material-thumb.math .paper-preview span:nth-child(1) { background: #eaf7ff; border-color: #74bfe9; }
.material-thumb.math .paper-preview span:nth-child(2) { background: #fff7df; border-color: #ffc86c; }
.material-thumb.math .paper-preview span:nth-child(3) { background: #eaf7ff; border-color: #74bfe9; }
.material-thumb.math .paper-preview span:nth-child(4) { background: #ffeaea; border-color: #ff9191; }
.material-thumb.port .paper-preview span { background: #fff; }
.material-thumb.science .paper-preview span { background: #eaf8df; border-color: #8bd163; }
.material-thumb.kids .paper-preview span:nth-child(1) { background: #eaf8df; border-color: #8bd163; }
.material-thumb.kids .paper-preview span:nth-child(2) { background: #edf6ff; border-color: #7eb9ea; }
.material-thumb.kids .paper-preview span:nth-child(3) { background: #fff1e6; border-color: #f7af68; }
.material-thumb.kids .paper-preview span:nth-child(4) { background: #fff0f0; border-color: #ee8585; }
.material-info { min-width: 0; padding-top: 2px; display: flex; flex-direction: column; }
.tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  color: #006a7b;
  background: #ccf3ef;
}
.tag-port { color: #075da6; background: #d5eaff; }
.tag-science { color: #006a7b; background: #c7eef1; }
.tag-kids { color: #00866f; background: #cff5df; }
.material-info h3 {
  color: var(--azul-profundo);
  margin: 10px 0 auto;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
  color: #173f70;
  font-size: 14px;
}
.material-meta span:first-child { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pdf-badge { color: var(--azul-profundo); font-weight: 900; position: relative; padding-left: 21px; }
.pdf-badge::before {
  content: "";
  width: 14px;
  height: 16px;
  background: #f33333;
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.pdf-badge::after {
  content: "";
  width: 6px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #fff;
}

.benefits {
  max-width: calc(var(--container) + 104px);
  margin: 11px auto 0;
  padding: 0 28px;
  min-height: 85px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #edf8fa;
  border-radius: 5px;
  align-items: center;
}
.benefit-card { display: flex; align-items: center; gap: 18px; padding: 12px 28px; }
.benefit-card > span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 58px;
  color: #008da2;
  background: #cdf0ee;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.benefit-card strong { display: block; color: var(--azul-profundo); font-size: 15px; margin-bottom: 5px; }
.benefit-card p { margin: 0; color: var(--texto); font-size: 13px; line-height: 1.35; }

.site-footer { background: #fff; padding: 16px 28px 12px; }
.footer-shell {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 285px 1fr 1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.footer-brand img { width: 182px; margin-bottom: 5px; }
.footer-brand p { margin: 0; color: #153b6d; font-size: 14px; line-height: 1.35; }
.footer-col h3 { margin: 3px 0 8px; color: var(--azul-profundo); font-size: 13px; }
.footer-col a { display: block; color: #183f6d; font-size: 13px; line-height: 1.42; }
.socials { display: flex; gap: 18px; padding-top: 11px; }
.socials a {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--azul-profundo);
  font-weight: 900;
  font-size: 18px;
}
.socials a:nth-child(2) { background: var(--turquesa); }
.copyright { margin: 14px 0 0; text-align: center; color: #183f6d; font-size: 13px; }

.auth-placeholder { min-height: 530px; display: grid; place-items: center; padding: 48px 24px; background: linear-gradient(180deg, #f6fbfc, #fff); }
.auth-card { width: min(520px, 100%); background: #fff; border: 1px solid var(--borda); border-radius: 16px; box-shadow: var(--sombra); padding: 34px; text-align: center; }
.auth-card img { width: 210px; margin: 0 auto 15px; }
.auth-card h1 { margin: 0 0 10px; color: var(--azul-profundo); font-size: 32px; }
.auth-card p { color: var(--texto-suave); line-height: 1.5; margin: 0 0 22px; }

@media (max-width: 1180px) {
  .header-shell { grid-template-columns: 230px 1fr; }
  .header-actions { grid-column: 2; justify-content: flex-start; padding-top: 0; }
  .brand img { width: 200px; }
  .hero-shell { grid-template-columns: 1fr 520px; }
  .hero-art img { width: 580px; }
  .discipline-grid { grid-template-columns: repeat(5, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-shell { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 820px) {
  .site-header { position: relative; }
  .header-shell { min-height: 82px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .brand img { width: 190px; }
  .menu-toggle { display: block; align-self: center; }
  .header-center, .header-actions { display: none; }
  .menu-open .header-center, .menu-open .header-actions { display: flex; grid-column: 1 / -1; }
  .header-center { gap: 12px; padding-top: 10px; }
  .main-nav { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15px; }
  .search-bar { width: 100%; }
  .header-actions { justify-content: stretch; flex-direction: column; align-items: stretch; }
  .header-actions .btn { width: 100%; }
  .hero-shell { height: auto; grid-template-columns: 1fr; padding: 28px 18px 0; gap: 0; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: 38px; }
  .hero-text { font-size: 16px; margin-bottom: 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-art { justify-content: center; margin-top: 10px; }
  .hero-art img { width: 100%; max-width: 600px; transform: translateY(10px); }
  .section-block { padding: 18px 18px 0; }
  .section-heading { align-items: flex-start; gap: 10px; }
  .see-all { font-size: 13px; }
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: 1fr; }
  .benefits { margin-top: 18px; padding: 10px 18px; grid-template-columns: 1fr; border-radius: 0; }
  .benefit-card { padding: 14px 0; }
  .footer-shell { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .brand img { width: 175px; }
  .hero-copy h1 { font-size: 32px; }
  .discipline-grid { gap: 10px; }
  .discipline-card { min-height: 124px; }
  .material-card { grid-template-columns: 104px 1fr; gap: 12px; }
  .material-thumb { height: 116px; }
  .material-info h3 { font-size: 16px; }
  .footer-shell { grid-template-columns: 1fr; }
}


/* Home v3 - ajustes de fidelidade visual */
.site-header { position: static !important; top: auto !important; }
.header-shell { box-sizing: border-box; }
.hero-section { clear: both; }
@media (min-width: 1181px) {
  .hero-copy h1 { max-width: 680px; }
  .hero-art img { width: 690px; }
}


/* Home v4 - ajuste fino para aproximar da referência oficial */
@media (min-width: 1181px) {
  .header-shell {
    max-width: 1536px;
    min-height: 112px;
    padding: 12px 42px 10px;
    grid-template-columns: 318px minmax(620px, 1fr) 350px;
    gap: 22px;
  }
  .brand img { width: 222px; }
  .header-center { gap: 8px; }
  .main-nav { gap: 30px; font-size: 14px; }
  .search-bar { height: 45px; }
  .header-actions { padding-top: 0; gap: 12px; }
  .header-actions .btn-outline { min-width: 112px; }
  .header-actions .btn-primary { min-width: 218px; }

  .hero-shell {
    height: 300px;
    padding: 31px 28px 0;
    grid-template-columns: 600px minmax(0, 1fr);
    gap: 22px;
  }
  .hero-copy h1 {
    max-width: 600px;
    font-size: 42px;
    line-height: 1.06;
    letter-spacing: -0.045em;
  }
  .hero-text {
    max-width: 670px;
    margin-top: 11px;
    margin-bottom: 23px;
  }
  .hero-art {
    justify-content: flex-end;
    align-items: flex-end;
  }
  .hero-art img {
    width: 790px;
    max-height: 294px;
    transform: translate(-8px, 3px);
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .header-shell {
    grid-template-columns: 270px minmax(560px, 1fr) 330px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero-shell {
    grid-template-columns: 560px minmax(0, 1fr);
  }
  .hero-copy h1 { max-width: 560px; font-size: 39px; }
  .hero-art img { width: 690px; transform: translate(-2px, 3px); }
}


/* Correção: cards da Home exibem a capa real cadastrada no painel */
.material-thumb.has-cover {
  padding: 6px;
  background: #fff;
  overflow: hidden;
}
.material-thumb.has-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  border-radius: 4px;
  background: #fff;
}


/* Correção mobile v8 — logo e cabeçalho */
.brand{min-width:0;}
.brand img{object-fit:contain;}
.brand-text-fallback{display:none;color:var(--azul-profundo);font-weight:900;font-size:22px;line-height:1.05;}
.brand img:not([src]), .brand img[src=""]{display:none;}
.brand img:not([src]) + .brand-text-fallback, .brand img[src=""] + .brand-text-fallback{display:inline-flex;}
@media (max-width: 820px){
  body{overflow-x:hidden;}
  .site-header{overflow:visible;}
  .header-shell{width:100%;max-width:100%;min-height:78px;padding:14px 22px;align-items:center;}
  .brand{max-width:260px;}
  .brand img{width:210px;max-width:72vw;height:auto;}
  .menu-toggle span{width:34px;height:5px;margin:5px 0;background:var(--azul-profundo);}
}
@media (max-width: 480px){
  .header-shell{padding:14px 18px;}
  .brand{max-width:240px;}
  .brand img{width:198px;max-width:68vw;}
}

/* =========================================================
   Autenticação v9 — login e cadastro
   ========================================================= */
.auth-page {
  padding: 34px 28px 18px;
  background:
    radial-gradient(circle at 8% 14%, rgba(35, 189, 197, .10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(114, 189, 63, .08), transparent 24%),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 72%);
}

.auth-shell {
  width: min(1320px, 100%);
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfeaf0;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(6, 43, 95, .10);
}

.auth-page-cadastro .auth-shell { min-height: 760px; }

.auth-intro {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 52px 48px 42px;
  color: var(--azul-profundo);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,249,249,.93)),
    linear-gradient(135deg, #eefafb, #f9fefb);
  border-right: 1px solid #e0ecef;
}

.auth-intro::before,
.auth-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-intro::before {
  width: 330px;
  height: 330px;
  right: -160px;
  top: -145px;
  background: rgba(15, 166, 183, .08);
}

.auth-intro::after {
  width: 250px;
  height: 250px;
  left: -125px;
  bottom: -120px;
  background: rgba(114, 189, 63, .08);
}

.auth-intro-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.auth-eyebrow,
.auth-panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-bottom: 13px;
  color: #008ea1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  margin-right: 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--turquesa), var(--verde));
}

.auth-intro h1 {
  max-width: 520px;
  margin: 0;
  color: var(--azul-profundo);
  font-size: clamp(36px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 900;
}

.auth-intro > .auth-intro-content > p {
  max-width: 510px;
  margin: 18px 0 31px;
  color: #284d75;
  font-size: 16px;
  line-height: 1.62;
}

.auth-benefit-list {
  display: grid;
  gap: 15px;
}

.auth-benefit-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.auth-benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #008fa3;
  background: rgba(15, 166, 183, .10);
  border: 1px solid rgba(15, 166, 183, .12);
  border-radius: 50%;
}

.auth-benefit-icon svg { width: 25px; height: 25px; }
.auth-benefit-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--azul-profundo);
  font-size: 15px;
}
.auth-benefit-item small {
  display: block;
  color: #385a7e;
  font-size: 13px;
  line-height: 1.45;
}

.auth-intro-art {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  width: 210px;
  height: 148px;
  opacity: .9;
  pointer-events: none;
}

.auth-art-book {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 136px;
  height: 82px;
  border: 8px solid #0b4f81;
  border-top-width: 5px;
  border-radius: 4px 4px 18px 18px;
  background: linear-gradient(90deg, #fff 49%, #e8f7f7 50%);
  transform: skewY(-4deg);
  box-shadow: 0 10px 18px rgba(6,43,95,.12);
}
.auth-art-book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #b8dfe2;
}
.auth-art-book::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 21px;
  height: 2px;
  background: #c8dde5;
  box-shadow: 0 13px 0 #c8dde5, 0 26px 0 #c8dde5;
}

.auth-art-pencil {
  position: absolute;
  left: 29px;
  bottom: 30px;
  width: 19px;
  height: 108px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(90deg, #20bdc4 0 33%, #0f8ea9 33% 67%, #38cbd0 67%);
  transform: rotate(18deg);
  box-shadow: 0 7px 13px rgba(6,43,95,.13);
}
.auth-art-pencil::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  border-left: 10px solid transparent;
  border-right: 9px solid transparent;
  border-top: 23px solid #e6c593;
}
.auth-art-pencil::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -20px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 9px solid #193f63;
}

.auth-art-circle {
  position: absolute;
  left: 12px;
  top: 3px;
  width: 58px;
  height: 58px;
  border: 8px solid rgba(114, 189, 63, .55);
  border-radius: 50%;
}
.auth-art-dots {
  position: absolute;
  right: 8px;
  top: 3px;
  width: 72px;
  height: 34px;
  background-image: radial-gradient(circle, rgba(15,166,183,.35) 2px, transparent 3px);
  background-size: 14px 14px;
}

.auth-panel-wrap {
  min-width: 0;
  padding: 26px 46px 36px;
  background: #fff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  border-bottom: 1px solid #dbe6ec;
}

.auth-tabs a {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #385579;
  font-size: 15px;
  font-weight: 800;
}
.auth-tabs a svg { width: 21px; height: 21px; }
.auth-tabs a.active { color: #008da1; }
.auth-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: var(--turquesa);
}

.auth-panel {
  width: min(620px, 100%);
  margin: 0 auto;
}
.auth-panel-wide { width: min(700px, 100%); }
.auth-panel-heading { margin-bottom: 22px; }
.auth-panel-kicker {
  min-height: 0;
  margin: 0 0 5px;
  letter-spacing: .04em;
  text-transform: none;
}
.auth-panel-heading h2 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: 29px;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.auth-panel-heading p {
  margin: 8px 0 0;
  color: #426081;
  font-size: 15px;
  line-height: 1.5;
}

.auth-form { display: grid; gap: 17px; }
.auth-field { min-width: 0; }
.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--azul-profundo);
  font-size: 14px;
  font-weight: 800;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbdbe5;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-input-wrap:focus-within {
  border-color: var(--turquesa);
  box-shadow: 0 0 0 4px rgba(15,166,183,.10);
  background: #fcffff;
}
.auth-input-icon {
  width: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #54708d;
}
.auth-input-icon svg { width: 21px; height: 21px; }
.auth-input-wrap input,
.auth-input-wrap select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 15px 0 0;
  color: #173f70;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 15px;
}
.auth-input-wrap input::placeholder { color: #7b8fa5; }
.auth-input-wrap select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
}
.auth-select-wrap::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #41617e;
  border-bottom: 2px solid #41617e;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-grid-location { grid-template-columns: minmax(0, 1.55fr) minmax(150px, .45fr); }

.btn-auth-primary {
  width: 100%;
  min-height: 53px;
  margin-top: 3px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #087f92, #0aa6b1);
  box-shadow: 0 9px 20px rgba(8,127,146,.20);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.btn-auth-primary:hover {
  background: linear-gradient(135deg, #076f81, #078f9d);
  box-shadow: 0 12px 24px rgba(8,127,146,.25);
}
.btn-auth-primary svg { width: 20px; height: 20px; }

.auth-switch {
  margin: 23px 0 0;
  text-align: center;
  color: #315576;
  font-size: 14px;
}
.auth-switch a {
  color: #008da1;
  font-weight: 900;
}
.auth-switch a:hover { text-decoration: underline; }

.alert {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.45;
}
.alert p { margin: 0; }
.alert p + p { margin-top: 5px; }
.alert-error {
  color: #8c2525;
  background: #fff2f2;
  border-color: #f2caca;
}
.alert-info {
  color: #1f5673;
  background: #eff9fc;
  border-color: #cce8ef;
}

.auth-trust-strip {
  width: min(1320px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #eef9fa;
  border: 1px solid #e2f1f2;
  border-radius: 12px;
}
.auth-trust-strip > div {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  padding: 13px 22px;
}
.auth-trust-strip > div + div { border-left: 1px solid #dcebed; }
.auth-trust-strip span {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  align-self: center;
  color: #008da1;
  background: #d4f0ef;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}
.auth-trust-strip strong {
  align-self: end;
  color: var(--azul-profundo);
  font-size: 14px;
}
.auth-trust-strip small {
  align-self: start;
  margin-top: 3px;
  color: #385a7e;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: minmax(340px, .8fr) minmax(480px, 1.2fr); }
  .auth-intro { padding: 45px 34px 38px; }
  .auth-intro h1 { font-size: 38px; }
  .auth-panel-wrap { padding: 24px 32px 34px; }
  .auth-intro-art { opacity: .55; right: -15px; }
  .auth-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-trust-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid #dcebed; }
  .auth-trust-strip > div:nth-child(4) { border-top: 1px solid #dcebed; }
}

@media (max-width: 860px) {
  .auth-page { padding: 22px 18px 12px; }
  .auth-shell,
  .auth-page-cadastro .auth-shell {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 15px;
  }
  .auth-intro {
    min-height: 0;
    padding: 32px 30px;
    border-right: 0;
    border-bottom: 1px solid #e0ecef;
  }
  .auth-intro h1 { max-width: 650px; font-size: 34px; }
  .auth-intro > .auth-intro-content > p { max-width: 670px; margin: 13px 0 22px; }
  .auth-benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; }
  .auth-intro-art { display: none; }
  .auth-panel-wrap { padding: 20px 30px 32px; }
  .auth-tabs { margin-bottom: 24px; }
}

@media (max-width: 620px) {
  .auth-page { padding: 14px 12px 8px; }
  .auth-shell { border-radius: 12px; }
  .auth-intro { padding: 27px 22px; }
  .auth-eyebrow { margin-bottom: 9px; font-size: 12px; }
  .auth-intro h1 { font-size: 29px; line-height: 1.12; }
  .auth-intro > .auth-intro-content > p { font-size: 14px; line-height: 1.5; }
  .auth-benefit-list { grid-template-columns: 1fr; gap: 12px; }
  .auth-benefit-item:nth-child(n+3) { display: none; }
  .auth-benefit-icon { width: 43px; height: 43px; }
  .auth-benefit-item { grid-template-columns: 43px 1fr; gap: 12px; }
  .auth-panel-wrap { padding: 17px 20px 28px; }
  .auth-tabs a { min-height: 49px; font-size: 14px; }
  .auth-panel-heading { margin-bottom: 19px; }
  .auth-panel-heading h2 { font-size: 25px; }
  .form-grid-2,
  .form-grid-location { grid-template-columns: 1fr; gap: 17px; }
  .auth-input-wrap { min-height: 50px; }
  .auth-input-wrap input,
  .auth-input-wrap select { height: 48px; font-size: 14px; }
  .auth-trust-strip { grid-template-columns: 1fr; border-radius: 10px; }
  .auth-trust-strip > div { min-height: 68px; padding: 10px 18px; }
  .auth-trust-strip > div + div { border-left: 0; border-top: 1px solid #dcebed; }
  .auth-trust-strip > div:nth-child(n+3) { display: none; }
}

@media (max-width: 400px) {
  .auth-intro h1 { font-size: 26px; }
  .auth-panel-wrap { padding-left: 16px; padding-right: 16px; }
  .auth-tabs a { gap: 6px; }
  .auth-tabs a svg { width: 18px; height: 18px; }
}

/* =========================================================
   Home v10 — disciplinas dinâmicas, tipos e Educação Infantil
   ========================================================= */
.home-catalog-section { padding-top: 19px; }
.home-section-heading { align-items: flex-end; margin-bottom: 12px; }
.home-section-heading > div { min-width: 0; }
.home-section-heading p {
  margin: 5px 0 0;
  color: var(--texto-suave);
  font-size: 13px;
  line-height: 1.4;
}

.discipline-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.discipline-card {
  min-height: 116px;
  padding: 13px 10px 12px;
}
.discipline-icon { font-size: 34px; height: 38px; margin-bottom: 7px; }
.discipline-icon.orange, .material-type-icon.orange { color: #e58a28; }
.discipline-icon.purple, .material-type-icon.purple { color: #7656c5; }

.material-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.material-type-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--borda-2);
  border-radius: 11px;
  box-shadow: var(--sombra-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.material-type-card:hover {
  transform: translateY(-2px);
  border-color: #c8e3e8;
  box-shadow: 0 10px 25px rgba(6,43,95,.12);
}
.material-type-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef8fb;
  font-size: 28px;
}
.material-type-icon.blue { color: #287ce1; background: #edf5ff; }
.material-type-icon.blue-light { color: #2b7fe7; background: #edf6ff; }
.material-type-icon.teal { color: #0e9eaa; background: #e7f8f7; }
.material-type-icon.green { color: #5ba82f; background: #eff9e9; }
.material-type-card strong { display: block; color: var(--azul-profundo); font-size: 15px; }
.material-type-card small { display: block; margin-top: 4px; color: var(--texto-suave); font-size: 12px; line-height: 1.35; }
.material-type-arrow { color: var(--turquesa); font-size: 22px; font-weight: 900; }

.early-childhood-panel {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.45fr);
  overflow: hidden;
  border: 1px solid #cfe8e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6,43,95,.08);
}
.early-childhood-intro {
  position: relative;
  min-height: 244px;
  padding: 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(114,189,63,.16), transparent 28%),
    linear-gradient(145deg, #eaf9f7, #f6fcf9);
}
.early-childhood-intro::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(15,166,183,.09);
}
.early-childhood-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #008d9e;
  background: #d5f1ee;
  border-radius: 50%;
  font-size: 30px;
}
.early-childhood-kicker {
  margin: 15px 0 5px;
  color: #008d9e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.early-childhood-intro h2 { margin: 0; color: var(--azul-profundo); font-size: 27px; }
.early-childhood-intro > p:not(.early-childhood-kicker) {
  max-width: 430px;
  margin: 9px 0 18px;
  color: #315576;
  font-size: 14px;
  line-height: 1.5;
}
.early-childhood-intro .btn { position: relative; z-index: 2; }
.early-childhood-content {
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  align-items: start;
  gap: 28px;
}
.early-childhood-content h3 { margin: 0 0 12px; color: var(--azul-profundo); font-size: 15px; }
.early-childhood-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.early-childhood-types a {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: var(--azul-profundo);
  background: #f7fbfc;
  border: 1px solid #deebef;
  border-radius: 10px;
  font-size: 13px;
}
.early-childhood-types a:hover { border-color: #b9dfe1; background: #f1faf9; }
.early-childhood-types span {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  color: #008d9e;
  background: #dff4f1;
  border-radius: 10px;
  font-size: 20px;
}
.early-childhood-stages { display: flex; flex-wrap: wrap; gap: 9px; }
.early-childhood-stages a {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #08798a;
  background: #e8f8f6;
  border: 1px solid #cfeae6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.early-childhood-stages a:hover { color: #fff; background: var(--turquesa); border-color: var(--turquesa); }

@media (max-width: 1180px) {
  .discipline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .material-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .early-childhood-panel { grid-template-columns: minmax(270px, .75fr) 1.25fr; }
  .early-childhood-content { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 820px) {
  .home-section-heading { align-items: flex-start; }
  .discipline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-type-grid { grid-template-columns: 1fr; }
  .early-childhood-panel { grid-template-columns: 1fr; }
  .early-childhood-intro { min-height: 0; padding: 25px 24px; }
  .early-childhood-content { padding: 23px 24px; }
}

@media (max-width: 480px) {
  .home-section-heading { display: grid; gap: 8px; }
  .home-section-heading .see-all { justify-self: start; }
  .discipline-grid { gap: 10px; }
  .discipline-card { min-height: 111px; padding-left: 7px; padding-right: 7px; }
  .discipline-card strong { font-size: 13px; }
  .material-type-card { grid-template-columns: 46px minmax(0, 1fr) 18px; padding: 12px; }
  .material-type-icon { width: 46px; height: 46px; font-size: 25px; }
  .early-childhood-types { grid-template-columns: 1fr; }
  .early-childhood-content { padding: 21px 18px; }
}

.header-logout-form{margin:0;display:inline-flex;}
.header-logout-form .btn{font:inherit;cursor:pointer;}
@media (max-width:820px){.header-logout-form{width:100%;}.header-logout-form .btn{width:100%;}}

/* Busca inteligente do cabeçalho */
.header-search-wrap{position:relative;min-width:0;z-index:40}
.header-search-wrap .search-bar{width:100%}
.search-suggestions{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:80;background:#fff;border:1px solid #d3e3eb;border-radius:14px;box-shadow:0 18px 44px rgba(5,40,90,.16);padding:7px;max-height:370px;overflow:auto;text-align:left}
.search-suggestions[hidden]{display:none!important}
.search-suggestion-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;width:100%;padding:10px 11px;border:0;border-radius:10px;background:#fff;color:var(--azul-profundo);text-decoration:none;cursor:pointer}
.search-suggestion-item:hover,.search-suggestion-item.is-active{background:#eefafb}
.search-suggestion-icon{width:38px;height:38px;border-radius:10px;background:#daf5f3;color:#078b98;display:grid;place-items:center;font-size:18px;font-weight:900}
.search-suggestion-copy{min-width:0}
.search-suggestion-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.25}
.search-suggestion-copy small{display:block;margin-top:3px;color:#57728f;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggestions-status{padding:14px;color:#57728f;font-size:13px;text-align:center}
@media (max-width:980px){.header-search-wrap{width:100%}.search-suggestions--header{position:static;margin-top:8px}}

/* Navegação SEO global */
.nav-mega-wrap{position:relative}.nav-mega-wrap>a{display:flex;align-items:center;gap:4px}.nav-mega{position:absolute;z-index:120;top:calc(100% + 14px);left:50%;transform:translateX(-38%);display:none;grid-template-columns:repeat(3,minmax(220px,1fr));gap:24px;width:min(820px,88vw);padding:24px;border:1px solid #dce9ef;border-radius:16px;background:#fff;box-shadow:0 22px 50px rgba(6,45,99,.18)}.nav-mega-wrap:hover .nav-mega,.nav-mega-wrap:focus-within .nav-mega{display:grid}.nav-mega>div{display:grid;align-content:start;gap:3px}.nav-mega strong{margin-bottom:8px;color:#062d63;font-size:14px}.nav-mega a{padding:7px 8px;border-radius:8px;color:#315b78;font-size:13px;text-decoration:none}.nav-mega a:hover{background:#eefafb;color:#007f90}.footer-shell{grid-template-columns:minmax(240px,1.2fr) repeat(4,minmax(150px,1fr))}.footer-col-seo a{font-size:13px}
@media(max-width:1000px){.nav-mega{position:static;transform:none;width:100%;grid-template-columns:1fr;box-shadow:none;margin-top:6px}.nav-mega-wrap:hover .nav-mega{display:none}.nav-mega-wrap:focus-within .nav-mega{display:grid}.footer-shell{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.footer-shell{grid-template-columns:1fr}}
