 body { /* Estilos do corpo da página */
      font-family: 'Roboto', sans-serif;
      background: #ddd;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
    }
    .container { /* Estilos do container principal */
      background: #fff;
      padding: 30px;
      border-radius: 10px;
      width: 380px;
      text-align: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .form-group { /* Espaçamento entre grupos do formulário */
      margin-bottom: 15px;
      text-align: left;
    }
    input { /* Estilos dos inputs */
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      border-radius: 5px;
      border: 1px solid #ccc;
      box-sizing: border-box;
    }
    .btn-cadastrar, .btn-acessar, .btn-login { /* Estilos dos botões */
      background: #333;
      color: #fff;
      border: none;
      padding: 10px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 15px;
      width: 100%;
    }
    .hidden { /* Classe para esconder elementos */
      display: none;
    }
    .logo img { /* Estilo da logo */
      width: 60px;
    }
    .logo h1 { /* Estilo do texto da logo */
      font-size: 14px;
      font-weight: 500;
    }
    .termos-texto { /* Estilo do texto dos termos */
      text-align: justify;
      font-size: 14px;
      margin-top: 20px;
      line-height: 1.4em;
    }
    /* Quando a tela de termos for exibida, alinhar o conteúdo à esquerda
       e aumentar a largura para leitura confortável */
    #tela-termos {
      text-align: left; /* sobrescreve o text-align:center da .container */
      width: 520px;
      max-width: calc(100% - 40px);
      padding: 24px;
    }
    #tela-termos .logo { /* manter a logo centralizada nessa tela */
      text-align: center;
    }
    .back-link, .register-link a { /* Estilo dos links */
      color: #007bff;
      text-decoration: none;
      font-size: 14px;
      display: block;
      margin-top: 20px;
    }
    .register-link { /* Estilo do bloco de registro */
      margin-top: 15px;
      font-size: 14px;
      text-align: center;
    }
    #sucesso h2 { /* Estilo do título de sucesso */
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 15px;
    }
 

/* Responsividade adicionada automaticamente pelo assistente */

/* --- ADIÇÕES: media queries para celular/tablet (inseridas automaticamente) --- */
/* Breakpoints: tablet up to 1024px, tablet/phone up to 768px, mobile up to 412px */
/* These rules intentionally adjust layout and scale fonts/sizes while preserving original colors and spacing */

@media (max-width: 1024px) {
  html { font-size: 98%; }
  /* cards/grid adjustments */
  .cards { gap: 14px; padding-left: 12px; padding-right: 12px; }
  .card { width: calc(33.33% - 14px) !important; height: auto; }
  /* footer & sections */
  footer { padding: 24px 20px; font-size: 1.1rem; }
  .footer-logo img { max-height: 120px; }
  .sobre p { font-size: 1.6rem; }
  main { padding: 30px 16px; }
}

@media (max-width: 768px) {
  html { font-size: 96%; }
  body { padding-left: 8px; padding-right: 8px; }
  /* header stacks elements, nav becomes a full-width row (no hamburger) */
  header { flex-direction: column; align-items: center; height: auto; padding: 10px; }
  header .logo { margin-bottom: 8px; }
  header .logo img { max-height: 56px; }
  nav { order: 3; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 8px 0; background: transparent; position: static; }
  nav a { display: block; width: 100%; text-align: center; padding: 10px 6px; white-space: normal; box-sizing: border-box; }

  /* buttons / actions */
  .buttons { width: 100%; justify-content: center; gap: 8px; flex-wrap: wrap; }
  .buttons button { width: auto; padding: 10px 16px; font-size: 0.95rem; }

  /* cards and content stack */
  .cards { gap: 12px; justify-content: center; }
  .card { width: calc(50% - 12px) !important; height: auto; min-width: unset; }
  .card p { font-size: 1.4rem; margin-bottom: 18px; }

  /* sobre section stack */
  .sobre-grid { flex-direction: column; gap: 16px; }
  .sobre p { font-size: 1.4rem; }

  /* forms and containers */
  .container, .project-row, .project-text { padding-left: 12px; padding-right: 12px; }
  .container { max-width: 95%; }

  /* admin / login specific reductions */
  .admin-panel, .admin-container-large { width: 100% !important; max-width: 720px; padding: 20px; }
  .admin-menu { padding-left: 20px; gap: 18px; }
  .admin-button { width: 100%; max-width: none; }

  .container { padding: 20px; }

  /* news boxes become full width */
  .pagina-noticias .news-box, .pagina-noticias .news-img-box, .pagina-noticias .comments-box { width: 100% !important; max-width: 100%; }

  /* forms */
  input, textarea { font-size: 1rem; }
}

@media (max-width: 412px) {
  html { font-size: 92%; }
  header { padding: 8px 8px; }
  header .logo img { max-height: 48px; }

  /* nav becomes stacked and compact */
  nav { display: flex; width: 100%; }
  nav a { padding: 10px 8px; font-size: 0.95rem; }

  .cards { gap: 10px; padding: 8px; }
  .card { width: 100% !important; height: auto; }

  main h1 { font-size: 1.6rem; margin-bottom: 20px; }
  .sobre p { font-size: 1.2rem; }
  .card p { font-size: 1.1rem; margin-bottom: 12px; }

  /* admin and login adjustments */
  .admin-panel { width: 100% !important; margin: 0 8px; padding: 16px; }
  .container { padding: 14px; }
  .login .container, .container { width: calc(100% - 28px); }

  /* make images fluid */
  img, picture, video { max-width: 100%; height: auto; display: block; }

  /* reduce footer size */
  footer { padding: 18px 12px; font-size: 1rem; }
}
/* --- FIM DAS ADIÇÕES RESPONSIVAS --- */
