/* ===========================
   Tema: Rosa Claro & Preto
   - Primária: rosa (#ff6aa5)
   - Secundária: preto (#0b0b0f)
   - Fontes "quadradas": Chakra Petch + Montserrat
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Montserrat:wght@400;600;700&display=swap');

:root{
  --primary:#ff6aa5;
  --primary-100:#ffd7e6;
  --primary-200:#fbc3d7;
  --primary-300:#f8a1c4;

  --black:#0b0b0f;
  --black-900:#0f1016;
  --black-800:#141622;
  --ink:#12131b;

  --text-dark:#0b0b0f;      /* texto sobre fundos claros */
  --text-light:#f7e8ef;     /* texto sobre fundos escuros */

  --muted:#b992a3;          /* textos auxiliares */
  --ok:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;

  --radius:8px;             /* cantos quadrados sutis */
  --shadow:0 8px 22px rgba(0,0,0,.30);

  --speed:160ms;            /* transições leves */
}

/* Reset básico */
*{box-sizing:border-box}
html, body { height: 100%; }
body{
  margin:0;
  background: var(--black);
  color: var(--text-light);
  font-family: "Chakra Petch", "Montserrat", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.15px;
}

/* Links e botões */
a{ color: var(--primary); text-decoration: none; }
a:hover{ opacity:.9 }

/* Containers */
.container{ max-width:1200px; margin:0 auto; padding:24px }

/* Navbar */
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: linear-gradient(90deg, var(--black) 0%, #1a1622 35%, rgba(255,106,165,0.25) 75%, var(--primary) 100%);
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(140%) blur(6px);
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; color:var(--primary);
}

/* Pills */
.tag{
  display:inline-block; padding:4px 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); color: var(--text-light);
  font-size:12px;
}

/* Botões minimalistas e quadrados */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: var(--radius);
  border:1px solid var(--primary);
  background: var(--primary);
  color: var(--black);
  padding:10px 14px; cursor:pointer;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease, color var(--speed) ease;
  box-shadow: none;
  font-weight:600;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.secondary{
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn.ghost{
  background: rgba(255,255,255,.06); color: var(--text-light);
  border-color: rgba(255,255,255,.12);
}

/* Inputs */
.input{
  width:100%; padding:12px 14px; border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: var(--black-900);
  color: var(--text-light);
  outline:none;
  transition: border var(--speed) ease, box-shadow var(--speed) ease;
}
.input::placeholder{ color: #9c8090 }
.input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,106,165,.25);
}

/* Cards genéricos */
.card{
  background: var(--black-800);
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:20px;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
}
.card:hover{ transform: translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.45); }
.card h3{ margin:0 0 6px 0; font-size:18px; color: var(--primary); }
.card p{ margin:0; color: var(--muted); font-size:14px }

/* GRID do menu inicial (cards médios, distribuição uniforme) */
.grid{ display:grid; gap:16px; }
.grid--menu{ grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
.card--menu{
  min-height: 140px;
  display:flex; flex-direction:column; gap:10px; justify-content:space-between;
}
.card__meta{ display:flex; align-items:center; justify-content:space-between; opacity:.9 }

/* Login — retângulo central com logo */
.login-wrap{
  min-height: calc(100vh - 64px);
  display:flex; align-items:center; justify-content:center;
}
.login-card{
  width: 420px; max-width: 90vw;
  background: var(--primary-100);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-dark);
  padding: 28px;
}
.login-card .logo{
  display:block; margin: 0 auto 10px auto; width: 180px; height:auto;
}
.login-card h2{ color: var(--black); margin:10px 0 4px 0; }
.login-card .helper{ color: #6a3d4f }
.login-card .input{
  background: white; color: var(--text-dark);
  border-color: #f2b6cc;
}
.login-card .btn{
  background: var(--black); color: var(--primary);
  border-color: var(--black);
}

/* Footer */
.footer{
  text-align:center; padding:18px; opacity:.8;
}

/* Modo “claro dentro do escuro”: cartões/áreas em rosa claro com texto escuro */
.surface--light{
  background: var(--primary-100);
  color: var(--text-dark);
  border-color: var(--primary-200);
}
.surface--light h3{ color: var(--black); }

.on-dark{ color: var(--primary); }   /* texto rosa sobre fundo preto */
.on-light{ color: var(--black); }    /* texto preto sobre fundo rosa */

.hidden{ display:none }


/* ===== Navbar aprimorada ===== */
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: linear-gradient(90deg, var(--black) 0%, #1a1622 35%, rgba(255,106,165,0.25) 75%, var(--primary) 100%);
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(140%) blur(6px);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{ width:36px; height:auto; border-radius:6px; box-shadow:0 2px 10px rgba(255,106,165,.25) }
.brand-title{ font-weight:700; color:var(--primary); letter-spacing:.3px }

.nav-actions{ display:flex; align-items:center; gap:10px }

/* Centralizar botão do login e deixá-lo mais bonito */
.actions{ margin-top:8px }
.actions--center{ display:flex; align-items:center; justify-content:center }
.btn--xl{ padding:12px 22px; font-size:16px; border-width:2px }

/* Login pequeno rodapé interno */
.login-foot{ margin-top:8px; text-align:center }


/* Botão de ícone (engrenagem) */
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--primary);
  transition: transform var(--speed) ease, border-color var(--speed) ease, background var(--speed) ease;
}
.icon-btn:hover{ transform: translateY(-1px); border-color: var(--primary); background: rgba(255,106,165,.12); }
.icon-gear{ width:20px; height:20px; display:block }

.nav-actions{ display:flex; align-items:center; gap:10px }
