/* login.css */

/* --- Estilos base (aplicam-se a todas as telas, otimizados para mobile primeiro) --- */
body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #e9edf5;
    font-size: 16px;
    /* Tamanho de fonte base para mobile */
}

.login-container {
    display: flex;
    flex-direction: column;
    /* Em telas pequenas, as seções ficam uma abaixo da outra */
    justify-content: center;
    align-items: center;
    height: auto;
    /* Altura flexível para mobile */
    padding: 20px;
    /* Espaçamento geral para telas menores */
    box-sizing: border-box;
    /* Garante que padding não aumente o tamanho total */
}

.left-section {
    flex: 1;
    padding-left: 0;
    /* Remove padding lateral específico para mobile */
    text-align: center;
    /* Centraliza o texto */
    margin-bottom: 30px;
    /* Espaço entre as seções em mobile */
}


.logo-gradient {
  margin-top: -30px;
    margin-bottom: -10px;
    font-size: 108px;
    font-weight: bold;
    background: linear-gradient(90deg, #082a56, #0e4287, #1156b0, #1871e5);
    /* Altere as cores aqui */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 20px;
    /* Tamanho da descrição ajustado para mobile */
    color: #1c1e21;
    max-width: 90%;
    /* Limita a largura para texto não ficar muito longo */
    margin: 0 auto;
    /* Centraliza a descrição */
}

.right-section {
    flex: none;
    /* Remove o flex grow para mobile, assume a largura total */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Ocupa a largura total disponível */
}

.login-box {
    background: white;
    padding: 20px;
    width: 100%;
    /* Ocupa a largura total do .right-section */
    max-width: 360px;
    /* Limite máximo para o box em telas menores */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    /* Inclui padding na largura total */
}

.login-button {
    width: 100%;
    background-color: #082a56;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.login-button:hover {
    background-color: #0b366e;
}

.register-button {
    background-color: #eb1c91;
    color: white;
    font-size: 17px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

.register-button:hover {
    background-color: #ff23a0;
}

.forgot-link {
    color: #011228;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.error-msg {
    color: red;
    font-size: 14px;
}

.create-page {
    margin-top: 30px;
    /* Mais espaço para separar do box de login */
    font-size: 14px;
    text-align: center;
    padding: 0 10px;
    /* Adiciona um pouco de padding para o texto */
}

/* Estilos para o "olho mágico" na página de login */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* VERSÃO CORRIGIDA E MAIS ROBUSTA para o campo de senha */

/* Garante que o estilo se aplica tanto a input[type="password"] como a input[type="text"] dentro do nosso contentor */
/* VERSÃO ATUALIZADA - Garante que todos os inputs tenham o mesmo estilo base */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    user-select: none; /* Impede que o ícone seja selecionado como texto */
}

/* --- Media Query para Telas Maiores (a partir de 768px, por exemplo) --- */
@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
        /* Lado a lado em telas maiores */
        height: 100vh;
        /* Retorna à altura total da viewport */
        padding: 0;
        /* Remove padding geral para telas maiores */
    }

    .left-section {
        padding-left: 90px;
        /* Restaura o padding original */
        text-align: left;
        /* Restaura o alinhamento original */
        margin-bottom: 0;
        /* Remove o margin-bottom */
        flex: 1;
        /* Retorna o flex grow */
    }

    .logo {
        font-size: 56px;
        /* Restaura o tamanho original do logo */
    }

    .description {
        font-size: 28px;
        /* Restaura o tamanho original da descrição */
        max-width: 500px;
        /* Restaura a largura máxima original */
        margin: 0;
        /* Remove o margin auto */
    }

    .right-section {
        flex: 1;
        /* Retorna o flex grow */
    }

    .login-box {
        width: 360px;
        /* Restaura a largura original do box */
        margin: 0;
        /* Remove o margin auto */
    }

    .create-page {
        margin-top: 20px;
        /* Restaura o margin-top original */
        padding: 0;
    }
}


/* === As regras de responsividade abaixo foram ignoradas pois parecem ser para outra página === */
/* === (Mantenha-as se souber que são usadas em outras partes do seu site) === */

/* @media (max-width: 768px) {
  .header { flex-direction: column; align-items: flex-start; }
  .search { width: 100%; margin: 10px 0; }
  .nav-btn { width: 100%; margin-bottom: 10px; }
  .main, .comunidades-box, .comunidade-lista { flex-direction: column; align-items: center; }
  .comunidade { width: 100% !important; margin-bottom: 20px; }
  .footer { flex-direction: column; text-align: center; }
  .logo-img { height: 40px; }
  .user-greeting { flex-direction: column; align-items: flex-start; gap: 8px; }
}

body { font-size: 16px; padding: 10px; }

.header, .footer, .main, .container, .form-group, .comunidade-lista, .comunidade {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

img { max-width: 100%; height: auto; }

@media (min-width: 768px) {
  .comunidade-lista { display: flex; flex-wrap: wrap; gap: 20px; }
  .comunidade { width: calc(50% - 10px); }
}

@media (min-width: 1024px) {
  .comunidade { width: calc(25% - 15px); }
} */

/* === Responsividade básica === */
.responsive-container {
  padding: 10px;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .responsive-container {
    padding: 8px;
  }
  .sidebar-left,
  .sidebar-right {
    display: none;
  }
  .content {
    width: 100% !important;
  }
  .post-retro, .form-resposta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .responsive-container {
    padding: 6px;
  }
  header, footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .user-greeting {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* === Ajustes gerais para mobile e tablets === */
@media (max-width: 768px) {
  header, footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-greeting, .nav-btn, .create-btn {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
  }

  .sidebar-left, .sidebar-right {
    display: none !important;
  }

  .content {
    width: 100% !important;
  }

  .post-retro,
  .form-resposta,
  .resposta-retro {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .galeria-postagem {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .galeria-postagem img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  textarea,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  button {
    width: 100% !important;
    box-sizing: border-box;
  }

  .participate-input {
    flex-direction: column;
  }

  .icon-upload {
    margin-bottom: 10px;
  }

  .post-actions-bar {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 160px;
    height: auto;
  }

  .responsive-container {
    padding: 6px;
  }

  h2, h3, h4, p, label, button {
    font-size: 90%;
  }

  .btn-principal,
  .btn-secundario {
    font-size: 90%;
    padding: 10px;
  }
}


/* === MENU HAMBÚRGUER === */
.hamburguer-icon {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #eb1c91;
  margin: 10px;
}

.menu-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 10px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

.menu-mobile a {
  margin: 8px 0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.fechar-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 22px;
  color: #eb1c91;
  cursor: pointer;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .hamburguer-icon {
    display: block;
  }

  .header .nav-btn,
  .header .create-btn {
    display: none !important;
  }
}


/* === Animações de entrada/saída do menu === */
.menu-mobile {
  display: none;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-mobile.menu-ativo {
  display: flex !important;
  opacity: 1;
  transform: translateX(0);
}

.menu-mobile.menu-fechado {
  opacity: 0;
  transform: translateX(-20px);
}
