/* Organiza Fácil — telas de acesso e estrutura do app */

/* ---------- Splash ---------- */
.splash {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: linear-gradient(180deg, #014410 0%, #0c6a16 55%, #1a8e1a 100%);
}
.splash img { width: 150px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.splash .loader { border-color: rgba(255,255,255,.25); border-top-color: #fff; }

/* ---------- Telas de acesso (fundo branco + onda verde) ---------- */
.auth {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: #fff; position: relative; overflow: hidden;
}
.auth-body {
  flex: 1; width: 100%; max-width: 440px; margin: 0 auto;
  padding: calc(28px + var(--safe-t)) 24px 18px; display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.auth-logo { width: min(230px, 66%); margin: 8px auto 0; }
.auth-logo.sm { width: 170px; margin-top: 0; }
.auth h1 { font-size: 22px; font-weight: 700; color: var(--verde-800); margin-top: 22px; }
.auth .sub { color: var(--texto-2); margin-top: 4px; font-size: 14px; }
.auth form { margin-top: 22px; }
.auth .voltar {
  align-self: flex-start; border: 0; background: var(--verde-050); color: var(--verde-600);
  width: 40px; height: 40px; border-radius: 12px; font-size: 22px; display: grid; place-items: center; cursor: pointer;
}
.auth-footer { position: relative; z-index: 1; padding: 6px 16px calc(14px + var(--safe-b)); }

.welcome .auth-body { justify-content: center; text-align: center; }
.welcome .slogan {
  font-size: 22px; font-weight: 600; color: var(--verde-800); line-height: 1.3; margin: 34px auto 0; max-width: 300px;
}
.welcome .dots { display: flex; gap: 6px; justify-content: center; margin: 22px 0 0; }
.welcome .dots span { width: 8px; height: 8px; border-radius: 50%; background: #cfe3cb; }
.welcome .dots span:first-child { background: var(--verde-500); width: 22px; border-radius: 6px; }
.welcome .botoes { margin-top: auto; padding-top: 40px; display: grid; gap: 12px; }
.onda {
  position: absolute; left: 0; right: 0; bottom: 0; height: 210px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90px at 30% 0, #fff 98%, transparent 100%) top / 100% 90px no-repeat,
    linear-gradient(180deg, #e6f4e1 0%, #d4ecca 100%);
}
.welcome .onda { height: 300px; }
.link-row { text-align: center; margin-top: 18px; font-size: 14px; color: var(--texto-2); }
.esqueci { display: block; text-align: right; font-size: 13.5px; margin-top: -4px; }
.convite-box {
  background: var(--verde-050); border: 1px solid #cfe7c6; border-radius: 16px; padding: 16px; margin-top: 18px;
}
.convite-box .row i { font-size: 26px; color: var(--verde-500); }

/* ---------- App: topo ---------- */
.app { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--assin-h) + var(--safe-b) + 20px); }
.topo {
  background: linear-gradient(180deg, #0b2f10 0%, #154a1c 70%, #1b5e20 100%);
  color: #fff; padding: calc(10px + var(--safe-t)) 16px 64px;
  border-radius: 0 0 26px 26px;
}
.topo-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; max-width: 760px; margin: 0 auto; }
.topo-bar button {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08);
  color: #fff; font-size: 24px; display: grid; place-items: center; cursor: pointer;
}
.topo-bar .marca { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.topo-bar .vazio { width: 42px; }
.topo-txt { max-width: 760px; margin: 14px auto 0; }
.topo-txt h1 { font-size: 21px; font-weight: 700; }
.topo-txt p { font-size: 13px; opacity: .8; margin-top: 2px; }
.conteudo { max-width: 760px; margin: -46px auto 0; padding: 0 14px; position: relative; }

.pagina-topo {
  background: #fff; padding: calc(10px + var(--safe-t)) 14px 10px; box-shadow: 0 1px 0 var(--borda);
  position: sticky; top: 0; z-index: 20;
}
.pagina-topo .in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 48px; }
.pagina-topo button.menu {
  width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--texto); cursor: pointer; border-radius: 10px;
}
.pagina-topo .ic {
  width: 36px; height: 36px; border-radius: 50%; background: var(--verde-050); color: var(--verde-500);
  display: grid; place-items: center; font-size: 20px;
}
.pagina-topo h2 { font-size: 17px; font-weight: 600; }
.pagina { max-width: 760px; margin: 0 auto; padding: 16px 14px; }

/* ---------- Menu inferior ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #023a07; padding-bottom: var(--safe-b);
  border-radius: 20px 20px 0 0; box-shadow: 0 -4px 18px rgba(0,0,0,.15);
}
.nav-in { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 760px; margin: 0 auto; height: var(--nav-h); }
.nav button {
  border: 0; background: none; color: rgba(255,255,255,.88); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; position: relative;
}
.nav button i { font-size: 24px; }
.nav button.ativo { color: var(--amarelo); }
.nav button.ativo::after {
  content: ''; position: absolute; bottom: 7px; width: 18px; height: 3px; border-radius: 2px; background: var(--amarelo);
}
.nav button.breve { opacity: .55; }

/* Assinatura VR fixa embaixo do menu */
.nav-assin {
  height: var(--assin-h); display: flex; align-items: center; justify-content: center;
  padding: 0 12px 4px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.14);
}
.assinatura-branca { display: block; width: min(380px, 94%); height: auto; opacity: .92; pointer-events: none; user-select: none; }

/* ---------- Menu lateral ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(8,28,12,.45); z-index: 800; animation: fade .18s; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(310px, 84vw); z-index: 801; background: #fff;
  display: flex; flex-direction: column; animation: entrar .22s ease; padding-top: var(--safe-t);
}
@keyframes entrar { from { transform: translateX(-100%); } }
.drawer-head { padding: 22px 18px 16px; border-bottom: 1px solid var(--borda); }
.drawer-head img { width: 170px; }
.drawer-user { margin-top: 16px; }
.drawer nav { padding: 8px; flex: 1; overflow: auto; }
.drawer nav button {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 12px; border: 0; background: none;
  border-radius: 12px; font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: left;
}
.drawer nav button i { font-size: 22px; color: var(--verde-500); }
.drawer nav button.ativo { background: var(--verde-050); color: var(--verde-700); }
.drawer nav button.sair, .drawer nav button.sair i { color: var(--vermelho); }
.drawer nav .sep { height: 1px; background: var(--borda); margin: 8px 6px; }
.drawer-foot { padding: 12px 10px calc(14px + var(--safe-b)); border-top: 1px solid var(--borda); }

/* ---------- Início ---------- */
.ambiente-card .nome { font-size: 18px; font-weight: 700; color: var(--verde-800); margin-top: 6px; }
.pessoas { display: flex; margin-top: 14px; }
.pessoas .avatar { border: 3px solid #fff; margin-left: -10px; }
.pessoas .avatar:first-child { margin-left: 0; }
.vazio-card { text-align: center; padding: 26px 18px; }
.vazio-card .ic {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center;
  background: var(--verde-050); color: var(--verde-500); font-size: 32px;
}
.vazio-card h3 { font-size: 16px; font-weight: 600; }
.vazio-card p { color: var(--texto-2); font-size: 13.5px; margin-top: 4px; }
.atalho {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 0; border-radius: var(--radius-lg); box-shadow: var(--sombra); padding: 16px;
}
.atalho .ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none;
  background: #fff3e2; color: var(--laranja);
}
.atalho b { display: block; font-weight: 600; }
.atalho span { font-size: 12.5px; color: var(--texto-2); }
.atalho > i { margin-left: auto; color: var(--texto-3); font-size: 20px; }

/* ---------- Compartilhar ---------- */
.link-box {
  background: #f3f7f3; border: 1px dashed var(--borda-2); border-radius: 12px; padding: 12px;
  font-size: 12.5px; word-break: break-all; color: var(--texto-2);
}
.btn-whats { background: #25d366; color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .auth { background: linear-gradient(135deg, #eef8ea, #fff 60%); }
  .auth-body { margin-top: 4vh; margin-bottom: 4vh; background: #fff; border-radius: 24px; box-shadow: var(--sombra-2); flex: none; }
  .onda { display: none; }
  .nav { left: 50%; transform: translateX(-50%); max-width: 760px; bottom: 12px; border-radius: 20px; }
}
