/* Public auth choices and branded social sign-in buttons.
 *
 * These are the provider-specified buttons, not theme buttons. Google's
 * Sign in with Google branding guidelines and Apple's Sign in with Apple Human
 * Interface Guidelines fix the logo, label wording, height, corner radius,
 * typeface and padding, and a non-compliant Apple button is grounds for an App
 * Store rejection. Where a guideline and the Bootstrap theme disagree, the
 * guideline wins inside the button; everything outside it stays themed.
 *
 * Webpack copies this file to server/public/css/social/social_buttons.css.
 * Edit it here, never there.
 */

.auth-methods {
  display: grid;
  gap: 12px;
  width: min(100%, 400px);
  margin-inline: auto;
}

.auth-methods__title {
  margin: 0 0 12px;
  text-align: center;
}

.auth-methods__email {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding-inline: 36px;
  border-radius: 4px;
  background-color: #484848;
  color: #fff;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.auth-methods__email::-webkit-details-marker {
  display: none;
}

.auth-methods__email svg {
  position: absolute;
  inset-inline-start: 12px;
}

.auth-methods__email:hover {
  background-color: #363636;
}

.auth-methods__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5f6368;
  font-size: 12px;
  font-weight: 600;
}

.auth-methods__divider::before,
.auth-methods__divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #dadce0;
}

.social-sign-in {
  display: grid;
  gap: 12px;
}

.social-sign-in__form {
  margin: 0;
}

/* Shared mechanics only: no colour, type or metric is shared between the two
   providers, because each provider specifies its own. */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

.social-btn__logo {
  display: block;
  flex: 0 0 auto;
}

.social-btn__label {
  white-space: nowrap;
}

/* Google, light theme, square shape: 40px tall, 4px radius, 1px #747775
   stroke on white, Roboto Medium 14px / 0.25px tracking in #1f1f1f, 12px
   horizontal padding, 18px logo, 12px gap between logo and label. */
.social-btn--google {
  height: 40px;
  min-width: 175px;
  padding: 0 12px;
  gap: 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background-color: #ffffff;
  color: #1f1f1f;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  line-height: 20px;
}

.social-btn--google .social-btn__logo {
  width: 18px;
  height: 18px;
}

.social-btn--google:hover {
  background-color: #f8faff;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.social-btn--google:active {
  background-color: #f2f6fc;
}

/* Apple, black style: 40px tall to pair with the Google button, 4px radius
   (Apple allows 0 to half the height), white logo and label in the system
   font at 15px (37% of the height, under Apple's 43% ceiling), margin round
   the content well above Apple's 8%-of-height floor. */
.social-btn--apple {
  height: 40px;
  min-width: 140px;
  padding: 0 16px;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 20px;
}

.social-btn--apple .social-btn__logo {
  width: 18px;
  height: 18px;
}

.social-btn--apple:hover {
  background-color: #1a1a1a;
}

/* Keep keyboard focus visible on every auth choice. */
.auth-methods__email:focus-visible,
.social-btn:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}
