@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Estiliza a barra de rolagem inteira */
::-webkit-scrollbar {
width: 7px; /* Largura da barra vertical */
height: 12px; /* Altura da barra horizontal */
}

/* Cor e estilo da área da barra de rolagem */
::-webkit-scrollbar-track {
background-color: linear-gradient(to bottom, var(--primary-color), var(--tertiary-color));
}

/* Estilo do botão de rolagem */
::-webkit-scrollbar-thumb {
background-color: var(--secondary-color); /* Cor da barra de rolagem */
border-radius: 8px; /* Arredondar a barra */
}

/* Cor ao passar o mouse sobre a barra de rolagem */
::-webkit-scrollbar-thumb:hover {
background-color: #f6fe04; /* Cor ao passar o mouse */
}

/* Estilo da extremidade (opcional) */
::-webkit-scrollbar-corner {
background-color: #1a1a1a; /* Cor no canto (quando barra horizontal e vertical se encontram) */
}


:root {
  --laranja: #fa7c23;
  --vermelho: #cb2807;
  --verde-escuro: #0c7425;
  --verde-claro: #79a86a;
  --dourado: #ddc174;
  --marrom: #af6a50;
  --verde-musgo: #4b7e51;
  --bege: #eeedc5;
  --background-color: #2c3e50;
  --botões: #34495e;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--dourado);
    
  }
  .container {
    display: flex;
    flex-wrap: wrap; /* Permite que os elementos quebrem a linha */
    width: 90vw; /* Usa porcentagem para se adaptar a diferentes telas */
    max-width: 900px;
    height: auto;
    min-height: 500px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
  }
  
  .panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: all 0.8s ease-in-out;
  }
  
  .signup p{
    font-weight: 600;
    color: var(--laranja);
  }
  .left-panel {
    background-color: white;
  }
  .right-panel {
    background-color: var(--laranja);
    color: white;
  }
  .form-container {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .form-container.active {
    display: flex;
  }
  
  input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .form {
      display: flex;
      flex-direction: column;
      gap: 0px;
      max-width: 350px;
      padding: 0px;
      position: relative;
      color: #fff;
    
    }
    
    button {
      background-color: #333;
      color: white;
      padding: 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      width: 100%;
      margin-top: 10px;
  }
  button:hover {
    background-color: #515151;
  }
  
  .container.active .left-panel {
    background-color: var(--verde-musgo);
    color: white;
  }
  .container.active .right-panel {
    background-color: white;
    color: black;
  }
  .logo {
    width: 300px;
  }
  .logo.login-logo {
    display: block;
  }
  .logo.signup-logo {
    display: none;
  }
  .container.active .login-logo {
    display: none;
  }
  .container.active .signup-logo {
    display: block;
  }
  .title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
    color: #ffffff;
  }
  
  .title::before {
    width: 18px;
    height: 18px;
  }
  
  .title::after {
    width: 18px;
    height: 18px;
    animation: pulse 1s linear infinite;
  }
  
  .title::before,
  .title::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 0px;
    background-color: #ffffff;
  }
    
  
  
  .title1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
    color: var(--verde-escuro);
  }
  
  .title1::before {
    width: 18px;
    height: 18px;
  }
  
  .title1::after {
    width: 18px;
    height: 18px;
    animation: pulse 1s linear infinite;
  }
  
  .title1::before,
  .title1::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 0px;
    background-color:var(--laranja)
  }
  
    .message, 
    .signin {
      font-size: 14.5px;
      color: rgba(255, 255, 255, 0.7);
    }
    
    .btn-entrar {
      text-align: center;
    }
    
    .btn-entrar a:hover {
      text-decoration: underline royalblue;
    }

    a {
      text-decoration: none;
    }
    
    .btn-entrar a {
      color: #5281d8;
  
    }
  
    .btn-criar {
      text-align: center;
    }
    
    .btn-criar a:hover {
      text-decoration: underline royalblue;
    }
    
    .btn-criar a {
      color: #5281d8;
      font-weight: 600;
    }
    
    .flex {
      display: flex;
      width: 100%;
      gap: 6px;
    }
  
    .password-label {
      position: relative;
      width: 100%;
  }
  
  .toggle-password {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
  }
  
  .toggle-password img {
      width: 20px;
      height: 20px;
      opacity: 0.7;
      transition: opacity 0.3s ease;
  }
  
  .toggle-password:hover img {
      opacity: 1;
  }
  
    
    .form label {
      position: relative;
    }
    
    .form label .input {
      background-color: #333;
      color: #fff;
      width: 100%;
      padding: 15px 05px 05px 0px;
      outline: 0;
      border: 1px solid rgba(105, 105, 105, 0.397);
      border-radius: 10px;
      padding-left: 15px;
      
    }
    
    .form label .input + span {
      color: #8d8d8d;
      position: absolute;
      left: 15px;
      top: 10px;
      font-size: 0.5em;
      cursor: text;
      transition: 0.3s ease;
    }
    
    .form label .input:placeholder-shown + span {
      top: 17.5px;
      font-size: 0.9em;
    }
    
    .form label .input:focus + span,
    .form label .input:valid + span {
      color: #ff4141;
      top: 10px;
      font-size: 0.5em;
      font-weight: 600;
    }
    
    .input {
      font-size: medium;
    }
    
    .btn-avancar{
      border: none;
      outline: none;
      padding: 10px;
      border-radius: 10px;
      color: #fff;
      font-size: 16px;
      transform: .3s ease;
      background-color: var(--verde-escuro);
    }

    .btn-avancar:hover{
    background-color: var(--verde-claro);
    }
        
    .submit:hover {
      background-color: #00bfff96;
    }
    
  /* Fundo escurecido quando o pop-up aparece */
  .popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  /* Caixa do pop-up */
  .popup {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  
  /* Botão de fechar (X) */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    transition: 0.3s ease;
  }
  
  .close-btn:hover {
    color: #a00;
  }
  
  
  /* Estiliza os inputs */
  .popup input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* Botões */
  .popup button {
    background-color: #a00;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .popup button:hover {
    background-color: #800;
  }
  
  /* Link "Esqueci minha senha" */
  .forgot-password {
    text-align: center;
    margin-top: 10px;
  }
  
  .forgot-password a {
    color: #f3fbfd;
    text-decoration: none;
  }
  
  .forgot-password a:hover {
    text-decoration: underline;
  }
  
  
  
  input:-webkit-autofill {
    background-color: transparent !important; /* Evita mudança de cor */
      color: white !important; /* Mantém a cor do texto */
      -webkit-box-shadow: 0 0 0px 1000px #333 inset !important; /* Força cor de fundo */
      transition: dourado 5000s ease-in-out 0s; /* Mantém a cor original */
  }
  
  input:-webkit-autofill:focus {
    background-color: transparent !important;
  }
  
  input:-webkit-autofill::first-line {
      color: white !important; /* Mantém a cor do texto */
  }
  
  
    @keyframes pulse {
      from {
        transform: scale(0.9);
        opacity: 1;
      }
    
      to {
        transform: scale(1.8);
        opacity: 0;
      }
    }
  
    @media (max-width: 768px) {
      .container {
        flex-direction: column-reverse;
        width: 100%;
        height: auto;
        border-radius: 0;
      }
    
      .panel {
        width: 100%; /* Ocupa toda a largura da tela */
        padding: 20px;
      }
    
      .right-panel {
        order: -1; /* Move o painel para cima */
      }
    
      .form-container {
        max-width: 100%;
      }
    
      .logo {
        width: 200px; /* Reduz o tamanho do logo em telas pequenas */
      }
    
      .title, .title1 {
        font-size: 18px; /* Ajusta os títulos */
      }
    }
    
    @media (max-width: 480px) {
      .form-container {
        padding: 10px;
      }
    
      input {
        font-size: 16px;
        padding: 12px;
      }
    
      button {
        font-size: 16px;
        padding: 12px;
      }
    
      .logo {
        width: 150px; /* Deixa o logo ainda menor para encaixar melhor */
      }
    
      .title, .title1 {
        font-size: 16px;
      }
    }
    