
.sso-firebase-block .firebase-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sso-firebase-block .firebase-login-buttons button.firebase-login-button {
  background-color: transparent;
  border: 0.01rem solid rgb(204, 204, 204);
  border-radius: 0.3rem;
  cursor: pointer;
  padding: 15px;
  display: flex;
  justify-content: flex-start; /* Left align button content */
  align-items: center;
  width: 100%; /* Full width for better responsiveness */
  box-sizing: border-box; /* Include padding in width calculation */
}

.sso-firebase-block .firebase-login-buttons button.firebase-login-button .inner {
  gap: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start; /* Ensure left alignment */
  width: calc(100% - 20px); /* Responsive width with margin consideration */
  margin-left: 10px; /* Add some left margin for better spacing */
}
.sso-firebase-block .firebase-login-buttons button.firebase-login-button span.icon {
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sso-firebase-block .firebase-login-buttons button.firebase-login-button img {
  width: 24px;
  height: auto;
}

.sso-firebase-block .firebase-login-buttons button.firebase-login-button span.text {
  font-size: 15px;
  text-align: left;
  white-space: nowrap; /* Prevent text from wrapping */
}

.sso-firebase-block .firebase-login-buttons button.firebase-login-button:hover {
  opacity: 50%;
}

/* Target the exact width of the form items */
#user-login .form-item {
  max-width: 335px;
}

/* Style the duplicate container for social login */
#user-login .social-login-container {
  width: 100%;
}

/* Match the social login elements to the form-item width */
#user-login .sso-firebase-block,
#user-login .sso-firebase-block .firebase-login-buttons {
  width: 100%;
  max-width: 100%;
}

/* Style the Or line to appear below the login button */
#user-login .firebase-login-or {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Style the social login buttons */
#user-login .sso-firebase-block .firebase-login-buttons button.firebase-login-button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  height: 48px; /* Fixed height to prevent shifting */
}

/* Style the button text to prevent shifting */
#user-login .sso-firebase-block .firebase-login-buttons button.firebase-login-button .text {
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Style the button icon to prevent shifting */
#user-login .sso-firebase-block .firebase-login-buttons button.firebase-login-button .icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#user-login .sso-firebase-block .firebase-login-buttons button.firebase-login-button .icon img {
  max-width: 100%;
  max-height: 100%;
}

/* Or line styling */
.firebase-login-or {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  margin: 15px 0 10px;
  position: relative;
  color: #555;
  display: flex;
  align-items: center;
  width: 100%;
}

.firebase-login-or::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #ccc;
  margin-left: 10px;
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
  .sso-firebase-block .firebase-login-buttons button.firebase-login-button {
    padding: 12px;
  }
  
  .sso-firebase-block .firebase-login-buttons button.firebase-login-button span.text {
    font-size: 14px;
  }
  
  .sso-firebase-block .firebase-login-buttons button.firebase-login-button .inner {
    gap: 10px;
  }
}