@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/auth/google-sans-medium.woff2') format('woff2');
}

button.apple-signin,
#account-panel button.apple-signin {
  display: block;
  width: 280px;
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 12px auto;
  border: 0;
  border-radius: 10px;
  background: #000;
  overflow: hidden;
}
button.apple-signin[hidden],
#account-panel button.apple-signin[hidden] {
  display: none;
}
button.apple-signin img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.signup-box:has(.apple-signin) > div {
  min-width: 0;
  max-width: 100%;
}

.checkout-panel {
  min-width: 0;
}

/* Keep provider controls independent of each page's general action buttons.
   A pseudo-element preserves the logo when sign-in updates its text label. */
body
  button:is(#google-sign-in, #signup-google, #checkout-google, #profile-google, #coaching-google) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 280px;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 12px auto;
  padding: 12px;
  border: 1px solid #747775;
  border-radius: 10px;
  background: #fff;
  color: #1f1f1f;
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.25px;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

#account-panel #google-sign-in,
#coach-access #google-sign-in {
  min-width: 0;
  margin: 12px auto;
  padding: 12px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 500;
}

body
  button:is(
    #google-sign-in,
    #signup-google,
    #checkout-google,
    #profile-google,
    #coaching-google
  )::before {
  content: '';
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: url('/auth/google-g.png') center / contain no-repeat;
}

body
  button:is(
    #google-sign-in,
    #signup-google,
    #checkout-google,
    #profile-google,
    #coaching-google
  ):hover:not(:disabled) {
  background-color: #f8faff;
  box-shadow: 0 1px 2px #3c40434d;
}

body
  button:is(
    #google-sign-in,
    #signup-google,
    #checkout-google,
    #profile-google,
    #coaching-google
  ):focus-visible,
button.apple-signin:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
}

body
  button:is(
    #google-sign-in,
    #signup-google,
    #checkout-google,
    #profile-google,
    #coaching-google
  )[hidden] {
  display: none;
}
