.google-auth {
  margin: 20px 0;
  min-width: 0;
}

.google-auth-entry[hidden],
.google-onboarding[hidden],
[data-local-auth-form][hidden],
[data-local-auth-switch][hidden] {
  display: none !important;
}

.google-signin-button {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.google-signin-button > div,
.google-signin-button iframe {
  max-width: 100%;
}

.google-auth.is-busy .google-signin-button {
  opacity: 0.62;
  pointer-events: none;
}

.google-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.google-auth-divider::before,
.google-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-auth-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(8, 168, 255, 0.3);
  border-radius: 8px;
  background: rgba(8, 168, 255, 0.08);
  color: #c8ebff;
  font-size: 13px;
}

.google-auth-message.is-error {
  border-color: rgba(255, 73, 101, 0.38);
  background: rgba(255, 73, 101, 0.1);
  color: #ffb4c0;
}

.google-onboarding {
  padding: 18px;
  border: 1px solid rgba(8, 168, 255, 0.34);
  border-radius: 12px;
  background: rgba(4, 13, 20, 0.72);
}

.google-onboarding h2 {
  margin: 5px 0 7px;
  font-size: 22px;
}

.google-onboarding > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.google-onboarding-form {
  display: grid;
  gap: 14px;
}

.google-onboarding-form label {
  max-width: none;
  min-width: 0;
}

.google-onboarding-form label > small {
  color: var(--muted);
  font-weight: 400;
}

.google-onboarding-form input {
  width: 100%;
  min-width: 0;
}

.google-onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 640px) {
  .google-auth {
    margin-top: 18px;
  }

  .google-onboarding {
    padding: 15px;
  }

  .google-onboarding-form input {
    min-height: 46px;
    font-size: 16px;
  }

  .google-onboarding-actions {
    flex-direction: column-reverse;
  }

  .google-onboarding-actions .btn {
    min-height: 46px;
    width: 100%;
  }
}

.google-signin-shell {
  position: relative;
  min-height: 46px;
  width: 100%;
}

.google-custom-button {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 48px;
  border: 1px solid #2a536e;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d1a24, #10151b);
  color: #eef8ff;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.google-logo {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
}

.google-gis-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
}

.google-gis-button > div,
.google-gis-button iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

.google-signin-shell:focus-within .google-custom-button {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 168, 255, 0.15);
}

@media (max-width: 640px) {
  .google-custom-button {
    min-height: 46px;
    padding-left: 44px;
    padding-right: 44px;
  }

  .google-logo {
    left: 14px;
  }
}

.google-auth:not(.is-busy) .google-signin-shell:hover .google-custom-button {
  border-color: #08a8ff;
  background: linear-gradient(135deg, #112738, #13202b);
  box-shadow: 0 8px 20px rgba(8, 168, 255, 0.14);
}

.google-auth:not(.is-busy) .google-custom-button:hover {
  border-color: #08a8ff;
  background: linear-gradient(135deg, #112738, #13202b);
  box-shadow: 0 8px 20px rgba(8, 168, 255, 0.14);
}
