.gsi-material-button {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: rgba(0,0,0,.1) 0 1px 2px 0;
}

.gsi-material-button:hover {
  background-color: #f7f8f8;
}

.gsi-material-button:active {
  background-color: #e6e6e6;
}

.gsi-material-button-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
}

.gsi-material-button-content-wrapper {
  display: flex;
  align-items: center;
}

html[data-theme="dark"] .gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #131314;
  background-image: none;
  border: 1px solid #8e918f;
  border-radius: 4px;
  box-sizing: border-box;
  color: #e3e3e3;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

html[data-theme="dark"] .gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

html[data-theme="dark"] .gsi-material-button .gsi-material-button-content-wrapper {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

html[data-theme="dark"] .gsi-material-button .gsi-material-button-contents {
  flex-grow: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

html[data-theme="dark"] .gsi-material-button .gsi-material-button-state {
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

html[data-theme="dark"] .gsi-material-button:disabled {
  cursor: default;
  background-color: #13131461;
  border-color: #8e918f1f;
}

html[data-theme="dark"] .gsi-material-button:disabled .gsi-material-button-state {
  background-color: #e3e3e31f;
}

html[data-theme="dark"] .gsi-material-button:disabled .gsi-material-button-contents,
html[data-theme="dark"] .gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

html[data-theme="dark"] .gsi-material-button:not(:disabled):active .gsi-material-button-state,
html[data-theme="dark"] .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: white;
  opacity: 12%;
}

html[data-theme="dark"] .gsi-material-button:not(:disabled):hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

html[data-theme="dark"] .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: white;
  opacity: 8%;
}

/* Microsoft Sign-In Button Styles */
.microsoft-signin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  background-color: #ffffff;
  color: #5e5e5e;
  text-decoration: none;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 0 16px;
  border: 1px solid #8c8c8c;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.microsoft-signin-button:hover {
  background-color: #f3f2f1;
  border-color: #8c8c8c;
  color: #323130;
  text-decoration: none;
}

.microsoft-signin-button:active {
  background-color: #edebe9;
  border-color: #8c8c8c;
}

.microsoft-signin-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #005a9f;
}

.microsoft-signin-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.microsoft-signin-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
}

.microsoft-signin-button-text {
  color: inherit;
  font-weight: inherit;
}

/* Dark mode support for Microsoft button */
@media (prefers-color-scheme: dark) {
  .microsoft-signin-button {
    background-color: #2d2d30;
    border-color: #454545;
    color: #ffffff;
  }
  
  .microsoft-signin-button:hover {
    background-color: #3e3e42;
    border-color: #6e6e6e;
    color: #ffffff;
  }
  
  .microsoft-signin-button:active {
    background-color: #484848;
    border-color: #6e6e6e;
  }
}

/* Existing Apple and social button styles... */
.apple-signin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 0 16px;
  border: 1px solid #000;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.apple-signin-button:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  text-decoration: none;
}

.apple-signin-button:active {
  background-color: #0d0d0d;
  border-color: #0d0d0d;
}

.apple-signin-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.apple-signin-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apple-signin-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.apple-signin-button-text {
  color: inherit;
  font-weight: inherit;
}

/* Dark mode support for Apple */
@media (prefers-color-scheme: dark) {
  .apple-signin-button {
    background-color: #fff;
    border-color: #fff;
    color: #000;
  }
  
  .apple-signin-button:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    color: #000;
  }
  
  .apple-signin-button:active {
    background-color: #e8e8e8;
    border-color: #e8e8e8;
  }
  
  .apple-signin-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  }
}

/* Social buttons container styling */
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

/* Ensure consistent button sizing */
.social-login-buttons > * {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}