body {
  background-color: #3c4c6b;
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex-direction: column; /* Stacks the logo and form vertically */
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  width: 500px;
}

.login-form {
  background-color: #ffffff;
  padding: 40px 20px; /* Adequate padding for all screen sizes */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #3b5998;
  font-weight: 600;
}

.form-control {
  background-color: #f4f6f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 20px;
  width: 92%;
}

.form-control:focus {
  border-color: #3b5998;
  outline: none;
  box-shadow: none;
}

.btn-primary {
  background-color: #3b5998;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #314e86;
}

.forgot-password {
  text-align: center;
  margin-top: 10px;
}

.forgot-password a {
  color: #888888;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
  .login-form {
    padding: 30px 15px;
  }

  .form-control {
    padding: 10px;
  }

  .btn-primary {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 120px;
  }

  .login-form {
    padding: 20px 10px;
  }

  .form-control {
    padding: 8px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 10px;
    font-size: 14px;
  }

  h2 {
    font-size: 20px;
  }
}
