@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(240, 240, 240);
}


main{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    flex-direction: column;
    background-color: rgb(229, 229, 229);}

/* hero ------------------------------------------ */

main .hero{
    background-color: rgb(229, 229, 229);
    display: flex;
    align-items: center;
    width: 80%;
    height: 680px;
    text-align: center;
    padding: 100px 20px 70px 20px;
    gap: 20px;
}

main .hero .img-hero{
    width: 40%;
    height: 100%;
}

main .hero .img-hero img{
    height: 460px;
}

main .hero .text-hero{
    display: flex;
    flex-direction: column;
    justify-content:space-around;
    align-items: flex-start;
    width: 60%;
    height: 100%;
    text-align: left;
}

h1{
    font-size: 3rem;
    margin-bottom: 5px;
}

h2{
    font-size: 4rem;
}

h2 span{
    padding: 1px 10px;
    margin-left: 5px;
    background: black;
    color: rgb(255, 255, 255);
    font-weight: 700;
}

h4{
    font-size: 1.90rem;
    font-weight: 300;
    margin-top: 5px;
}

main .hero .text-hero p{
    font-size: 1.2rem;
    font-weight: 500;
}
main .hero .text-hero .btn_primary{
    padding: 10px 50px;
    background-color: #CE2020;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.0rem;
    cursor: pointer;
    transition: .3s;
    margin-top: 15px;
}

main .hero .text-hero .btn_primary:hover{
    background-color: #ff0000;
}

/* edições anteriores ------------------------------------------ */ 

main .edicoes-anteriores{
    background-color: rgb(255, 255, 255);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
}

main .edicoes-anteriores .box-edicao{
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 15px 5px;
    text-align: center;
    box-sizing: border-box;
}

main .edicoes-anteriores .box-edicao p.edicao{
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

main .edicoes-anteriores .box-edicao .img-edicao{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 350px;
    margin-bottom: 10px;
    
}

main .edicoes-anteriores .box-edicao .img-edicao img{
    height: 100%;
    max-height: 350px;
}

.btn-secundary{
    padding: 8px 50px;
    background-color: #CE2020;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.0rem;
    cursor: pointer;
    transition: .3s;
}

.btn-secundary:hover{
    background-color: #ff0000;
}

.desabilitado{
    color: rgb(154, 154, 154);
    background-color: rgb(198, 198, 198);
    pointer-events: none;
    opacity: 1.0;
}

/* Modal Overlay */
.modal-overlay {
  display: none; /* começa escondido */
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Conteúdo do Modal */
.modal-content {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 90%;
  max-width: 100%;
  height: auto;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn .3s ease;
}

/* Botão Fechar */
.modal-close {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  transition: .3s;
}

.modal-close:hover {
  color: red;
}

/* Estilo do form */
.login-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-control {
  width: 100%;
  padding: 12px 40px 12px 15px; /* espaço extra à direita pro ícone */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  color: #666;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #000;
}
.input-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
}

/* Botão estilizado */
.btn {
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #3498db;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover {
  background: #2980b9;
}
.btn:active {
  transform: scale(0.97);
}

/* Animação de entrada */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

/* rodapé ------------------------------------------ */


footer{
    background-color: rgb(34, 35, 35);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
}

footer p{
    color: white;
    font-size: 0.8rem;
}

/* Mobile ---------------------------------------- */
@media (max-width: 768px) {
  main .hero {
    flex-direction: column;       /* imagem em cima, texto embaixo */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;                 /* deixa altura fluir pelo conteúdo */
    padding: 40px 15px;           /* menos espaço nas laterais */
    gap: 30px;                    /* mais respiro entre img e texto */
    text-align: center;           /* centraliza tudo */
  }

  main .hero .img-hero {
    width: 100%;
    height: auto;
  }

  main .hero .img-hero img {
    height: auto;
    max-width: 100%;
  }

  main .hero .text-hero {
    width: 100%;
    align-items: center;
    text-align: center;
    height: auto;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  main .hero .text-hero p {
    font-size: 1rem;
  }

  main .hero .text-hero .btn_primary {
    width: 100%;          /* botão ocupa largura total no mobile */
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* tablet ---------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {
  main .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;               /* altura ajustável */
    padding: 60px 20px;         /* menos que desktop, mais que mobile */
    gap: 20px;
  }

  main .hero .img-hero {
    width: 35%;                 /* imagem um pouco menor */
    height: auto;
  }

  main .hero .img-hero img {
    height: auto;
    max-width: 100%;
  }

  main .hero .text-hero {
    width: 65%;                 /* texto ocupa mais espaço */
    height: auto;
    justify-content: center;
    text-align: left;           /* mantém leitura fluida */
  }

  main .edicoes-anteriores{
    width: 100%;               /* ocupa toda a largura */
  }

  
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 3rem;
  }

  h4 {
    font-size: 1.4rem;
  }

  main .hero .text-hero p {
    font-size: 1.05rem;
  }

  main .hero .text-hero .btn_primary {
    padding: 12px 40px;
    font-size: 1rem;
  }
}