/* Author display rules on .btn and .form-field must not reveal hidden controls. */
[data-google-public][hidden],
#google-auth-modal [hidden],
#google-management-modal [hidden] {
  display: none !important;
}

#google-auth-modal .modal__content,
#google-management-modal .modal__content {
  max-width: 480px;
}

#google-login-button,
#google-signup-button,
#google-invite-button,
#google-auth-button,
#google-management-button {
  display: block;
  width: min(400px, 100%);
  min-height: 40px;
  margin: 16px auto;
}

/* The primary login screen intentionally mirrors its full-width password CTA. */
#login-form #google-login-button {
  margin: 24px 0 0;
  max-width: none;
  min-height: 44px;
  width: 100%;
}

#login-form #google-login-button .google-signin-button {
  height: 44px;
  max-width: none;
}

#login-form .auth-switch {
  margin-top: 24px;
}

.google-signin-button {
  align-items: center;
  appearance: none;
  background: #131314;
  border: 1px solid #8e918f;
  border-radius: 4px;
  color: #e3e3e3;
  cursor: pointer;
  display: inline-flex;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  gap: 10px;
  height: 40px;
  justify-content: center;
  line-height: 20px;
  margin: 0;
  max-width: 400px;
  min-width: 200px;
  padding: 0 12px;
  width: 100%;
}

.google-signin-button:hover { background: #2c2c2d; }
.google-signin-button:active { background: #3c4043; }
.google-signin-button:focus-visible { outline: 2px solid #a8c7fa; outline-offset: 2px; }
.google-signin-button:disabled { cursor: wait; opacity: 0.65; }

.google-signin-button__logo {
  display: block;
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

html[data-theme="light"] .google-signin-button {
  background: #fff;
  border-color: #747775;
  color: #1f1f1f;
}

html[data-theme="light"] .google-signin-button:hover { background: #f8fafd; }
html[data-theme="light"] .google-signin-button:active { background: #f1f3f4; }

#google-auth-invite-fields .form-field + .form-field {
  margin-top: 12px;
}

#google-auth-modal .modal__footer {
  flex-wrap: wrap;
  gap: 12px;
}

.google-management-account {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-block: 16px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-bg) 42%, transparent);
}

.google-management-account span {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}

.google-management-account strong {
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.google-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
