* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #0052d4, #4364f7);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Ensure full viewport height */
  padding: 20px; /* Add padding for small screens */
}

.login-container {
  max-width: 60vw; /* Use viewport width for max scaling */
  width: 100%; /* Full width up to max-width */
  min-height: 60vh; /* Minimum height to ensure content fits */
  max-height: 60vh; /* Prevent overflow on small screens */
  background: #fff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.left-side {
  background: radial-gradient(circle at center, #0052d4, #4364f7);
  color: white;
  flex: 1;
  padding: 2rem; /* Relative padding */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.left-side h1 {
  font-size: 2rem; /* Relative font size */
  margin-bottom: 0.5rem;
}

.left-side h3 {
  font-weight: 300;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.left-side img {
  width: 5rem; /* Relative image size */
  margin-top: 1rem;
}

.left-side p {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: left;
  max-width: 80%; /* Prevent text overflow */
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.circle.small {
  width: 6rem;
  height: 6rem;
  bottom: 2rem;
  right: 2rem;
}

.circle.large {
  width: 12rem;
  height: 12rem;
  bottom: -4rem;
  left: -3rem;
}

.right-side {
  flex: 1;
  padding: 3rem 2rem; /* Relative padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-side h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-group.password {
  position: relative;
}

.form-group.password .show {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 0.8rem;
  color: #0052d4;
}

.options {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.btn-primary {
  width: 100%;
  background: #0052d4;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: #0052d4;
  padding: 0.8rem;
  border: 1px solid #0052d4;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.signup {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.signup a {
  color: #0052d4;
  text-decoration: none;
  font-weight: bold;
}

#msg2 {
  background-color: red;
  padding: 0.6rem;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  margin-top: 0.5rem;
}

.btn-primary.enter:hover {
  background: linear-gradient(to right, rgb(2, 0, 138), rgb(60, 60, 192));
  border-color: red;
  color: white;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.3s ease;
}
.senha {
   background-color: #ad1f1f; 
   padding: 10px 5px; 
   color: aliceblue;
   text-align: center; border-radius:10px
}
/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column; /* Stack vertically on small screens */
    min-height: auto; /* Allow height to adjust */
    max-height: none; /* Remove max-height restriction */
  }

  .left-side,
  .right-side {
    flex: none; /* Remove flex grow */
    width: 100%; /* Full width for each section */
    padding: 1.5rem;
  }

  .left-side h1 {
    font-size: 1.5rem;
  }

  .left-side h3 {
    font-size: 1rem;
  }

  .left-side p {
    font-size: 0.8rem;
  }

  .right-side h2 {
    font-size: 1.5rem;
  }

  .circle.small,
  .circle.large {
    display: none; /* Hide decorative circles on small screens */
  }
  #texto {
    display: none;
  }
}

@media (max-width: 480px) {
  .left-side img {
    width: 4rem;
  }

  .right-side {
    padding: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .form-group input {
    font-size: 0.8rem;
    padding: 0.6rem;
  }
  #texto {
    display: none;
  }
}