* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: #fff;
  background: #0f172a;
}

.card-left .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;

  .logo-img {
    max-height: 60px;
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  gap: 2rem;

  img {
    width: 120px;
    height: auto;
    // margin-bottom: 35px;
  }

  .card-left,
  .card-right {
    flex: 1;
  }

  .card-left {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-right {
    text-align: left;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 8px;

    h1 {
      margin-bottom: 1rem;
      font-size: 1.8rem;
    }

    p {
      margin-bottom: 1.5rem;
      font-size: 1rem;
    }

    .apresetacao-img {
      width: 90%;
    }

    .rodape {
      display: flex;
      justify-content: space-between;
    }
  }
}

form {
  background: rgba(9, 13, 22, 0.457);
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;

  h2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .label-input {
    display: block;
    margin-bottom: 0.5rem;
  }

  .input-field {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background: rgba(21, 32, 59, 0.8);
    color: #fff;
  }

  .input-field:focus {
    outline: none;
    background: rgba(66, 99, 176, 0.35);
  }

  .btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background: #0070f3;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
  }

  .btn:hover {
    background: #005bb5;
  }
}

.toggle-button {
  padding: 10px 20px;
  border: none;
  border-radius: 0;
  width: 170px;
  background: transparent; 
  color: #ffffff95;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  border-bottom: 3px solid transparent; 
}

.toggle-button.acessar {
  border-bottom-color: #22c55e93;
}
.toggle-button.acessar:hover {
    color: #fff;
  border-bottom-color: #22c55e; 
}
.toggle-button.cadastro {
  border-bottom-color: #ef4444bb; 
}
.toggle-button.cadastro:hover {
    color: #fff;
  border-bottom-color: #ef4444; 
}


/* Animação de transição */
.form-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsivo */
@media (max-width: 768px) {
  .container {
    flex-direction: column;

    .card-left,
    .card-right {
      width: 100%;
    }

    .card-right {
     display: none;
    }
  }
}

@media (max-width: 480px) {
  form {
    padding: 1rem;
  }
}
