/* --------- RESET BÁSICO --------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* Cores */
:root{
  --brand:#1e7f46;
  --brand-600:#17693a;
  --brand-700:#135830;
  --white:#ffffff;
  --ink:#123321;
  --muted:#587466;
  --line:#cfe7da;
}

/* --------- TELAS --------- */
.screen{ display:none; min-height:100dvh; }
.screen.active{ display:block; }

/* --------- LOGIN --------- */
.screen--login{
  /* gradiente verde */
  background: linear-gradient(165deg, #2aa050 0%, #1e7f46 50%, #186c39 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-wrap{
  width: 100%;
  max-width: 440px;
}

/* logo bem grande (≈ 75% maior que anterior) */
.login-logo{
  display: flex; justify-content: center; margin: 16px 0 6px;
}
.login-logo img{
  width: clamp(160px, 65vw, 260px);
  height: auto;
  display:block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
}

.login-title{
  text-align: center;
  margin: 0 0 18px;
  font-size: clamp(28px, 6.6vw, 48px); /* 1/4 menor que a proposta inicial */
  font-weight: 900;
  letter-spacing: .4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.login-form{
  display: grid; gap: 12px;
}
.login-form input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: var(--white);
  outline: 2px solid rgba(255,255,255,.22);
  backdrop-filter: blur(2px);
  font-size: 16px;
}
.login-form input::placeholder{ color: rgba(255,255,255,.92); }

/* botão entrar: verde mais escuro + contorno branco fino */
.btn{
  appearance: none; border: 0; cursor: pointer;
  padding: 14px 18px; border-radius: 18px;
  font-weight: 900; font-size: 18px;
}
.btn--primary{
  background: var(--brand-700);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.9);       /* contorno branco fino */
  box-shadow: 0 14px 26px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.15) inset;
}
.btn--primary:active{ transform: translateY(1px); }

.forgot-link{
  text-align:center; display:block; margin-top:4px;
  color: var(--white); text-decoration: none; font-weight: 700;
}
.forgot-link:hover{ text-decoration: underline; }

/* --------- DASHBOARD --------- */
.screen--dash{
  background: #fff;
  color: #14402b;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.dash-header{
  position: relative;
  padding: 24px 18px 6px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}
.brand{ display:flex; align-items:center; }
.brand-logo{ width: clamp(180px, 42vw, 320px); height:auto; display:block; }

.welcome{ align-self: end; }
.welcome-title{
  font-size: clamp(16px, 3.8vw, 22px);
  font-weight: 800;
  color: #1c6a3b;
}

/* botão sair pequeno topo direito */
.logout{
  justify-self: end;
  background: #1e7f46; color:#fff; border:0;
  padding: 10px 16px; border-radius: 999px; font-weight:800;
  box-shadow: 0 10px 22px rgba(30,127,70,.22);
}

/* área principal */
.dash-main{ padding: 8px 14px 28px; }

/* ====== GRID DA HOME (ajustada) ====== */
.grid{
  margin: 10px auto 40px;
  width: min(1024px, 94%);
  display: grid;
  grid-template-columns: 1fr;            /* base: 1 coluna */
  gap: 18px;
}
/* 2 colunas em celulares médios+ (ex. iPhone) */
@media (min-width: 380px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 3 colunas em tablet/desktop */
@media (min-width: 900px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* tile */
.tile{
  border: 2px solid #1e7f46;
  border-radius: 28px;
  padding: 28px 20px;
  display: grid;
  place-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .05s ease-out, box-shadow .12s ease-out;
  background: #fff;
}
.tile:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(23,68,46,.08); }
.tile-icon{ width: 48px; height: 48px; display:block; } /* aumente para 64px se quiser maior */
.tile-title{ font-weight:900; font-size: clamp(18px, 4.6vw, 28px); color:#1e7f46; }

/* FAB engrenagem (ícone branco) */
.fab{
  position: fixed; right: 18px; bottom: 18px;
  width: 66px; height: 66px; border-radius: 999px;
  background: #1e7f46; border:0;
  display: none; align-items:center; justify-content: center;
  box-shadow: 0 20px 36px rgba(23,68,46,.25);
}
.fab img{ width: 28px; height: 28px; display:block; filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }
