body {
  font-family: "Montserrat", sans-serif;
  transition: 3s;
}

.login-container {
  margin-top: 5%;
  border-radius: 5px;
  box-shadow: 0 0 15px 5px rgba(138, 43, 226, 0.3);
  width: 90%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.ads {
  background-image: url(../img/login.jpg);
  background-size: cover;
  background-color: #82a7ec;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}

/* Capa semitransparente para mejorar legibilidad del texto */
.ads::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  z-index: 1;
}

.ads h1 {
  margin-top: 0;
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

#fl, #sl {
  display: block;
  font-weight: 700;
  letter-spacing: 1px;
}

.profile-img {
  text-align: center;
}

.profile-img img {
  width: 80px;
  height: 80px;
}

.login-form {
  padding: 20px;
}

.login-form h3 {
  text-align: center;
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 1.5rem;
}

.form-control {
  font-size: 1rem;
  padding: 10px;
}

.form-group {
  position: relative;
  width: 100%;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 1rem;
}

.btn-primary {
  background: #007bff;
  border: none;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  padding: 12px;
}

.btn-primary:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.role-selection {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.role-option {
  background: none;
  color: #444;
  padding: 8px 12px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-weight: normal;
  font-size: 1rem;
}

.role-option:hover,
.role-option.selected {
  color: #222;
  font-weight: bold;
}

.role-option i {
  font-size: 1.2rem;
  color: #666;
}

.role-radio {
  display: none;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #777;
  outline: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.toggle-password:focus {
  outline: none;
  box-shadow: none;
}

.toggle-password:hover {
  color: #333;
}

.toggle-password i {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .login-container {
    margin-top: 5%;
    width: 95%;
    max-width: none;
  }

  .ads {
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0;
    min-height: 150px;
  }

  .ads::before {
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0;
  }

  .ads h1 {
    font-size: 1.5rem;
  }

  .login-form {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }

  .profile-img img {
    width: 60px;
    height: 60px;
  }

  .login-form h3 {
    font-size: 1.2rem;
  }

  .form-control {
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 10px;
  }

  .role-option {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .role-option i {
    font-size: 1rem;
  }
}