.fgu-google-login {
  --fgu-accent: #ef8768;
  --fgu-accent-dark: #c95f42;
  width: 100%;
  margin: 0 0 18px;
  box-sizing: border-box;
}

.fgu-google-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 46px;
  border: 1px solid #cfd5df !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  color: #202124 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}

.fgu-google-button:hover,
.fgu-google-button:focus-visible {
  border-color: var(--fgu-accent) !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .11), 0 0 0 3px rgba(127, 127, 127, .12);
  color: #202124 !important;
  outline: none;
}

.fgu-google-button:active {
  transform: translateY(1px);
}

.fgu-google-button:disabled {
  opacity: .72;
  cursor: wait;
}

.fgu-google-icon {
  position: absolute;
  left: 17px;
  width: 20px;
  height: 20px;
}

.fgu-google-spinner {
  position: absolute;
  right: 17px;
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #dbe0e7;
  border-top-color: var(--fgu-accent-dark);
  border-radius: 50%;
  box-sizing: border-box;
}

.fgu-google-button.is-loading .fgu-google-spinner {
  display: block;
  animation: fgu-spin .7s linear infinite;
}

.fgu-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 0;
  color: #7a8493;
  font-size: 12px;
  line-height: 1;
}

.fgu-divider::before,
.fgu-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e5eb;
}

.fgu-divider span {
  display: inline-block;
}

.fgu-google-message {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.fgu-google-message.is-error {
  border: 1px solid #f1b8b8;
  background: #fff5f5;
  color: #a72727;
}

body.fgu-modal-open {
  overflow: hidden;
}

.fgu-username-overlay {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, .58);
  box-sizing: border-box;
}

.fgu-username-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid #e3e6eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
  color: #202124;
  box-sizing: border-box;
}

.fgu-username-dialog h2 {
  margin: 0 32px 8px 0;
  color: #202124;
  font-size: 22px;
  line-height: 1.25;
}

.fgu-username-dialog p {
  margin: 0 0 20px;
  color: #5f6773;
  font-size: 14px;
  line-height: 1.55;
}

.fgu-username-form label {
  display: block;
  margin: 0 0 7px;
  color: #30343b;
  font-size: 14px;
  font-weight: 700;
}

.fgu-username-form input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font: inherit;
  box-sizing: border-box;
}

.fgu-username-form input:focus {
  border-color: var(--fgu-accent, #ef8768);
  box-shadow: 0 0 0 3px rgba(127, 127, 127, .13);
  outline: none;
}

.fgu-username-form small {
  display: block;
  margin: 7px 0 0;
  color: #737b87;
  font-size: 12px;
  line-height: 1.4;
}

.fgu-username-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid #f1b8b8;
  border-radius: 7px;
  background: #fff5f5;
  color: #a72727;
  font-size: 13px;
  line-height: 1.4;
}

.fgu-username-submit {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 18px 0 0;
  padding: 10px 16px !important;
  border: 1px solid var(--fgu-accent-dark, #c95f42) !important;
  border-radius: 8px !important;
  background: var(--fgu-accent, #ef8768) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none !important;
  cursor: pointer;
}

.fgu-username-submit:hover,
.fgu-username-submit:focus-visible {
  background: var(--fgu-accent-dark, #c95f42) !important;
  color: #fff !important;
  outline: none;
}

.fgu-username-submit:disabled {
  opacity: .7;
  cursor: wait;
}

@keyframes fgu-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .fgu-google-login {
    margin-bottom: 15px;
  }

  .fgu-google-button {
    min-height: 46px;
    padding-right: 42px;
    padding-left: 42px;
    font-size: 13px;
  }

  .fgu-username-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .fgu-username-dialog {
    padding: 24px 20px;
    border-radius: 14px 14px 10px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fgu-google-button {
    transition: none;
  }
}
